/wp-content/themes/ifeature/search.php
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
- <?php
- /**
- * Search Template
- *
- * Please do not edit this file. This file is part of the Cyber Chimps Framework and all modifications
- * should be made in a child theme.
- *
- * @category CyberChimps Framework
- * @package Framework
- * @since 1.0
- * @author CyberChimps
- * @license http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later)
- * @link http://www.cyberchimps.com/
- */
-
- get_header(); ?>
- <?php do_action( 'cyberchimps_before_container'); ?>
- <div id="container" <?php cyberchimps_filter_container_class(); ?>>
-
- <?php do_action( 'cyberchimps_before_content_container'); ?>
-
- <div id="content" <?php cyberchimps_filter_content_class(); ?>>
-
- <?php do_action( 'cyberchimps_before_content'); ?>
-
- <?php if ( have_posts() ) : ?>
- <header class="page-header">
- <h2 class="page-title"><?php printf( __( 'Search Results for: %s', 'cyberchimps' ), '<span>' . get_search_query() . '</span>' ); ?></h2>
- </header>
- <?php /* Start the Loop */ ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <?php get_template_part( 'content', 'search' ); ?>
- <?php endwhile; ?>
- <?php else : ?>
- <?php get_template_part( 'no-results', 'search' ); ?>
- <?php endif; ?>
-
- <?php do_action( 'cyberchimps_after_content'); ?>
-
- </div><!-- #content -->
-
- <?php do_action( 'cyberchimps_after_content_container'); ?>
-
- </div><!-- #container .row-fluid-->
- <?php do_action( 'cyberchimps_after_container'); ?>
- <?php get_footer(); ?>