The Twenty Twelve for WordPress.
props drewstrojny, lancewillett.
also props corvannoorloos, jeffsebring, kobenland, iandstewart, mfields,
mtdesign, op12no2, philiparthurmoore, sixhours, mamaduka.
see #19978.
git-svn-id: http://core.svn.wordpress.org/trunk@21261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-12 06:20:46 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2013-09-20 21:24:09 +02:00
|
|
|
* The main template file
|
The Twenty Twelve for WordPress.
props drewstrojny, lancewillett.
also props corvannoorloos, jeffsebring, kobenland, iandstewart, mfields,
mtdesign, op12no2, philiparthurmoore, sixhours, mamaduka.
see #19978.
git-svn-id: http://core.svn.wordpress.org/trunk@21261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-12 06:20:46 +02:00
|
|
|
*
|
|
|
|
* This is the most generic template file in a WordPress theme
|
|
|
|
* and one of the two required files for a theme (the other being style.css).
|
|
|
|
* It is used to display a page when nothing more specific matches a query.
|
2012-09-27 09:01:16 +02:00
|
|
|
* For example, it puts together the home page when no home.php file exists.
|
|
|
|
*
|
2013-09-20 21:24:09 +02:00
|
|
|
* @link http://codex.wordpress.org/Template_Hierarchy
|
The Twenty Twelve for WordPress.
props drewstrojny, lancewillett.
also props corvannoorloos, jeffsebring, kobenland, iandstewart, mfields,
mtdesign, op12no2, philiparthurmoore, sixhours, mamaduka.
see #19978.
git-svn-id: http://core.svn.wordpress.org/trunk@21261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-12 06:20:46 +02:00
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Twenty_Twelve
|
|
|
|
* @since Twenty Twelve 1.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
get_header(); ?>
|
|
|
|
|
2012-08-02 21:12:11 +02:00
|
|
|
<div id="primary" class="site-content">
|
The Twenty Twelve for WordPress.
props drewstrojny, lancewillett.
also props corvannoorloos, jeffsebring, kobenland, iandstewart, mfields,
mtdesign, op12no2, philiparthurmoore, sixhours, mamaduka.
see #19978.
git-svn-id: http://core.svn.wordpress.org/trunk@21261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-12 06:20:46 +02:00
|
|
|
<div id="content" role="main">
|
|
|
|
<?php if ( have_posts() ) : ?>
|
|
|
|
|
|
|
|
<?php /* Start the Loop */ ?>
|
|
|
|
<?php while ( have_posts() ) : the_post(); ?>
|
|
|
|
<?php get_template_part( 'content', get_post_format() ); ?>
|
|
|
|
<?php endwhile; ?>
|
|
|
|
|
|
|
|
<?php twentytwelve_content_nav( 'nav-below' ); ?>
|
|
|
|
|
|
|
|
<?php else : ?>
|
|
|
|
|
|
|
|
<article id="post-0" class="post no-results not-found">
|
|
|
|
|
|
|
|
<?php if ( current_user_can( 'edit_posts' ) ) :
|
|
|
|
// Show a different message to a logged-in user who can add posts.
|
|
|
|
?>
|
|
|
|
<header class="entry-header">
|
|
|
|
<h1 class="entry-title"><?php _e( 'No posts to display', 'twentytwelve' ); ?></h1>
|
2012-08-25 19:16:56 +02:00
|
|
|
</header>
|
The Twenty Twelve for WordPress.
props drewstrojny, lancewillett.
also props corvannoorloos, jeffsebring, kobenland, iandstewart, mfields,
mtdesign, op12no2, philiparthurmoore, sixhours, mamaduka.
see #19978.
git-svn-id: http://core.svn.wordpress.org/trunk@21261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-12 06:20:46 +02:00
|
|
|
|
|
|
|
<div class="entry-content">
|
|
|
|
<p><?php printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentytwelve' ), admin_url( 'post-new.php' ) ); ?></p>
|
|
|
|
</div><!-- .entry-content -->
|
|
|
|
|
|
|
|
<?php else :
|
|
|
|
// Show the default message to everyone else.
|
|
|
|
?>
|
|
|
|
<header class="entry-header">
|
2012-09-05 17:04:34 +02:00
|
|
|
<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h1>
|
2012-08-25 19:16:56 +02:00
|
|
|
</header>
|
The Twenty Twelve for WordPress.
props drewstrojny, lancewillett.
also props corvannoorloos, jeffsebring, kobenland, iandstewart, mfields,
mtdesign, op12no2, philiparthurmoore, sixhours, mamaduka.
see #19978.
git-svn-id: http://core.svn.wordpress.org/trunk@21261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-12 06:20:46 +02:00
|
|
|
|
|
|
|
<div class="entry-content">
|
2012-09-27 17:43:44 +02:00
|
|
|
<p><?php _e( 'Apologies, but no results were found. Perhaps searching will help find a related post.', 'twentytwelve' ); ?></p>
|
The Twenty Twelve for WordPress.
props drewstrojny, lancewillett.
also props corvannoorloos, jeffsebring, kobenland, iandstewart, mfields,
mtdesign, op12no2, philiparthurmoore, sixhours, mamaduka.
see #19978.
git-svn-id: http://core.svn.wordpress.org/trunk@21261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-12 06:20:46 +02:00
|
|
|
<?php get_search_form(); ?>
|
|
|
|
</div><!-- .entry-content -->
|
|
|
|
<?php endif; // end current_user_can() check ?>
|
|
|
|
|
|
|
|
</article><!-- #post-0 -->
|
|
|
|
|
|
|
|
<?php endif; // end have_posts() check ?>
|
|
|
|
|
|
|
|
</div><!-- #content -->
|
2012-08-25 19:16:56 +02:00
|
|
|
</div><!-- #primary -->
|
The Twenty Twelve for WordPress.
props drewstrojny, lancewillett.
also props corvannoorloos, jeffsebring, kobenland, iandstewart, mfields,
mtdesign, op12no2, philiparthurmoore, sixhours, mamaduka.
see #19978.
git-svn-id: http://core.svn.wordpress.org/trunk@21261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-12 06:20:46 +02:00
|
|
|
|
|
|
|
<?php get_sidebar(); ?>
|
|
|
|
<?php get_footer(); ?>
|