<?php get_header();
$dannci_redux = get_option( 'dannci_redux' );?>

<div class="dnnc_page_header dnnc_page_header_plain dnnc_border_main">
    
    <div class="dnnc_container">
    
    	<div class="dnnc_column dnnc_column_12">
        
            <h1 class="archive_title large_title"><span class="maintitle"><?php echo esc_attr($s); ?></span>
            <span class="dnnc_archive_subtitle medium_title"><?php esc_html('Search Results','visby');?> </span></h1>
                
        </div><!-- end .dnnc_column_12  -->
        
    </div><!-- end .dnnc_container  -->
    
</div>

<div class="dnnc_container dnnc_container_zero">

    <div id="content_start" class="dnnc_anchor"></div>

    <div class="dnnc_box">

        <div id="content" class="dnnc_content dnnc_border_main">
                
            <div class="dnnc_blogger dnnc_columns_wrap">

            <div class="item dnnc_column dnnc_column_12 placeholder_item"></div>
            
                <?php if (have_posts()) : ?>
                                    
                <?php while (have_posts()) : the_post(); ?>
            
                    <div class="item dnnc_column dnnc_column_12">
                    
                    <?php if(has_post_format('quote')){get_template_part('/post-types/post-quote-index');} 
                    
                    else {
                    
                        get_template_part('/post-types/post-classic');
                        
                    } ?>
                    
                    </div>
                        
                <?php endwhile; ?><!-- end post -->
                
                <div class="clearfix"></div>
            
            </div><!-- end latest posts section-->
        
            <div class="clearfix"></div>
        
                <div class="pagination"><?php the_posts_pagination(); ?></div>
        
                <?php else : ?>
        
                    <div class="errorentry item dnnc_column dnnc_column_12">
        
                        <h1 class="post entry-title" itemprop="headline"><?php esc_html_e('Oops! Nothing found here','visby');?></h1>
                    
                        <h3><?php esc_html_e('Take a moment and do a search below','visby');?></h3>
        
                        <?php get_search_form();?>
                    
                    </div>
                
                </div><!-- end latest posts section-->
                    
                <?php endif; ?>               
        
            </div><!-- end #content -->
        

            <?php get_sidebar('left'); ?>

            <?php get_sidebar('right'); ?>

        </div><!-- end .dnnc_box -->
            
    </div><!-- end #content -->
        
    
</div><!-- end .dnnc_container -->

<div class="clearfix"></div>

<?php get_footer(); ?>