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