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 @ c169e7c4

1
<?php
2

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

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

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

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

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

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

    
46

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