From 5267fef339bf5426490e0747376a1dff1a68ac0a Mon Sep 17 00:00:00 2001 From: nacin Date: Mon, 6 Feb 2012 22:37:45 +0000 Subject: [PATCH] Synchronize archive.php docs with Twenty Eleven. Go easy on the PHP/HTML context switching. see #19978. git-svn-id: http://svn.automattic.com/wordpress/trunk@19843 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentytwelve/archive.php | 59 +++++++++++++--------- 1 file changed, 34 insertions(+), 25 deletions(-) diff --git a/wp-content/themes/twentytwelve/archive.php b/wp-content/themes/twentytwelve/archive.php index 27360df17..a5548672a 100644 --- a/wp-content/themes/twentytwelve/archive.php +++ b/wp-content/themes/twentytwelve/archive.php @@ -2,6 +2,11 @@ /** * The template for displaying Archive pages. * + * Used to display archive-type pages if nothing more specific matches a query. + * For example, puts together date-based pages if no date.php file exists. + * + * Learn more: http://codex.wordpress.org/Template_Hierarchy + * * @package WordPress * @subpackage Twenty_Twelve * @since Twenty Twelve 1.0 @@ -15,43 +20,47 @@ get_header(); ?> - + - - - + /* Include the post format-specific template for the content. If you want to + * this in a child theme then include a file called called content-___.php + * (where ___ is the post format) and that will be used instead. + */ + get_template_part( 'content', get_post_format() ); - + endwhile; + + twentytwelve_content_nav( 'nav-below' ); + ?>