linkedin-user-page.tpl.php in LinkedIn Integration 6
Same filename and directory in other branches
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.
File
linkedin_profile/linkedin-user-page.tpl.phpView 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.
*/
//print 'linkedin-user-page.tpl.php';
//print '<pre>';
//print_r($profile);
//print '</pre>';
?>
<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>