~canonical-sysadmins/wordpress/4.5.2

« back to all changes in this revision

Viewing changes to wp-content/themes/twentyfourteen/content-none.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 a "No posts found" message
 
4
 *
 
5
 * @package WordPress
 
6
 * @subpackage Twenty_Fourteen
 
7
 * @since Twenty Fourteen 1.0
 
8
 */
 
9
?>
 
10
 
 
11
<header class="page-header">
 
12
        <h1 class="page-title"><?php _e( 'Nothing Found', 'twentyfourteen' ); ?></h1>
 
13
</header>
 
14
 
 
15
<div class="page-content">
 
16
        <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
 
17
 
 
18
        <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyfourteen' ), admin_url( 'post-new.php' ) ); ?></p>
 
19
 
 
20
        <?php elseif ( is_search() ) : ?>
 
21
 
 
22
        <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfourteen' ); ?></p>
 
23
        <?php get_search_form(); ?>
 
24
 
 
25
        <?php else : ?>
 
26
 
 
27
        <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentyfourteen' ); ?></p>
 
28
        <?php get_search_form(); ?>
 
29
 
 
30
        <?php endif; ?>
 
31
</div><!-- .page-content -->