Location: PHPKode > projects > Teampopor > teampopor-0.5/teampopor/modules/message/tags.tpl.php
<?php
/**
 * .tags
 *
 * @param message
 *   The message object
 */

add_js(get_path('module', 'message') . '/tags.js');
add_js('misc/typeahead.js');

global $theme;
add_css(get_path('theme', $theme) . '/typeahead.css');
add_css(get_path('module', 'message') . '/tags.css');

$nid = $message ? $message->nid : get_current_network()->nid;
?>
<div class="tags"<?php print empty($message->tags) ? ' style="display:none"' : '' ?>>
  <a class="edit-done"><?php print t('Done') ?></a>
  <a class="edit-tags"><?php print t('Edit Topics') ?></a>
  <input class="edit-tags" type="text" name="tags">
  <div class="tags-container">
    <ol class="tag-list">
      <?php if (!empty($message->tags)) { ?>
      <?php foreach($message->tags as $tag) { ?>
      <li class="tag">
        <a class="tag-name" title="<?php print $tag->name ?>" href="<?php print url('network/' . $message->nid . '/tag/' . $tag->tid) ?>"><?php print $tag->name ?></span>
        <a class="x-grey-sm-light-icon tag-remove"<?php print $message ? ' data-url="' . url('message/' . $message->mid . '/tag/' . $tag->tid . '/js/delete') . '"' : '' ?>>x</a>
      </li>
      <?php } ?>
      <?php } ?>
    </ol>
    <div class="add-form">
      <input class="add-topic typeahead" type="text" value="" style="display:inline-block;" data-url="<?php print url('network/' . $nid . '/js/typeahead/tags') ?>">
      <a class="btn-primary"<?php print $message ? ' data-url="' . url('message/' . $message->mid . '/js/add-tag') . '"' : '' ?>><?php print t('Add Topics') ?></a>
    </div>
  </div>
</div>
Return current item: Teampopor