You are here

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

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

File

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

/**
* @file
* Template file for LinkedIn "Position" item 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.
*/
$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>