Make WordPress Themes

source: fluida/1.3.6/search.php

Last change on this file was 85389, checked in by themedropbox, 8 years ago

New version of Fluida - 1.3.6

File size: 1.3 KB
Line 
1<?php
2/**
3 * The template for displaying Search results pages.
4 *
5 * @package Fluida
6 */
7
8get_header(); ?>
9
10        <div id="container" class="<?php echo fluida_get_layout_class(); ?>">
11                <main id="main" role="main" class="main">
12                        <?php cryout_before_content_hook(); ?>
13
14                        <?php if ( have_posts() ) : ?>
15
16                                <header class="content-search pad-container" <?php cryout_schema_microdata( 'element' ); ?>>
17                                        <h1 class="page-title" <?php cryout_schema_microdata( 'entry-title' ); ?>>
18                                                <?php printf( __( 'Search Results for: %s', 'fluida' ), '<strong>' . get_search_query() . '</strong>' ); ?>
19                                        </h1>
20                                        <?php get_search_form(); ?>
21                                </header>
22
23                                <div id="content-masonry" class="content-masonry" <?php cryout_schema_microdata( 'blog' ); ?>>
24                                        <?php /* Start the Loop */
25                                        while ( have_posts() ) : the_post();
26                                                get_template_part( 'content/content', get_post_format() );
27                                        endwhile;
28                                        ?>
29                                </div><!--content-masonry-->
30                                <?php
31
32                                fluida_pagination();
33
34                        else :
35
36                                get_template_part( 'content/content', 'notfound' ); 
37                                ?> <div id="content-masonry"></div> <?php 
38                               
39                                cryout_empty_page_hook();
40
41                        endif; ?>
42
43                        <?php cryout_after_content_hook(); ?>
44                </main><!-- #main -->
45
46                <?php fluida_get_sidebar(); ?>
47        </div><!-- #primary -->
48
49<?php get_footer(); ?>
Note: See TracBrowser for help on using the repository browser.