You are here

facebook_pull-feed.tpl.php in Facebook Pull 6

File

facebook_pull-feed.tpl.php
View source
<ul class="facebook-feed">
<?php

foreach ($items as $item) {
  ?>
  <li class="item">
    <span class="facebook-feed-picture"><img alt="<?php

  echo $item->from->name;
  ?>" src="http://graph.facebook.com/<?php

  echo $item->from->id;
  ?>/picture" /></span>
    <span class="facebook-feed-from"><a href="http://facebook.com/profile.php?id=<?php

  echo $item->from->id;
  ?>"><?php

  echo $item->from->name;
  ?></a></span>
    <span class="facebook-feed-message">
      <?php

  if (isset($item->message)) {
    echo $item->message;
  }
  ?>
      <?php

  if ($item->type === 'link') {
    ?>
        <?php

    if (isset($item->description)) {
      echo $item->description;
    }
    ?>
        <?php

    echo l($item->name, $item->link);
    ?>
      <?php

  }
  ?>
    </span>
    <span class="facebook-feed-time"><?php

  echo t('!time ago.', array(
    '!time' => format_interval(time() - strtotime($item->created_time)),
  ));
  ?></span>
  </li>
<?php

}
?>
</ul>