From a872d95778e3a4cd542d8595662ff588201fd768 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Thu, 15 Aug 2013 03:13:44 +0000 Subject: [PATCH] Twenty Fourteen: second pass at matching code standards achieved with Twenty Thirteen development. See #24858, props obenland. Built from https://develop.svn.wordpress.org/trunk@25023 git-svn-id: http://core.svn.wordpress.org/trunk@25014 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyfourteen/archive.php | 2 +- wp-content/themes/twentyfourteen/comments.php | 2 +- .../twentyfourteen/content-post-format.php | 28 +- .../themes/twentyfourteen/content-single.php | 3 +- .../twentyfourteen/featured-content.php | 11 + .../themes/twentyfourteen/front-page.php | 3 +- .../themes/twentyfourteen/functions.php | 157 +++++---- wp-content/themes/twentyfourteen/image.php | 2 +- .../twentyfourteen/inc/template-tags.php | 119 ++++--- wp-content/themes/twentyfourteen/index.php | 2 +- wp-content/themes/twentyfourteen/page.php | 4 +- wp-content/themes/twentyfourteen/rtl.css | 89 +++-- wp-content/themes/twentyfourteen/search.php | 3 +- .../themes/twentyfourteen/sidebar-content.php | 2 +- wp-content/themes/twentyfourteen/sidebar.php | 6 +- wp-content/themes/twentyfourteen/single.php | 2 +- wp-content/themes/twentyfourteen/style.css | 320 ++---------------- 17 files changed, 264 insertions(+), 491 deletions(-) diff --git a/wp-content/themes/twentyfourteen/archive.php b/wp-content/themes/twentyfourteen/archive.php index 60f87113aa..4caf0b842f 100644 --- a/wp-content/themes/twentyfourteen/archive.php +++ b/wp-content/themes/twentyfourteen/archive.php @@ -49,7 +49,7 @@ get_header(); ?> twentyfourteen_get_template_part(); endwhile; - twentyfourteen_content_nav( 'nav-below' ); + twentyfourteen_paging_nav(); else : get_template_part( 'no-results', 'archive' ); diff --git a/wp-content/themes/twentyfourteen/comments.php b/wp-content/themes/twentyfourteen/comments.php index 1de298ace3..7df27bb4d6 100644 --- a/wp-content/themes/twentyfourteen/comments.php +++ b/wp-content/themes/twentyfourteen/comments.php @@ -56,7 +56,7 @@ if ( post_password_required() ) -

+

diff --git a/wp-content/themes/twentyfourteen/content-post-format.php b/wp-content/themes/twentyfourteen/content-post-format.php index b25487a215..6ef2a22acd 100644 --- a/wp-content/themes/twentyfourteen/content-post-format.php +++ b/wp-content/themes/twentyfourteen/content-post-format.php @@ -3,37 +3,31 @@ * @package WordPress * @subpackage Twenty_Fourteen */ -$format = get_post_format(); ?> -
> +
> $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC' ) ); + if ( has_post_format( 'gallery' ) ) : + $images = get_children( array( 'post_parent' => get_the_ID(), 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC' ) ); if ( $images ) : - $image = array_shift( $images ); ?> + $image = array_shift( $images ); + ?> ID, 'featured-thumbnail-large' ); ?> - +
- + + + - ', '' ); - ?> + ', '' ); ?>