linkedin-user-page.tpl.php in LinkedIn Integration 7
File
linkedin_profile/linkedin-user-page.tpl.php
View source
<?php
$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>