Projet

Général

Profil

Paste
Télécharger (4,27 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / advanced_forum / styles / naked / advanced-forum.naked.author-pane.tpl.php @ c169e7c4

1
<?php
2
/**
3
 * @file
4
 * Theme implementation to display information about the post/profile author.
5
 *
6
 * See author-pane.tpl.php in Author Pane module for a full list of variables.
7
 */
8
?>
9

    
10
<?php
11
  // This bit of debugging info will show the full path to and name of this
12
  // template file to make it easier to figure out which template is
13
  // controlling which author pane.
14
  if (!empty($show_template_location)) {
15
    print __FILE__;
16
  }
17
?>
18

    
19
<div class="author-pane">
20
 <div class="author-pane-inner">
21
    <?php /* General section */ ?>
22
    <div class="author-pane-section author-pane-general">
23
      <?php /* Account name */ ?>
24
      <div class="author-pane-line author-name">
25
        <?php print $account_name; ?>
26
      </div>
27

    
28
      <?php /* User picture / avatar (has div in variable) */ ?>
29
      <?php if (!empty($picture)): ?>
30
        <?php print $picture; ?>
31
      <?php endif; ?>
32

    
33
      <?php /* Online status */ ?>
34
      <?php if (!empty($online_status)): ?>
35
        <div class="author-pane-line <?php print $online_status_class ?>">
36
           <?php print $online_status; ?>
37
        </div>
38
      <?php endif; ?>
39

    
40
      <?php /* Last active */ ?>
41
      <?php if (!empty($last_active)): ?>
42
        <div class="author-pane-line">
43
           <span class="author-pane-label"><?php print t('Last seen'); ?>:</span> <?php print t('!time ago', array('!time' => $last_active)); ?>
44
        </div>
45
      <?php endif; ?>
46

    
47
      <?php /* User title */ ?>
48
      <?php if (!empty($user_title)): ?>
49
        <div class="author-pane-line author-title">
50
          <span class="author-pane-label"><?php print t('Title'); ?>:</span> <?php print $user_title; ?>
51
        </div>
52
      <?php endif; ?>
53

    
54
      <?php /* User badges */ ?>
55
      <?php if (!empty($user_badges)): ?>
56
        <div class="author-pane-line author-badges">
57
          <?php print $user_badges; ?>
58
        </div>
59
      <?php endif; ?>
60

    
61
      <?php /* Joined */ ?>
62
      <?php if (!empty($joined)): ?>
63
        <div class="author-pane-line author-joined">
64
          <span class="author-pane-label"><?php print t('Joined'); ?>:</span> <?php print $joined; ?>
65
        </div>
66
      <?php endif; ?>
67

    
68
      <?php /* Posts */ ?>
69
      <?php if (isset($user_stats_posts)): ?>
70
        <div class="author-pane-line author-posts">
71
          <span class="author-pane-label"><?php print t('Posts'); ?>:</span> <?php print $user_stats_posts; ?>
72
        </div>
73
      <?php endif; ?>
74

    
75
      <?php /* Points */ ?>
76
      <?php if (isset($userpoints_points)): ?>
77
        <div class="author-pane-line author-points">
78
          <span class="author-pane-label"><?php print t('!Points', userpoints_translation()); ?></span>: <?php print $userpoints_points; ?>
79
        </div>
80
      <?php endif; ?>
81
    </div>
82

    
83
    <?php /* Contact section */ ?>
84
    <div class="author-pane-section author-pane-contact">
85
      <?php /* Contact / Email */ ?>
86
      <?php if (!empty($contact)): ?>
87
        <div class="author-pane-line author-pane-link-line author-contact">
88
          <?php print $contact; ?>
89
        </div>
90
      <?php endif; ?>
91

    
92
      <?php /* Private message */ ?>
93
      <?php if (!empty($privatemsg)): ?>
94
        <div class="author-pane-line author-pane-link-line author-privatemsg">
95
          <?php print $privatemsg; ?>
96
        </div>
97
      <?php endif; ?>
98

    
99
      <?php /* User relationships */ ?>
100
      <?php if (!empty($user_relationships)): ?>
101
        <div class="author-pane-line author-pane-link-line author-user-relationship">
102
          <?php print $user_relationships; ?>
103
        </div>
104
      <?php endif; ?>
105

    
106
      <?php /* Flag friend */ ?>
107
      <?php if (!empty($flag_friend)): ?>
108
        <div class="author-pane-line author-pane-link-line author-flag-friend">
109
          <?php print $flag_friend; ?>
110
        </div>
111
      <?php endif; ?>
112
    </div>
113

    
114
    <?php /* Admin section */ ?>
115
    <div class="author-pane-section author-pane-admin">
116
      <?php /* IP */ ?>
117
      <?php if (!empty($user_stats_ip)): ?>
118
        <div class="author-pane-line author-ip">
119
          <span class="author-pane-label"><?php print t('IP'); ?>:</span> <?php print $user_stats_ip; ?>
120
        </div>
121
      <?php endif; ?>
122

    
123
     <?php /* Fasttoggle block */ ?>
124
     <?php if (!empty($fasttoggle_block_author)): ?>
125
        <div class="author-fasttoggle-block"><?php print $fasttoggle_block_author; ?></div>
126
      <?php endif; ?>
127
    </div>
128
  </div>
129
</div>