You are here

linkedin-user-page.tpl.php in LinkedIn Integration 7

Same filename and directory in other branches
  1. 6 linkedin_profile/linkedin-user-page.tpl.php

File

linkedin_profile/linkedin-user-page.tpl.php
View source
<?php

/**
 * @file
 * Template file for LinkedIn profile as displayed on user page
 * Copy it to your theme's folder if you want to override it.
 *
 * Be sure to check and comply to  http://developer.linkedin.com/docs/DOC-1091 before tweaking.
 */
$profile == $variables['profile'];
?>
<div class="linkedin-profile">

  <?php

if ($profile['picture-url']) {
  ?>
    <a href="<?php

  print $profile['public-profile-url']['value'];
  ?>" <?php

  if ($profile['first-name']['value'] || $profile['last-name']['value']) {
    ?> title="Public profile of <?php

    print $profile['first-name']['value'] . ' ' . $profile['last-name']['value'];
    ?> on www.linkedin.com."<?php

  }
  ?> >
        <img src="<?php

  print $profile['picture-url']['value'];
  ?>" alt="<?php

  print $profile['first-name']['value'] . ' ' . $profile['last-name']['value'];
  ?>" />
      </a>
  <?php

}
?>

  <?php

if ($profile['first-name']['value'] || $profile['last-name']['value']) {
  ?>
        <a href="<?php

  print $profile['public-profile-url']['value'];
  ?>" title="Public profile of <?php

  print $profile['first-name']['value'] . ' ' . $profile['last-name']['value'];
  ?> on www.linkedin.com.">
          <h2 class="linkedin-name"><?php

  print $profile['first-name']['value'] . ' ' . $profile['last-name']['value'];
  ?></h2>
        </a>
  <?php

}
?>

        <ul>
    <?php

foreach ($profile as $key => $value) {
  ?>
    <?php

  if ($value && !in_array($key, array(
    'picture-url',
    'first-name',
    'last-name',
  ))) {
    ?>
            <li class="linkedin-<?php

    print $key;
    ?>"><?php

    print $value['name'];
    ?> : <?php

    print $value['value'];
    ?>
      <?php

  }
  ?>
      <?php

}
?>
  </ul>

</div>