function waxom_body_class() { global $post; $return = ''; if (!is_front_page() && waxom_option('header_title') != 0 && get_post_meta(get_the_ID(), 'page_header', true) != 'no-header' && !is_page_template('template-onepager.php') || is_search() && waxom_option('header_title') != 0) { $return .= ' page-with-title'; } $header_style = 'style-default'; if (waxom_header_style()) { $header_style = waxom_header_style(); } if (waxom_option('topbar') && $header_style != 'style-boxed' && $header_style != 'style-transparent' && $header_style != 'style-minimal1') { $return .= ' page-with-topbar'; } if (waxom_vc_active()) { $return .= ' page-with-vc'; } else { $return .= ' page-without-vc'; } return 'header-' . waxom_header_style() . $return; return null; }
// If Visual Composer is not enabled for the page if (!waxom_vc_active() || $layout == 'sidebar_right' || $layout == 'sidebar_left') { echo '<div class="inner">'; } if ($layout != "fullwidth" || $layout == 'fullwidth' && !waxom_vc_active()) { echo '<div class="page_inner">'; } if (have_posts()) { while (have_posts()) { the_post(); woocommerce_content(); } } if ($layout != "fullwidth" || $layout == 'fullwidth' && !waxom_vc_active()) { echo '</div>'; } if ($layout != "fullwidth") { get_sidebar(); } if (!waxom_vc_active() || $layout == 'sidebar_right' || $layout == 'sidebar_left') { echo '</div>'; } if ($page_links == 'yes') { wp_link_pages(); } ?> </div> <?php get_footer();
<?php /** * woocommerce_after_main_content hook * * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content) */ do_action('woocommerce_after_main_content'); ?> <?php /** * woocommerce_sidebar hook * * @hooked woocommerce_get_sidebar - 10 */ if ($layout != "fullwidth" || $layout == 'fullwidth' && !waxom_vc_active()) { echo '</div>'; } if ($layout != "fullwidth") { get_sidebar(); } if ($page_width != 'fullwidth') { echo '</div>'; } ?> </div> <?php get_footer('shop'); ?>
* woocommerce_after_main_content hook * * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content) */ do_action('woocommerce_after_main_content'); ?> <?php /** * woocommerce_sidebar hook * * @hooked woocommerce_get_sidebar - 10 */ ?> <?php if ($layout != "fullwidth" || $layout == 'fullwidth' && !waxom_vc_active()) { echo '</div>'; } if ($layout != "fullwidth") { get_sidebar(); } if (!waxom_vc_active()) { echo '</div>'; } ?> </div> <?php get_footer('shop');