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/no-results.php

    r24832 r25021  
    11<?php
    22/**
    3  * The template part for displaying a message that posts cannot be found.
    4  *
    5  * Learn more: http://codex.wordpress.org/Template_Hierarchy
     3 * The template for displaying a "No posts found" message.
    64 *
    75 * @package WordPress
     
    108?>
    119
    12 <article id="post-0" class="post no-results not-found">
    13     <header class="entry-header">
    14         <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyfourteen' ); ?></h1>
    15     </header><!-- .entry-header -->
     10<header class="page-header">
     11    <h1 class="page-title"><?php _e( 'Nothing Found', 'twentyfourteen' ); ?></h1>
     12</header>
    1613
    17     <div class="entry-content">
    18         <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
     14<div class="page-content">
     15    <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
    1916
    20             <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyfourteen' ), admin_url( 'post-new.php' ) ); ?></p>
     17    <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyfourteen' ), admin_url( 'post-new.php' ) ); ?></p>
    2118
    22         <?php elseif ( is_search() ) : ?>
     19    <?php elseif ( is_search() ) : ?>
    2320
    24             <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfourteen' ); ?></p>
    25             <?php get_search_form(); ?>
     21    <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfourteen' ); ?></p>
     22    <?php get_search_form(); ?>
    2623
    27         <?php else : ?>
     24    <?php else : ?>
    2825
    29             <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentyfourteen' ); ?></p>
    30             <?php get_search_form(); ?>
     26    <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentyfourteen' ); ?></p>
     27    <?php get_search_form(); ?>
    3128
    32         <?php endif; ?>
    33     </div><!-- .entry-content -->
    34 </article><!-- #post-0 .post .no-results .not-found -->
     29    <?php endif; ?>
     30</div><!-- .page-content -->
Note: See TracChangeset for help on using the changeset viewer.