forum-list.tpl.php Default theme implementation to display a list of forums and containers.
Available variables:
- $forums: An array of forums and containers to display. It is keyed to the numeric id's of all child forums and containers.
- $forum_id: Forum id for the current forum. Parent to all items within the $forums array.
Each $forum in $forums contains:
- $forum->is_container: Is TRUE if the forum can contain other forums. Is FALSE if the forum can contain only topics.
- $forum->depth: How deep the forum is in the current hierarchy.
- $forum->zebra: 'even' or 'odd' string used for row class.
- $forum->name: The name of the forum.
- $forum->link: The URL to link to this forum.
- $forum->description: The description of this forum.
- $forum->new_topics: True if the forum contains unread posts.
- $forum->new_url: A URL to the forum's unread posts.
- $forum->new_text: Text for the above URL which tells how many new posts.
- $forum->old_topics: A count of posts that have already been read.
- $forum->num_posts: The total number of posts in the forum.
- $forum->last_reply: Text representing the last time a forum was posted or commented in.
See also
template_preprocess_forum_list()
View source
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | |