<div id="bbpress-forums"> <?php bbp_get_template_part('content', 'statistics'); ?> <?php do_action('bbp_before_popular_topics'); ?> <?php bbp_set_query_name('bbp_popular_topics'); ?> <?php if (bbp_view_query('popular')) { ?> <h2 class="entry-title"><?php _e('Popular Topics', 'bbpress'); ?> </h2> <?php bbp_get_template_part('pagination', 'topics'); ?> <?php bbp_get_template_part('loop', 'topics'); ?>
* @subpackage Theme */ ?> <div id="bbpress-forums"> <?php bbp_breadcrumb(); ?> <?php bbp_set_query_name(bbp_get_view_rewrite_id()); ?> <?php if (bbp_view_query()) { ?> <?php bbp_get_template_part('pagination', 'topics'); ?> <?php bbp_get_template_part('loop', 'topics'); ?> <?php bbp_get_template_part('pagination', 'topics'); ?> <?php
/** * Display the contents of a specific view in an output buffer and return to * ensure that post/page contents are displayed first. * * @since bbPress (r3031) * * @param array $attr * @param string $content * @uses get_template_part() * @uses bbp_single_forum_description() * @return string */ public function display_view($attr, $content = '') { // Sanity check required info if (empty($attr['id'])) { return $content; } // Set passed attribute to $view_id for clarity $view_id = $attr['id']; // Start output buffer $this->start('bbp_single_view'); // Unset globals $this->unset_globals(); // Load the view bbp_view_query($view_id); // Output template bbp_get_template_part('content', 'single-view'); // Return contents of output buffer return $this->end(); }