PageRenderTime 47ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/themes/ifeature/search.php

https://github.com/Bochet/festival_lgbt
PHP | 57 lines | 24 code | 20 blank | 13 comment | 3 complexity | 85b4ec0a870eebedde0c7dd1f284bdff MD5 | raw file
Possible License(s): GPL-2.0, AGPL-1.0, LGPL-2.1
  1. <?php
  2. /**
  3. * Search Template
  4. *
  5. * Please do not edit this file. This file is part of the Cyber Chimps Framework and all modifications
  6. * should be made in a child theme.
  7. *
  8. * @category CyberChimps Framework
  9. * @package Framework
  10. * @since 1.0
  11. * @author CyberChimps
  12. * @license http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later)
  13. * @link http://www.cyberchimps.com/
  14. */
  15. get_header(); ?>
  16. <?php do_action( 'cyberchimps_before_container'); ?>
  17. <div id="container" <?php cyberchimps_filter_container_class(); ?>>
  18. <?php do_action( 'cyberchimps_before_content_container'); ?>
  19. <div id="content" <?php cyberchimps_filter_content_class(); ?>>
  20. <?php do_action( 'cyberchimps_before_content'); ?>
  21. <?php if ( have_posts() ) : ?>
  22. <header class="page-header">
  23. <h2 class="page-title"><?php printf( __( 'Search Results for: %s', 'cyberchimps' ), '<span>' . get_search_query() . '</span>' ); ?></h2>
  24. </header>
  25. <?php /* Start the Loop */ ?>
  26. <?php while ( have_posts() ) : the_post(); ?>
  27. <?php get_template_part( 'content', 'search' ); ?>
  28. <?php endwhile; ?>
  29. <?php else : ?>
  30. <?php get_template_part( 'no-results', 'search' ); ?>
  31. <?php endif; ?>
  32. <?php do_action( 'cyberchimps_after_content'); ?>
  33. </div><!-- #content -->
  34. <?php do_action( 'cyberchimps_after_content_container'); ?>
  35. </div><!-- #container .row-fluid-->
  36. <?php do_action( 'cyberchimps_after_container'); ?>
  37. <?php get_footer(); ?>