Projet

Général

Profil

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

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

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
  // @codingStandardsIgnoreStart
15
  if (!empty($show_template_location)) {
16
    print __FILE__;
17
  }
18
  // @codingStandardsIgnoreEnd
19
?>
20

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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