<?php /* ---------------------------------------------------------------------------- the bbpress template - used on topic and replies */ //for breadcrumbs td_global::$is_bbpress_forum_home = true; //for sidebar td_global::$current_template = 'bbpress'; get_header(); //set the template id, used to get the template specific settings $template_id = 'bbpress'; $loop_sidebar_position = td_util::get_option('tds_' . $template_id . '_sidebar_pos'); //sidebar right is default (empty) //read the custom single post settings - this setting overids all of them $td_page = get_post_meta($post->ID, 'td_page', true); if (!empty($td_page['td_sidebar_position'])) { $loop_sidebar_position = $td_page['td_sidebar_position']; } switch ($loop_sidebar_position) { case 'sidebar_left': echo td_page_generator::wrap_start(); ?> <div class="span4 column_container" role="complementary" itemscope="itemscope" itemtype="<?php echo td_global::$http_or_https; ?> ://schema.org/WPSideBar"> <?php get_sidebar(); ?> </div>