balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

search.php (1688B)


      1 <?php
      2 /**
      3  * The template for displaying search results pages
      4  *
      5  * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
      6  *
      7  * @package appside
      8  */
      9 
     10 get_header();
     11 $page_layout_options = Appside_Group_Fields_Value::page_layout_options('search');
     12 ?>
     13 
     14     <section id="primary" class="content-area search-page-content-area padding-120">
     15         <main id="main" class="site-main">
     16             <div class="container">
     17                 <div class="row">
     18                     <div class="<?php echo esc_attr($page_layout_options['content_column_class']);?>">
     19 						<?php if ( have_posts() ) : ?>
     20 							<?php
     21 							/* Start the Loop */
     22 							while ( have_posts() ) :
     23 								the_post();
     24 
     25 								/**
     26 								 * Run the loop for the search to output the results.
     27 								 * If you want to overload this in a child theme then include a file
     28 								 * called content-search.php and that will be used instead.
     29 								 */
     30 								get_template_part( 'template-parts/content', 'search' );
     31 
     32 							endwhile;
     33 							?>
     34                             <div class="blog-pagination">
     35 								<?php Appside()->post_pagination(); ?>
     36                             </div>
     37 						<?php
     38 						else :
     39 
     40 							get_template_part( 'template-parts/content', 'none' );
     41 
     42 						endif;
     43 						?>
     44                     </div>
     45 					<?php if ($page_layout_options['sidebar_enable']):?>
     46                         <div class="<?php echo esc_attr($page_layout_options['sidebar_column_class']);?>">
     47 							<?php get_sidebar();?>
     48                         </div>
     49 					<?php endif;?>
     50                 </div>
     51             </div>
     52         </main><!-- #main -->
     53     </section><!-- #primary -->
     54 
     55 <?php
     56 
     57 get_footer();