~canonical-sysadmins/wordpress/4.6

« back to all changes in this revision

Viewing changes to wp-content/themes/twentythirteen/search.php

  • Committer: Jacek Nykis
  • Date: 2015-01-05 16:17:05 UTC
  • Revision ID: jacek.nykis@canonical.com-20150105161705-w544l1h5mcg7u4w9
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * The template for displaying Search Results pages
 
4
 *
 
5
 * @package WordPress
 
6
 * @subpackage Twenty_Thirteen
 
7
 * @since Twenty Thirteen 1.0
 
8
 */
 
9
 
 
10
get_header(); ?>
 
11
 
 
12
        <div id="primary" class="content-area">
 
13
                <div id="content" class="site-content" role="main">
 
14
 
 
15
                <?php if ( have_posts() ) : ?>
 
16
 
 
17
                        <header class="page-header">
 
18
                                <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentythirteen' ), get_search_query() ); ?></h1>
 
19
                        </header>
 
20
 
 
21
                        <?php /* The loop */ ?>
 
22
                        <?php while ( have_posts() ) : the_post(); ?>
 
23
                                <?php get_template_part( 'content', get_post_format() ); ?>
 
24
                        <?php endwhile; ?>
 
25
 
 
26
                        <?php twentythirteen_paging_nav(); ?>
 
27
 
 
28
                <?php else : ?>
 
29
                        <?php get_template_part( 'content', 'none' ); ?>
 
30
                <?php endif; ?>
 
31
 
 
32
                </div><!-- #content -->
 
33
        </div><!-- #primary -->
 
34
 
 
35
<?php get_sidebar(); ?>
 
36
<?php get_footer(); ?>
 
 
b'\\ No newline at end of file'