Projet

Général

Profil

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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