linkedin-user-page-position-item.tpl.php in LinkedIn Integration 7
File
linkedin_profile/linkedin-user-page-position-item.tpl.php
View source
<?php
$position == $variables['position'];
?>
<div class="linkedin-position<?php
$position['is-current'] == TRUE ? print ' linkedin-position-current' : '';
?>">
<h6>
<?php
$position['is-current'] == TRUE ? print t('Currently') . ' ' : '';
?>
<?php
if ($position['title']) {
?>
<?php
print $position['title'];
?>
<?php
}
?>
<?php
if ($position['company']['name']) {
?>
<?php
$position['is-current'] == TRUE ? print t('at') . ' ' : (print t('At') . ' ');
?>
<?php
print $position['company']['name'];
?>
<?php
}
?>
</h6>
<p>
<?php
if ($position['start-date']['year']) {
?>
<?php
if ($position['end-date']['year']) {
?>
<?php
print t('From') . ' ';
?>
<?php
}
else {
?>
<?php
print t('Since') . ' ';
?>
<?php
}
?>
<?php
if ($position['start-date']['month']) {
?>
<?php
print $position['start-date']['month'] . '/';
?>
<?php
}
?>
<?php
print $position['start-date']['year'];
?>
<?php
}
?>
<?php
if ($position['end-date']['year']) {
?>
<?php
if ($position['start-date']['year']) {
?>
<?php
print ' ' . t('to') . ' ';
?>
<?php
}
else {
?>
<?php
t('Until') . ' ';
?>
<?php
}
?>
<?php
if ($position['end-date']['month']) {
?>
<?php
print $position['end-date']['month'] . '/';
?>
<?php
}
?>
<?php
print $position['end-date']['year'];
?>
<?php
}
?>
</p>
<?php
if ($position['summary']) {
?>
<div class="linkedin-position-summary">
<?php
print $position['summary'];
?>
</div>
<?php
}
?>
</div>