<?php 
/**
* The template for displaying search results pages.
*
* @package peccular
*/

get_header(); ?>
<div class="peccular-page-main"> 
    <header class="page-main-header" 
  <?php
    if(get_theme_mod('innerpage_featured_img_on_off') != 'on' ){
  ?>

 <?php  if (!empty($image)) : ?>
  style="background: url('<?php echo esc_url($image); ?>'); background-repeat: no-repeat; background-size:cover;background-position: center;  height: <?php echo esc_attr(get_theme_mod('peccular_innerpage_image_height','416')) ?>px;
  "
  <?php endif ?> 

 <?php } ?>

  >
   <?php if( get_theme_mod('inneranimations_icon_display','show' ) == 'show') :
                            ?>
   <?php  
         echo '<img alt="about us" src="'.get_template_directory_uri().'/images/triangledot.png" class="triangle" />';
  ?> 
  <?php  
      echo '<img alt="about us" src="'.get_template_directory_uri().'/images/circledot.png" class="circledot" />';
  ?>
    <?php endif ?> 

 <?php
    if(get_theme_mod('breadcrumb_on_off') != 'on' ){
  ?>
        
            <div class="<?php if(get_theme_mod('peccular_inner_page_width','Box Width') == 'Box Width'){ ?>container <?php } elseif(get_theme_mod('peccular_inner_page_width','Box Width') == 'Full Width'){ ?> container-fluid <?php }?>">
                <div class="breadcrumbbox <?php echo esc_attr(get_theme_mod('peccular_innerpage_header_box_onload_effects','wow zoomIn')); ?>" data-wow-duration="1s">
                <div class='button'><?php peccular_lite_the_breadcrumb(); ?></div>
                <!--  <?php //peccular_lite_the_breadcrumb(); ?> -->
            </div>
        </div>
 <?php } ?>   
  <?php if( get_theme_mod('inneranimations_icon_display','show' ) == 'show') :
                            ?>
  <?php  
      echo '<img alt="about us" src="'.get_template_directory_uri().'/images/snakeline.png" class="snake" />';
   ?>
  <?php  
         echo '<img alt="about us" src="'.get_template_directory_uri().'/images/circle.png" class="circle" />';
      ?>
      <?php  
         echo '<img alt="about us" src="'.get_template_directory_uri().'/images/triangle.png" class="tri" />';
       ?>
        <?php  
           echo '<img alt="about us" src="'.get_template_directory_uri().'/images/snakeline.png" class="snake2" />';
          ?>
   <?php endif ?> 
</header><!-- .entry-header --> 
<div class="peccular-innerpage-overlay"></div>
<div class="clearfix"></div>
</div>
<main id="innerpage-box">
	    	         <div class="<?php if(get_theme_mod('peccular_inner_page_width','Full Width') == 'Full Width'){ ?>container-fluid page-width <?php } elseif(get_theme_mod('peccular_inner_page_width','Full Width') == 'Box Width'){ ?> container page-width<?php }?>">    

		  <div class="inner_contentbox"> 
		  	<div class="row m-0">
		<div id="content-box" class="col-xl-8 col-lg-8 col-md-6 col-sm-6 col-xs-12">
			<?php if ( have_posts() ) : ?>
				<?php /* Start the Loop */ ?>
				<?php while ( have_posts() ) : the_post(); ?>
					<?php
					/**
					 * Run the loop for the search to output the results.
					 * If you want to overload this in a child theme then include a file
					 * called content-search.php and that will be used instead.
					 */
					get_template_part( 'template-parts/content', 'search' );
					?>
				<?php endwhile; ?>
				<?php 
				the_posts_pagination( 
					array(
						'prev_text' => __( 'Prev', 'total' ),
						'next_text' => __( 'Next', 'total' ),
					)
				); 
				?>
			<?php else : ?>
			<?php get_template_part( 'template-parts/content', 'none' ); ?>
			<?php endif; ?>
		</div><!-- #main -->
		<div class="col-xl-4 col-lg-4 col-md-6 col-sm-6 col-xs-12">
			<?php  get_sidebar(); ?> 
		</div>
		<div class="clearfix"></div>
	</div>
		<div class="clearfix"></div>
		<div class="row">
			<div class="col-md-12">
				<div class="pagingation">
					<?php lzGetPagination($query);?>
				</div>
			</div>
		</div>
		<div class="clearfix"></div>
	</div>
		<div class="clearfix"></div>
	</div>
</main><!-- #primary -->
<?php get_footer();
