<?php //Display Page Header global $wp_query; $postid = $wp_query->post->ID; echo page_header(get_post_meta($postid, 'qns_page_header_image', true)); wp_reset_query(); ?> <!-- BEGIN .section --> <div class="section"> <ul class="columns-content page-content clearfix"> <!-- BEGIN .col-main --> <li class="<?php echo sidebar_position('primary-content'); ?> "> <h2 class="page-title"><?php the_title(); ?> </h2> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <?php
} else { dynamic_sidebar('primary-widget-area'); } ?> </li> <?php } else { ?> <?php if (sidebar_position('secondary-content') != 'full-width') { ?> <!-- BEGIN .col-sidebar --> <li class="<?php echo sidebar_position('secondary-content'); ?> "> <?php if (is_plugin_active('woocommerce/woocommerce.php')) { if (is_woocommerce() or is_cart() or is_checkout() or is_account_page()) { dynamic_sidebar('woocommerce-widget-area'); } else { dynamic_sidebar('primary-widget-area'); } ?> <?php } else { dynamic_sidebar('primary-widget-area');