forked from mirror/_s
_s: provide a more helpful message to users with no posts on the home page or none at all; See #1112
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@8917 d957f892-c61d-0410-b221-f235e6eecf30
This commit is contained in:
parent
93fa346360
commit
e932aaadc4
|
@ -79,11 +79,6 @@ function _s_setup() {
|
||||||
endif; // _s_setup
|
endif; // _s_setup
|
||||||
add_action( 'after_setup_theme', '_s_setup' );
|
add_action( 'after_setup_theme', '_s_setup' );
|
||||||
|
|
||||||
/**
|
|
||||||
* Implement the Custom Header feature
|
|
||||||
*/
|
|
||||||
//require( get_template_directory() . '/inc/custom-header.php' );
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register widgetized area and update sidebar with default widgets
|
* Register widgetized area and update sidebar with default widgets
|
||||||
*
|
*
|
||||||
|
@ -109,3 +104,8 @@ function _s_scripts() {
|
||||||
wp_enqueue_script( 'small-menu', get_template_directory_uri() . '/js/small-menu.js', 'jquery', '20120206', true );
|
wp_enqueue_script( 'small-menu', get_template_directory_uri() . '/js/small-menu.js', 'jquery', '20120206', true );
|
||||||
}
|
}
|
||||||
add_action( 'wp_enqueue_scripts', '_s_scripts' );
|
add_action( 'wp_enqueue_scripts', '_s_scripts' );
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Implement the Custom Header feature
|
||||||
|
*/
|
||||||
|
//require( get_template_directory() . '/inc/custom-header.php' );
|
||||||
|
|
|
@ -36,16 +36,15 @@ get_header(); ?>
|
||||||
|
|
||||||
<?php _s_content_nav( 'nav-below' ); ?>
|
<?php _s_content_nav( 'nav-below' ); ?>
|
||||||
|
|
||||||
<?php else : ?>
|
<?php elseif ( current_user_can( 'edit_posts' ) ) : ?>
|
||||||
|
|
||||||
<article id="post-0" class="post no-results not-found">
|
<article id="post-0" class="post no-results not-found">
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
<h1 class="entry-title"><?php _e( 'Nothing Found', '_s' ); ?></h1>
|
<h1 class="entry-title"><?php _e( 'No posts to display', '_s' ); ?></h1>
|
||||||
</header><!-- .entry-header -->
|
</header><!-- .entry-header -->
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', '_s' ); ?></p>
|
<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', '_s' ), admin_url( 'post-new.php' ) ); ?></p>
|
||||||
<?php get_search_form(); ?>
|
|
||||||
</div><!-- .entry-content -->
|
</div><!-- .entry-content -->
|
||||||
</article><!-- #post-0 -->
|
</article><!-- #post-0 -->
|
||||||
|
|
||||||
|
|
Reference in New Issue