zZzzZ.
home2
/
zrzvbdry
/
couponetive.com
/
wp-content
/
themes
/
retail-pro
New Folder
Editing: index.php
Save
Cancel
<?php /** * The main template file. * * This is the most generic template file in a WordPress theme * and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * E.g., it puts together the home page when no home.php file exists. * Learn more: http://codex.wordpress.org/Template_Hierarchy * * @package WP Coupon */ get_header(); /** * Hooks wpcoupon_after_header * * @see wpcoupon_page_header(); * */ do_action( 'wpcoupon_after_header' ); $layout = wpcoupon_get_site_layout(); ?> <?php if ( $layout != 'no-sidebar' ) { $show_blog_header = wpcoupon_get_option('blog_header'); if($show_blog_header =='on'){?> <section class="custom-page-header"> <div class="container"> <div class="inner-content clearfix"> <div class="header-content"> <h1> <?php echo wpcoupon_get_option('blog_page_heading_title', false, ''); ?> </h1> </div> </div> </div> </section> <?php } ?> <div id="content-wrap" class="rt-blog-area container container-index <?php echo esc_attr( $layout ); ?>"> <div id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <?php global $wp_query; if ( ! is_singular() ) { if ( have_posts() ) { if ( is_search() && get_query_var('post_type') == 'store' ) { get_template_part('search-store'); } else { get_template_part( 'content','loop' ); } get_template_part( 'content', 'paging' ); } else { get_template_part('content','none'); } } else { get_template_part('content'); } ?> </main><!-- #main --> </div><!-- #primary --> <?php get_sidebar(); } elseif ( $layout == 'no-sidebar' ) { ?> <div id="content-wrap" class="rt-blog-area container container-index <?php echo esc_attr( $layout ); ?>"> <div id="primary" class="full-width-post content-area"> <main id="main" class="site-main" role="main"> <?php global $wp_query; if ( ! is_singular() ) { if ( have_posts() ) { if ( is_search() && get_query_var('post_type') == 'store' ) { get_template_part('search-store'); } else { get_template_part( 'content','loop' ); } get_template_part( 'content', 'paging' ); } else { get_template_part('content','none'); } } else { get_template_part('content'); } ?> </main><!-- #main --> </div><!-- #primary --> </div> <?php } ?> </div> <!-- /#content-wrap --> <?php $page_breadcrumb = wpcoupon_get_option( 'blog_header_breadcrumb' ); ?> <?php if ($page_breadcrumb==true) {?> <div class="container"> <div class="retail_pro_breadcrumb"> <?php /** * Hooked * * @see wpcoupon_breadcrumb() - 15 * * @since 1.0.0 */ do_action( 'wpcoupon_before_container' ); ?> </div> </div> <?php } ?> <div class="container"> <?php if ( is_active_sidebar( 'nl-widget' ) ){ ?> <div class="nl-widget"> <?php dynamic_sidebar( 'nl-widget' );?> </div> <?php } ?> </div> <?php get_footer(); ?>