/[drupal]/contributions/modules/author_pane/author-pane.tpl.php
ViewVC logotype

Contents of /contributions/modules/author_pane/author-pane.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Sun Dec 21 20:38:28 2008 UTC (11 months ago) by michellec
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-5, DRUPAL-6--1
File MIME type: text/x-php
Initial commit of author pane module for D6.
1 <?php
2 // $Id: $
3
4 /**
5 * @file advf-author-pane.tpl.php
6 * Theme implementation to display information about the post author.
7 *
8 * Available variables (core modules):
9 * - $account: The entire user object for the author.
10 * - $picture: Themed user picture for the author.
11 * - $account_name: Themed user name for the author.
12 * - $account_id: User ID number for the author.
13 *
14 * - $joined: Date the post author joined the site.
15 * - $joined_ago: Time since the author registered in the format "TIME ago"
16 *
17 * - $online_icon: Icon that changes depending on whether the author is online.
18 * - $online_status: Translated text "Online" or "Offline"
19 * - $last_active: Time since author was last active. eg: "5 days 3 hours"
20 *
21 * - $contact: Linked icon.
22 * - $contact_link: Linked translated text "Contact user".
23 *
24 * - $profile - Profile object from core profile.
25 * D5 Usage: $profile['category']['field_name']['value']
26 * D5 Example: <?php print $profile['Personal info']['profile_name']['value']; ?>
27 * D6 Usage: $profile['category']['field_name']['#value']
28 * D6 Example: <?php print $profile['Personal info']['profile_name']['#value']; ?>
29 *
30 * Available variables (contributed modules):
31 * - $buddylist: Linked icon.
32 * - $buddylist_link: Linked translated text "Add to buddylist" or "Remove from buddylist".
33
34 * - $facebook_status: Status from the facebook status module.
35 *
36 * - $privatemsg: Linked icon.
37 * - $privatemsg_link: Linked translated text "Send PM".
38 *
39 * - $user_badges: Badges from user badges module.
40 *
41 * - $userpoints_points: Number of points from default category of the userpoints module.
42 * - $userpoints_categories: Array holding each category and the points for that category.
43 *
44 * - $user_stats_posts: Number of posts from user stats module.
45 * - $user_stats_ip: IP address from user stats module.
46 *
47 * - $user_title: Title from user titles module.
48
49 */
50 ?>
51
52 <div class="author-pane">
53
54 <div class="author-pane-first">
55 <div class="author-pane-name-section">
56 <div class="author-pane-line author-name"> <?php print $account_name; ?> </div>
57
58 <?php if (!empty($user_title)): ?>
59 <div class="author-pane-line author-title"> <?php print $user_title; ?> </div>
60 <?php endif; ?>
61
62 <?php if (!empty($user_badges)): ?>
63 <div class="author-pane-line author-badges"> <?php print $user_badges; ?> </div>
64 <?php endif; ?>
65
66 <?php if (!empty($picture)): ?>
67 <?php print $picture; ?>
68 <?php endif; ?>
69 </div>
70
71 <?php if (!empty($joined)): ?>
72 <div class="author-pane-line author-joined">
73 <span class="author-pane-label"><?php print t('Joined'); ?>:</span> <?php print $joined; ?>
74 </div>
75 <?php endif; ?>
76
77 <?php if (isset($user_stats_posts)): ?>
78 <div class="author-pane-line author-posts">
79 <span class="author-pane-label"><?php print t('Posts'); ?>:</span> <?php print $user_stats_posts; ?>
80 </div>
81 <?php endif; ?>
82
83 <?php if (isset($userpoints_points)): ?>
84 <div class="author-pane-line author-points">
85 <span class="author-pane-label"><?php print t('!Points: ', userpoints_translation()); ?></span> <?php print $userpoints_points; ?>
86 </div>
87 <?php endif; ?>
88
89 <?php if (!empty($user_stats_ip)): ?>
90 <div class="author-pane-line author-ip">
91 <span class="author-pane-label"><?php print t('IP'); ?>:</span> <?php print $user_stats_ip; ?>
92 </div>
93 <?php endif; ?>
94
95 <?php if (!empty($fasttoggle_block_author)): ?>
96 <div class="author-pane-fasttoggle-block-author"><?php print $fasttoggle_block_author; ?></div>
97 <?php endif; ?>
98 </div>
99
100 <div class="author-pane-last">
101 <?php if (!empty($facebook_status)): ?>
102 <div class="author-pane-facebook-status"><?php print $facebook_status; ?></div>
103 <?php endif; ?>
104
105 <div class="author-pane-icon"><?php print $online_icon; ?></div>
106
107 <?php if (!empty($contact)): ?>
108 <div class="author-pane-icon"><?php print $contact; ?></div>
109 <?php endif; ?>
110
111 <?php if (!empty($privatemsg)): ?>
112 <div class="author-pane-icon"><?php print $privatemsg; ?></div>
113 <?php endif; ?>
114
115 <?php if (!empty($buddylist)): ?>
116 <div class="author-pane-icon"><?php print $buddylist; ?></div>
117 <?php endif; ?>
118 </div>
119 </div>

  ViewVC Help
Powered by ViewVC 1.1.2