File: /var/www/html/wp-content/themes/gostore/index.php
<?php
get_header();
$theme_options = gostore_get_theme_options();
$page_column_class = gostore_page_layout_columns_class($theme_options['ts_blog_layout'], $theme_options['ts_blog_left_sidebar'], $theme_options['ts_blog_right_sidebar']);
if( is_search() ){
gostore_breadcrumbs_title(true, true, esc_html__( 'Search Results for: ', 'gostore' ) . get_search_query());
}
?>
<div class="page-template blog-template index-template page-container">
<!-- Left Sidebar -->
<?php if( $page_column_class['left_sidebar'] ): ?>
<aside id="left-sidebar" class="ts-sidebar <?php echo esc_attr($page_column_class['left_sidebar_class']); ?>">
<?php dynamic_sidebar( $theme_options['ts_blog_left_sidebar'] ); ?>
</aside>
<?php endif; ?>
<div id="main-content" class="<?php echo esc_attr($page_column_class['main_class']); ?>">
<div id="primary" class="site-content">
<?php
if( have_posts() ):
echo '<div class="list-posts">';
while( have_posts() ) : the_post();
get_template_part( 'content', get_post_format() );
endwhile;
echo '</div>';
else:
echo '<div class="alert alert-error">';
echo '<h3>'.esc_html__('Sorry. There are no posts to display!', 'gostore').'</h3>';
echo '<p class="ts-aligncenter">'.esc_html__('Try researching for something else.', 'gostore').'</p>';
echo '</div>';
echo '<div class="search-wrapper">';
get_search_form();
echo '</div>';
endif;
gostore_pagination();
?>
</div>
</div>
<!-- Right Sidebar -->
<?php if( $page_column_class['right_sidebar'] ): ?>
<aside id="right-sidebar" class="ts-sidebar <?php echo esc_attr($page_column_class['right_sidebar_class']); ?>">
<?php dynamic_sidebar( $theme_options['ts_blog_right_sidebar'] ); ?>
</aside>
<?php endif; ?>
</div>
<?php get_footer(); ?>