Location: PHPKode > projects > Teampopor > teampopor-0.5/teampopor/modules/message/feed-item.tpl.php
<?php
/**
 * .feed-item
 * arguments: $message, $network, $group
 */

add_js(get_path('module', 'message') . '/feed-item.js');
add_css(get_path('module', 'message') . '/feed-item.css');
?>
<li class="feed-item" data-id="<?php print $message->mid ?>">
  <a title="<?php print $message->user->name ?>" href="<?php print url('network/' . $network->nid . '/profile/' . $message->user->uid . '/messages') ?>">
    <img class="feed-photo" width="60" height="60" alt="<?php print $message->user->name ?>" src="<?php print url($message->user->picture) ?>">
  </a>
  <div class="feed-body">
    <div class="feed-content">
      <?php print theme('miniprofile', $message->user) ?>
      <?php if ($message->gid && !$group) { ?>
        <?php $group = group_load($message->gid) ?>
        (<?php print l($group->name, 'network/' . $network->nid . '/group/' . $group->gid) ?>)
      <?php } ?>
      <?php if ($message->parent_mid) { ?>
        <a href="#"><?php print t('in reply to') ?></a>
        <?php $parent_message = message_load($message->parent_mid); ?>
        <?php print theme('miniprofile', $parent_message->user) ?>
      <?php } ?>
      <span>
        <?php print $message->body ?>
      </span>
      <?php if (isset($message->files)) { ?>
      <?php foreach($message->files as $file) { ?>
      <div class="share-object has-photo">
        <a class="image" href="<?php print url('network/' . $network->nid . '/file/' . $file->fid) ?>">
          <img src="<?php print url('misc/mimetypes/text-x-generic.png') ?>">
        </a>
        <p class="share-title">
          <?php print l($file->name, 'network/' . $network->nid . '/file/' . $file->fid ) ?>
        </p>
        <p class="share-actions">
          <a href="<?php print url('network/' . $network->nid . '/file/' . $file->fid . '/download/' . $file->name) ?>">
            <span class="inline-icon download-grey-icon"></span>
            <?php print t('Download') ?>
          </a>
          <a href="<?php print url('network/' . $network->nid . '/file/' . $file->fid) ?>">
            <span class="inline-icon detail-grey-icon"></span>
            <?php print t('Go to File') ?>
          </a>
        </p>
      </div>
      <?php } ?>
      <?php } ?>
    </div>

    <div class="feed-item-meta">
      <ul class="feed-actions">
        <li class="feed-like">
          <span<?php print $message->like ? '' : ' class="show-like"' ?>>
            <a class="unlike" data-url="<?php print url('message/' . $message->mid . '/js/unlike') ?>" href="<?php print url('message/' . $message->mid . '/unlike') ?>"><?php print t('Unlike') ?></a>
            <a class="like" data-url="<?php print url('message/' . $message->mid . '/js/like') ?>" href="<?php print url('message/' . $message->mid . '/like') ?>"><?php print t('Like') . ($message->like_count ? '(<span>' . $message->like_count . '</span>)' : '') ?></a>
          </span>
        </li>
        <li>
          <?php if ($message->type < 0) { ?>
          <a class="focus-comment-form" title="<?php print t('Click to reply on this message') ?>" href="<?php print url('message/' . $message->mid . '/comment') ?>">
            <?php print t('Reply') . ($message->comment_count ? '(<span>' . $message->comment_count . '</span>)' : '') ?>
          </a>
          <?php } else { ?>
          <a class="focus-comment-form" title="<?php print t('Click to comment on this message') ?>" href="<?php print url('message/' . $message->mid . '/comment') ?>">
            <?php print t('Comment') . ($message->comment_count ? '(<span>' . $message->comment_count . '</span>)' : '') ?>
          </a>
          <?php } ?>
        </li>
        <li class="debug">
          <a href="<?php print url('message/' . $message->mid . '/share') ?>"><?php print t('Share') ?></a>
        </li>
        <?php if (empty($message->tags)) { ?>
        <li class="feed-tag">
          <a href="#"><?php print t('Add Topic') ?></a>
        </li>
        <?php } ?>
      </ul>
      <span class="nus-timestamp"><?php print t('%ago ago', array('%ago' => format_interval(time() - $message->created, 1))) ?></span>
    </div>

    <?php print theme('tags', $message) ?>
    <?php print theme('comments', $message) ?>
  </div>
</li>

Return current item: Teampopor