You are here

advanced_forum.naked.topic-header.tpl.php in Advanced Forum 6.2

Theme implementation: Template for forum topic header.

  • $node: Node object.
  • $search: Search box to search this topic (Requires Node Comments)
  • $reply_link: Text link / button to reply to topic.
  • $total_posts_count: Number of posts in topic.
  • $new_posts_count: Number of new posts in topic.
  • $first_new_post_link: Link to first unread post.
  • $last_post_link: Link to last post.

File

styles/naked/advanced_forum.naked.topic-header.tpl.php
View source
<?php

/**
 * @file
 *
 * Theme implementation: Template for forum topic header.
 *
 * - $node: Node object.
 * - $search: Search box to search this topic (Requires Node Comments)
 * - $reply_link: Text link / button to reply to topic.
 * - $total_posts_count: Number of posts in topic.
 * - $new_posts_count: Number of new posts in topic.
 * - $first_new_post_link: Link to first unread post.
 * - $last_post_link: Link to last post.
 */
?>

<div id="forum-topic-header" class="forum-topic-header clear-block">
  <?php

print $search;
?>

  <div class="topic-post-count">
  <?php

print $total_posts_count;
?> / <?php

print t('!new new', array(
  '!new' => $new_posts_count,
));
?>
  </div>

  <?php

if (!empty($reply_link)) {
  ?>
    <div class="topic-reply-link">
    <?php

  print $reply_link;
  ?>
    </div>
  <?php

}
?>

  <?php

if (!empty($first_new_post_link)) {
  ?>
    <div class="topic-new-post-link">
    <?php

  print $first_new_post_link;
  ?>
    </div>
  <?php

}
?>

  <?php

if (!empty($last_post_link)) {
  ?>
    <div class="last-post-link">
     <?php

  print $last_post_link;
  ?>
    </div>
  <?php

}
?>


  <a id="forum-topic-top"></a>
</div>