Projet

Général

Profil

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

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

1
<?php
2

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

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

    
22
<div class="author-pane clearfix">
23
 <div class="author-pane-inner">
24
    <?php /* User picture / avatar (has div in variable) */ ?>
25
    <?php if (!empty($picture)): ?>
26
      <?php print $picture; ?>
27
    <?php endif; ?>
28

    
29
    <?php /* General section */ ?>
30
    <div class="author-pane-section author-pane-section-1">
31
      <?php /* Account name */ ?>
32
      <div class="author-pane-line author-name">
33
        <?php print $account_name; ?>
34
      </div>
35

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

    
43
      <?php /* User title */ ?>
44
      <?php if (!empty($user_title)): ?>
45
        <div class="author-pane-line author-title">
46
          <?php print $user_title; ?>
47
        </div>
48
      <?php endif; ?>
49

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

    
58
    <div class="author-pane-section author-pane-section-2">
59
      <?php /* Location */ ?>
60
      <?php if (!empty($location_user_location)): ?>
61
        <div class="author-pane-line author-location">
62
          <?php print $location_user_location;  ?>
63
        </div>
64
      <?php endif; ?>
65

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

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

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

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

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

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

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

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

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

    
133
     <?php /* Troll ban */ ?>
134
      <?php if (!empty($troll_ban_author)): ?>
135
        <div class="author-pane-line author-troll-ban"><?php print $troll_ban_author; ?></div>
136
      <?php endif; ?>
137
    </div>
138
  </div>
139
</div>