Make WordPress Core


Ignore:
Timestamp:
08/14/2013 04:38:01 PM (12 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: first pass at matching code standards achieved with Twenty Thirteen development. See #24858, props obenland.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/search.php

    r24832 r25021  
    1212    <div id="content" class="site-content" role="main">
    1313
    14     <?php if ( have_posts() ) : ?>
     14        <?php if ( have_posts() ) : ?>
    1515
    1616        <header class="page-header">
    17             <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyfourteen' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
     17            <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyfourteen' ), get_search_query() ); ?></h1>
    1818        </header><!-- .page-header -->
    1919
    20         <?php while ( have_posts() ) : the_post(); ?>
     20        <?php
     21                while ( have_posts() ) :
     22                    the_post();
    2123
    22             <?php twentyfourteen_get_template_part(); ?>
     24                    twentyfourteen_get_template_part();
     25                endwhile;
    2326
    24         <?php endwhile; ?>
     27                twentyfourteen_content_nav( 'nav-below' );
    2528
    26         <?php twentyfourteen_content_nav( 'nav-below' ); ?>
     29            else :
     30                get_template_part( 'no-results', 'search' );
    2731
    28     <?php else : ?>
     32            endif;
     33        ?>
    2934
    30         <?php get_template_part( 'no-results', 'search' ); ?>
     35    </div><!-- #content -->
     36</section><!-- #primary -->
    3137
    32     <?php endif; ?>
    33 
    34     </div><!-- #content .site-content -->
    35 </section><!-- #primary .content-area -->
    36 
    37 <?php get_sidebar( 'content' ); ?>
    38 
    39 <?php get_sidebar(); ?>
    40 
    41 <?php get_footer(); ?>
     38<?php
     39get_sidebar( 'content' );
     40get_sidebar();
     41get_footer();
Note: See TracChangeset for help on using the changeset viewer.