Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // title bar options
- $search_for = 'blog';
- $sidebar = true;
- if( isset( $_GET['post_type'] ) && $_GET['post_type'] === 'product' ) {
- $search_for = 'shop';
- $sidebar = false;
- }
- $title_banner = cs_get_option( 'blog-title-fieldset' );
- $display_title_bar = ( isset( $title_banner['blog-title-bar'] ) ) ? $title_banner['blog-title-bar'] : false;
- get_header();
- ?>
- <?php
- /**
- * STYLISTA Title Banner
- */
- stylista_title_banner($search_for);
- ?>
- <div class="row">
- <div class="col-md-8">
- <main class="main primary-padding">
- <section class="blog-block">
- <div class="container">
- <?php
- if( $search_for === 'shop' ):
- ?>
- <div class="row">
- <div class="col-sm-8 col-md-8 col-xs-8">
- <div class="blog-list-wrap">
- <ul class="products">
- <?php if( function_exists( 'wc_get_template_part' ) ): ?>
- wc_get_template_part( 'content', 'product' );
- <?php endif; ?>
- </ul>
- </div>
- </div>
- <div class="col-md-3" style="margin-left: 95px;">
- <?php echo do_shortcode("[woof]"); ?>
- </div>
- </div>
- <?php else: ?>
- <?php if( have_posts() ): ?>
- <?php get_template_part( 'partials/post/archive', 'classic' ); ?>
- <?php else: ?>
- <p><?php esc_html_e( 'Your search did not return any results.Try Searching Other Keywords.', 'stylista' ); ?></p>
- <div class="search-form"><?php get_search_form();?></div>
- <a href="<?php echo esc_url( home_url('/') ); ?>" class="home-url">
- <?php esc_html_e( 'Go back to Home', 'stylista' ); ?>
- </a>
- <?php endif; ?>
- <?php endif; ?>
- </div>
- </section>
- <!--blog-->
- </main>
- </div>
- <div class="col-md-3" style="margin-left: 95px;">
- <?php echo do_shortcode("[woof]"); ?>
- </div>
- </div>
- <!-- /.main-->
- <?php
- get_footer();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement