Projet

Général

Profil

Paste
Télécharger (1,2 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / advanced_forum / styles / naked / advanced-forum.naked.topic-header.tpl.php @ 13c3c9b4

1
<?php
2

    
3
/**
4
 * @file
5
 * Theme implementation: Template for forum topic header.
6
 *
7
 * - $node: Node object.
8
 * - $search: Search box to search this topic (Requires Node Comments)
9
 * - $reply_link: Text link / button to reply to topic.
10
 * - $total_posts_count: Number of posts in topic.
11
 * - $new_posts_count: Number of new posts in topic.
12
 * - $first_new_post_link: Link to first unread post.
13
 * - $last_post_link: Link to last post.
14
 * - $pager: Topic pager.
15
 */
16
?>
17

    
18
<div id="forum-topic-header" class="forum-topic-header clearfix">
19
        <?php if (!empty($search)): ?>
20
          <?php print $search; ?>
21
  <?php endif; ?>
22

    
23
  <div class="topic-post-count">
24
  <?php print $total_posts_count; ?> / <?php print t('!new new', array('!new' => $new_posts_count)); ?>
25
  </div>
26

    
27
  <?php if (!empty($reply_link)): ?>
28
    <div class="topic-reply-link">
29
    <?php print $reply_link; ?>
30
    </div>
31
  <?php endif; ?>
32

    
33
  <?php if (!empty($first_new_post_link)): ?>
34
    <div class="topic-new-post-link">
35
    <?php print $first_new_post_link; ?>
36
    </div>
37
  <?php endif; ?>
38

    
39
  <?php if (!empty($last_post_link)): ?>
40
    <div class="last-post-link">
41
     <?php print $last_post_link; ?>
42
    </div>
43
  <?php endif; ?>
44

    
45

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