search.php 887 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Search results template
  4. *
  5. * @package vamtam/consulting
  6. */
  7. VamtamFramework::set( 'page_title', sprintf( esc_html__( 'Search Results for: %s', 'vamtam-consulting' ), '<span>' . get_search_query() . '</span>' ) );
  8. get_header(); ?>
  9. <div class="row page-wrapper">
  10. <?php if ( have_posts() ) : the_post(); ?>
  11. <?php VamtamTemplates::$in_page_wrapper = true; ?>
  12. <article id="post-<?php the_ID(); ?>" <?php post_class( VamtamTemplates::get_layout() ); ?>>
  13. <div class="page-content">
  14. <?php
  15. rewind_posts();
  16. get_template_part( 'loop', 'category' );
  17. get_template_part( 'templates/share' );
  18. ?>
  19. </div>
  20. </article>
  21. <?php get_template_part( 'sidebar' ) ?>
  22. <?php else : ?>
  23. <article>
  24. <h1 id="vamtam-no-search-results"><?php esc_html_e( 'Sorry, nothing found', 'vamtam-consulting' ) ?></h1>
  25. </article>
  26. <?php endif ?>
  27. </div>
  28. <?php get_footer(); ?>