Last active
August 29, 2015 14:14
-
-
Save svenl77/6ed305efa545e3e1dc19 to your computer and use it in GitHub Desktop.
woosupport.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10); | |
remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10); | |
add_action('woocommerce_before_main_content', 'cc2_theme_wrapper_start', 10); | |
add_action('woocommerce_after_main_content', 'cc2_theme_wrapper_end', 10); | |
function cc2_theme_wrapper_start() {?> | |
<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', array('main-content-inner') ); ?>"> | |
<?php do_action( 'cc_first_inside_main_content_inner'); ?> | |
<?php | |
} | |
function cc2_theme_wrapper_end() {?> | |
<?php do_action('tk_sidebars_index'); ?> | |
</div><!-- close #content --> | |
<?php if( cc2_display_sidebar( 'right' ) ) : ?> | |
<?php get_sidebar( 'right' ); ?> | |
<?php endif; ?> | |
</div><!-- close .row --> | |
</div><!-- close .container --> | |
</div><!-- close .main-content --> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment