root / drupal7 / sites / all / modules / advanced_forum / styles / naked / advanced-forum.naked.statistics.tpl.php @ 13c3c9b4
1 |
<?php
|
---|---|
2 |
/**
|
3 |
* @file
|
4 |
* Theme implementation: Template for each forum forum statistics section.
|
5 |
*
|
6 |
* Available variables:
|
7 |
* - $current_total: Total number of users currently online.
|
8 |
* - $current_users: Number of logged in users.
|
9 |
* - $current_guests: Number of anonymous users.
|
10 |
* - $online_users: List of logged in users.
|
11 |
* - $topics: Total number of nodes (threads / topics).
|
12 |
* - $posts: Total number of nodes + comments.
|
13 |
* - $users: Total number of registered active users.
|
14 |
* - $latest_users: Linked user names of latest active users.
|
15 |
*/
|
16 |
?>
|
17 |
|
18 |
<div id="forum-statistics"> |
19 |
<div id="forum-statistics-header"><?php print t("What's Going On?"); ?></div> |
20 |
|
21 |
<div id="forum-statistics-active-header" class="forum-statistics-sub-header"> |
22 |
<?php print t('Currently active users: !current_total', array('!current_total' => $current_total)); ?> |
23 |
</div>
|
24 |
<?php if (!empty($online_users)) : ?> |
25 |
<div id="forum-statistics-active-body" class="forum-statistics-sub-body"> |
26 |
<?php print $online_users; ?> |
27 |
</div>
|
28 |
<?php endif; ?> |
29 |
|
30 |
<div id="forum-statistics-statistics-header" class="forum-statistics-sub-header"> |
31 |
<?php print t('Statistics'); ?> |
32 |
</div>
|
33 |
|
34 |
<div id="forum-statistics-statistics-body" class="forum-statistics-sub-body"> |
35 |
<div id="forum-statistics-topics"> |
36 |
<?php print t('Topics: !topics, Posts: !posts, Users: !users', array( |
37 |
'!topics' => $topics, |
38 |
'!posts' => $posts, |
39 |
'!users' => $users, |
40 |
) |
41 |
); ?>
|
42 |
</div>
|
43 |
<div id="forum-statistics-latest-users"> |
44 |
<?php print t('Welcome to our latest members: !users', array('!users' => $latest_users)); ?> |
45 |
</div>
|
46 |
</div>
|
47 |
</div>
|