From 0bfc7b4d9126218cf7458bae9df28e714d47a991 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Tue, 3 Dec 2013 17:05:53 +0000 Subject: [PATCH] Twenty Fourteen: update comment blocks to match inline docs standards. Props DrewAPicture, see #25837. git-svn-id: https://develop.svn.wordpress.org/trunk@26556 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentyfourteen/archive.php | 12 +- .../themes/twentyfourteen/author.php | 12 +- .../themes/twentyfourteen/category.php | 14 +- .../twentyfourteen/content-featured-post.php | 1 + .../themes/twentyfourteen/content-page.php | 1 + .../twentyfourteen/featured-content.php | 11 ++ .../themes/twentyfourteen/functions.php | 39 +++- .../themes/twentyfourteen/image.php | 7 +- .../twentyfourteen/inc/custom-header.php | 26 ++- .../themes/twentyfourteen/inc/customizer.php | 25 +-- .../twentyfourteen/inc/featured-content.php | 186 ++++++++++++------ .../twentyfourteen/inc/template-tags.php | 12 +- .../themes/twentyfourteen/inc/widgets.php | 16 +- .../themes/twentyfourteen/index.php | 26 ++- .../page-templates/contributors.php | 6 +- .../page-templates/full-width.php | 6 +- src/wp-content/themes/twentyfourteen/page.php | 18 +- .../themes/twentyfourteen/search.php | 14 +- .../themes/twentyfourteen/single.php | 10 +- src/wp-content/themes/twentyfourteen/tag.php | 12 +- .../twentyfourteen/taxonomy-post_format.php | 12 +- 21 files changed, 333 insertions(+), 133 deletions(-) diff --git a/src/wp-content/themes/twentyfourteen/archive.php b/src/wp-content/themes/twentyfourteen/archive.php index 158dd3e411..689c80fb25 100644 --- a/src/wp-content/themes/twentyfourteen/archive.php +++ b/src/wp-content/themes/twentyfourteen/archive.php @@ -45,14 +45,22 @@ get_header(); ?> */ rewind_posts(); - while ( have_posts() ) : - the_post(); + // Start the Loop. + while ( have_posts() ) : the_post(); + /* + * Include the post format-specific template for the content. If you want to + * use 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; + // Previous/next page navigation. twentyfourteen_paging_nav(); else : + // If no content, include the "No posts found" template. get_template_part( 'content', 'none' ); endif; diff --git a/src/wp-content/themes/twentyfourteen/category.php b/src/wp-content/themes/twentyfourteen/category.php index e52358a280..cd27134884 100644 --- a/src/wp-content/themes/twentyfourteen/category.php +++ b/src/wp-content/themes/twentyfourteen/category.php @@ -29,14 +29,22 @@ get_header(); ?> " > " >

', '

' ); ?> diff --git a/src/wp-content/themes/twentyfourteen/featured-content.php b/src/wp-content/themes/twentyfourteen/featured-content.php index 28852ffe2c..1a623acfd8 100644 --- a/src/wp-content/themes/twentyfourteen/featured-content.php +++ b/src/wp-content/themes/twentyfourteen/featured-content.php @@ -11,15 +11,26 @@