* @author Fabian Wolf */ $content_class = array('main-content-inner'); ?> <div class="main-content"> <div id="container" class="container"> <div class="row"> <?php do_action('cc_first_inside_main_content'); ?> <?php // get the left sidebar if it should be displayed if (cc2_display_sidebar('left')) { get_sidebar('left'); } ?> <div id="content" class="<?php echo apply_filters('cc2_content_class', $content_class); ?> "> <?php do_action('cc_first_inside_main_content_inner'); ?>
} ?> <?php } // we're through! that was the whole loop thing! let's move on to the sidebar.. ?> <?php do_action('tk_sidebars_index'); ?> </div><!-- close #content --> <?php if (cc2_display_sidebar('right')) { ?> <?php get_sidebar('right'); ?> <?php } ?> </div><!-- close .row --> </div><!-- close .container --> </div><!-- close .main-content --> <?php } // end show_front_page_content != false ?>
/** * Check if both sidebars should be displayed in current view * * @author Konrad Sroka * @package cc2 * @since 2.0 * */ function cc2_display_both_sidebars() { $return = false; if (cc2_display_sidebar('left') && cc2_display_sidebar('right')) { $return = true; } return $return; }