advanced-forum.bootstrap.forums.tpl.php in Advanced Forum Bootstrap 7.3
Default theme implementation to display a forum which may contain forum containers as well as forum topics.
Variables available:
- $forum_links: An array of links that allow a user to post new forum topics. It may also contain a string telling a user they must log in in order to post. Empty if there are no topics on the page. (ie: forum overview) This is no longer printed in the template by default because it was moved to the topic list section. The variable is still available for customizations.
- $forums: The forums to display (as processed by forum-list.tpl.php)
- $topics: The topics to display (as processed by forum-topic-list.tpl.php)
- $forums_defined: A flag to indicate that the forums are configured.
- $forum_legend: Legend to go with the forum graphics.
- $topic_legend: Legend to go with the topic graphics.
- $forum_tools: Drop down menu for various forum actions.
- $forum_description: Description that goes with forum term. Not printed by default.
File
styles/bootstrap/advanced-forum.bootstrap.forums.tpl.phpView source
<?php
/**
* @file
* Default theme implementation to display a forum which may contain forum
* containers as well as forum topics.
*
* Variables available:
* - $forum_links: An array of links that allow a user to post new forum topics.
* It may also contain a string telling a user they must log in in order
* to post. Empty if there are no topics on the page. (ie: forum overview)
* This is no longer printed in the template by default because it was moved
* to the topic list section. The variable is still available for customizations.
* - $forums: The forums to display (as processed by forum-list.tpl.php)
* - $topics: The topics to display (as processed by forum-topic-list.tpl.php)
* - $forums_defined: A flag to indicate that the forums are configured.
* - $forum_legend: Legend to go with the forum graphics.
* - $topic_legend: Legend to go with the topic graphics.
* - $forum_tools: Drop down menu for various forum actions.
* - $forum_description: Description that goes with forum term. Not printed by default.
*
* @see template_preprocess_forums()
* @see advanced_forum_preprocess_forums()
*/
?>
<?php
if ($forums_defined) {
?>
<div id="forum">
<?php
print $forums;
?>
<?php
if (!empty($forum_legend) || !empty($forum_tools)) {
?>
<hr/>
<div class="well">
<div class="row">
<div class="col-md-6">
<?php
if (!empty($forum_legend)) {
print $forum_legend;
}
?>
</div>
<div class="col-md-6">
<?php
if (!empty($forum_tools)) {
print $forum_tools;
}
?>
</div>
</div>
<?php
if (!empty($forum_statistics)) {
?>
<hr/><?php
print $forum_statistics;
?>
<?php
}
?>
</div>
<?php
}
?>
<?php
print $topics;
?>
<?php
if (!empty($topics)) {
print $topic_legend;
}
?>
</div>
<?php
}