/** * The template for displaying all pages * * This is the template that displays all pages by default. * Please note that this is the WordPress construct of pages and that * other 'pages' on your WordPress site will use a different template. * * @package WordPress * @subpackage TemplateMela * @since TemplateMela 1.0 */ get_header(); ?> <div id="main-content" class="main-content <?php echo esc_attr(tm_sidebar_position()); ?> <?php echo esc_attr(tm_page_layout()); ?> "> <?php if (is_front_page() && templatemela_has_featured_posts()) { // Include the featured content template. get_template_part('featured-content'); } ?> <div id="primary" class="content-area"> <?php global $wp_query;
*/ if (!defined('ABSPATH')) { exit; } // Exit if accessed directly get_header('shop'); if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] == 'left') { $div_class = 'left-sidebar'; } elseif (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] == 'right') { $div_class = 'right-sidebar'; } elseif (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] == 'full') { $div_class = 'full-width'; } else { $tm_sidebar_position = get_post_meta(get_the_ID(), 'tm_sidebar_position', true); if (is_shop()) { $div_class = tm_sidebar_position(); } else { $div_class = 'left-sidebar'; } } ?> <div class="main-content-inner <?php echo $div_class; ?> "> <?php /** * woocommerce_before_main_content hook * * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)