Advertisement
Guest User

search.php

a guest
Jan 18th, 2021
39
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * The template for displaying Search Results pages
  4.  *
  5.  * @package Catch_Responsive
  6.  * @subpackage Catch Responsive Pro
  7.  * @since Catch Responsive 1.0
  8.  */
  9.  
  10. get_header(); ?>
  11.  
  12.         <section id="primary" class="content-area">
  13.  
  14.                 <main id="main" class="site-main" role="main">
  15.  
  16.                 <?php if ( have_posts() ) : ?>
  17.  
  18.                         <header class="page-header">
  19.                                 <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'catch-responsive-pro' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
  20.                         </header><!-- .page-header -->
  21.  
  22.                         <?php /* Start the Loop */ ?>
  23.                         <?php while ( have_posts() ) : the_post(); ?>
  24.  
  25.                                 <?php get_template_part( 'content', 'search' ); ?>
  26.  
  27.                         <?php endwhile; ?>
  28.  
  29.                         <?php catchresponsive_content_nav( 'nav-below' ); ?>
  30.  
  31.                 <?php else : ?>
  32.  
  33.                         <?php get_template_part( 'content', 'none' ); ?>
  34.  
  35.                 <?php endif; ?>
  36.  
  37.                 </main><!-- #main -->
  38.         </section><!-- #primary -->
  39.  
  40. <?php get_sidebar(); ?>
  41. <?php get_footer(); ?>
Advertisement
RAW Paste Data Copied
Advertisement