Guest User

Untitled

a guest
Feb 24th, 2020
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  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 arilewp
  8. */
  9.  
  10. get_header();
  11. get_template_part('template-parts/site','breadcrumb');
  12. ?>
  13.  
  14. <section class="theme-block theme-blog theme-blog-large theme-bg-grey">
  15.  
  16. <div class="container">
  17.  
  18. <div class="row">
  19.  
  20. <div class="col-lg-<?php echo ( !is_active_sidebar( 'sidebar-main' ) ? '12' :'8' ); ?> col-md-<?php echo ( !is_active_sidebar( 'sidebar-main' ) ? '12' :'8' ); ?> col-sm-12">
  21. <?php
  22. if ( have_posts() ) :
  23.  
  24. /* Start the Loop */
  25. while ( have_posts() ) : the_post();
  26.  
  27. /**
  28. * Run the loop for the search to output the results.
  29. * If you want to overload this in a child theme then include a file
  30. * called content-search.php and that will be used instead.
  31. */
  32. get_template_part( 'acontent', get_post_format() );
  33.  
  34. endwhile;
  35.  
  36. // Pgination.
  37. the_posts_pagination( array(
  38. 'prev_text' => '<i class="fa fa-angle-double-left"></i>',
  39. 'next_text' => '<i class="fa fa-angle-double-right"></i>'
  40. ) );
  41.  
  42. else :
  43.  
  44. get_template_part( 'template-parts/content', 'none' );
  45.  
  46. endif; ?>
  47.  
  48. </div>
  49.  
  50. <?php get_sidebar(); ?>
  51.  
  52. </div>
  53.  
  54. </div>
  55.  
  56. </section>
  57.  
  58. <?php
  59. get_footer();
Add Comment
Please, Sign In to add comment