Ticket #24877: 24877.patch
| File 24877.patch, 29.2 KB (added by , 12 years ago) |
|---|
-
wp-content/themes/twentyfourteen/content-single.php
1 <?php2 /**3 * @package WordPress4 * @subpackage Twenty_Fourteen5 */6 $format = get_post_format();7 if ( false === $format )8 $format = 'standard';9 ?>10 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>12 <?php if ( ( 'video' != $format ) && ( 'image' != $format ) && ( 'aside' != $format ) && ( 'link' != $format ) && ( 'quote' != $format ) ) : ?>13 <div class="attachment-featured-thumbnail">14 <?php15 if ( '' != get_the_post_thumbnail() )16 the_post_thumbnail( 'featured-thumbnail-large' );17 ?>18 </div>19 <?php endif; ?>20 21 <header class="entry-header">22 <div class="entry-meta">23 <?php24 /* translators: used between list items, there is a space after the comma */25 $categories_list = get_the_category_list( __( ', ', 'twentyfourteen' ) );26 if ( $categories_list && twentyfourteen_categorized_blog() ) :27 ?>28 <span class="cat-links">29 <?php echo $categories_list; ?>30 </span>31 <?php endif; // End if categories ?>32 </div><!-- .entry-meta -->33 34 <?php if ( ( 'standard' == $format ) || ( 'video' == $format ) || ( 'image' == $format ) || ( 'gallery' == $format ) ) : ?>35 <h1 class="entry-title"><?php the_title(); ?></h1>36 <?php endif; ?>37 38 <div class="entry-meta">39 <?php if ( 'standard' != $format ) : ?>40 <span class="post-format">41 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( get_post_format() ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( get_post_format() ) ) ); ?>"><?php echo get_post_format_string( get_post_format() ); ?></a>42 </span>43 <?php endif; ?>44 45 <?php twentyfourteen_posted_on(); ?>46 47 <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>48 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span>49 <?php endif; ?>50 51 <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?>52 </div><!-- .entry-meta -->53 </header><!-- .entry-header -->54 55 <div class="entry-content clearfix">56 <?php the_content(); ?>57 <?php58 wp_link_pages( array(59 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',60 'after' => '</div>',61 'link_before' => '<span>',62 'link_after' => '</span>'63 ) );64 ?>65 </div><!-- .entry-content -->66 67 <footer class="entry-meta">68 <?php if ( ( 'quote' == $format ) || ( 'aside' == $format ) ) : ?>69 <div class="entry-meta">70 <?php the_title( '<h1 class="entry-title"><a href="' . get_permalink() . '" rel="bookmark">', '</a></h1>' ); ?>71 </div><!-- .entry-meta -->72 <?php endif; ?>73 74 <?php75 $tag_list = get_the_tag_list();76 if ( '' != $tag_list ) :77 ?>78 <span class="tag-links">79 <?php echo $tag_list; ?>80 </span>81 <?php endif; // End if $tag_list ?>82 </footer><!-- .entry-meta -->83 </article><!-- #post-<?php the_ID(); ?> --> -
wp-content/themes/twentyfourteen/content-aside.php
1 <?php 2 /** 3 * The template for displaying posts in the Aside post format. 4 * 5 * @package WordPress 6 * @subpackage Twenty_Fourteen 7 */ 8 ?> 9 10 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 11 <header class="entry-header"> 12 <div class="entry-meta"> 13 <?php twentyfourteen_categories(); ?> 14 <?php twentyfourteen_post_format(); ?> 15 <?php twentyfourteen_posted_on(); ?> 16 17 <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?> 18 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span> 19 <?php endif; ?> 20 21 <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?> 22 </div><!-- .entry-meta --> 23 </header><!-- .entry-header --> 24 25 <div class="entry-content clearfix"> 26 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyfourteen' ) ); ?> 27 <?php 28 wp_link_pages( array( 29 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 30 'after' => '</div>', 31 'link_before' => '<span>', 32 'link_after' => '</span>' 33 ) ); 34 ?> 35 </div><!-- .entry-content --> 36 37 <footer class="entry-meta"> 38 <?php if ( is_single() ) : ?> 39 <h1 class="entry-title"><?php the_title(); ?></h1> 40 <?php else : ?> 41 <h1 class="entry-title"> 42 <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> 43 </h1> 44 <?php endif; // is_single() ?> 45 46 <?php twentyfourteen_tags(); ?> 47 </footer><!-- .entry-meta --> 48 49 </article><!-- #post-<?php the_ID(); ?> --> 50 No newline at end of file -
wp-content/themes/twentyfourteen/style.css
500 500 } 501 501 502 502 /* Clearing floats */ 503 .hentry:after, 504 .entry-content:after, 503 505 .clearfix:after { 504 506 clear: both; 505 507 } 508 .hentry:before, 509 .hentry:after, 510 .entry-content:before, 511 .entry-content:after, 506 512 .clearfix:before, 507 513 .clearfix:after { 508 514 display: table; … … 1009 1015 font-weight: 900; 1010 1016 text-transform: uppercase; 1011 1017 } 1018 .format-aside .cat-links, 1019 .format-link .cat-links, 1020 .format-quote .cat-links { 1021 display: block; 1022 margin-bottom: 8px; 1023 margin-bottom: 0.8rem; 1024 } 1012 1025 .cat-links a { 1013 1026 color: #2b2b2b; 1014 1027 } … … 1116 1129 font-size: 1.2rem; 1117 1130 font-weight: 400; 1118 1131 line-height: 1.3333333333; 1119 margin-bottom: 8px;1120 margin-bottom: 0.8rem;1132 margin-bottom: 24px; 1133 margin-bottom: 2.4rem; 1121 1134 text-transform: none; 1122 1135 } 1123 1136 #primary footer.entry-meta .entry-title a { … … 1133 1146 #primary .format-video { 1134 1147 border-top: 1px solid rgba(0, 0, 0, 0.1); 1135 1148 } 1136 #primary .format-aside .entry-header .entry-title,1137 #primary .format-quote .entry-header .entry-title,1138 #primary .format-link .entry-header .entry-title {1139 display: none;1140 }1141 1149 #primary .format-aside .entry-content, 1142 1150 #primary .format-aside .entry-summary, 1143 1151 #primary .format-quote .entry-content, -
wp-content/themes/twentyfourteen/search.php
19 19 20 20 <?php while ( have_posts() ) : the_post(); ?> 21 21 22 <?php twentyfourteen_get_template_part(); ?>22 <?php get_template_part( 'content', get_post_format() ); ?> 23 23 24 24 <?php endwhile; ?> 25 25 -
wp-content/themes/twentyfourteen/content-link.php
1 <?php 2 /** 3 * The template for displaying posts in the Link post format. 4 * 5 * @package WordPress 6 * @subpackage Twenty_Fourteen 7 */ 8 ?> 9 10 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 11 <header class="entry-header"> 12 <div class="entry-meta"> 13 <?php twentyfourteen_categories(); ?> 14 <?php twentyfourteen_post_format(); ?> 15 <?php twentyfourteen_posted_on(); ?> 16 17 <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?> 18 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span> 19 <?php endif; ?> 20 21 <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?> 22 </div><!-- .entry-meta --> 23 </header><!-- .entry-header --> 24 25 <div class="entry-content"> 26 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyfourteen' ) ); ?> 27 <?php 28 wp_link_pages( array( 29 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 30 'after' => '</div>', 31 'link_before' => '<span>', 32 'link_after' => '</span>' 33 ) ); 34 ?> 35 </div><!-- .entry-content --> 36 37 <footer class="entry-meta"> 38 <?php twentyfourteen_tags(); ?> 39 </footer><!-- .entry-meta --> 40 41 </article><!-- #post-<?php the_ID(); ?> --> 42 No newline at end of file -
wp-content/themes/twentyfourteen/content.php
1 1 <?php 2 2 /** 3 * The default template for displaying content 4 * 3 5 * @package WordPress 4 6 * @subpackage Twenty_Fourteen 5 7 */ 6 $format = get_post_format();7 8 ?> 8 9 9 <article id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix' ); ?>> 10 <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyfourteen' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="attachment-featured-thumbnail"> 11 <?php 12 if ( '' != get_the_post_thumbnail() ) 13 the_post_thumbnail( 'featured-thumbnail-large' ); 14 ?> 15 </a> 10 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 11 <?php 12 printf( '<a href="%1$s" title="%2$s" rel="%3$s" class="attachment-featured-thumbnail">%4$s</a>', 13 get_permalink(), 14 esc_attr( sprintf( __( 'Permalink to %s', 'twentyfourteen' ), the_title_attribute( 'echo=0' ) ) ), 15 get_the_ID(), 16 the_post_thumbnail( 'featured-thumbnail-large' ) 17 ); 18 ?> 16 19 17 20 <header class="entry-header"> 18 <?php19 /* translators: used between list items, there is a space after the comma */20 $categories_list = get_the_category_list( __( ', ', 'twentyfourteen' ) );21 if ( $categories_list && twentyfourteen_categorized_blog() && 'post' == get_post_type() ) :22 ?>23 21 <div class="entry-meta"> 24 < span class="cat-links"><?php echo $categories_list; ?></span>22 <?php twentyfourteen_categories(); ?> 25 23 </div> 26 <?php endif; ?>27 24 28 <h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1> 25 <?php if ( is_single() ) : ?> 26 <h1 class="entry-title"><?php the_title(); ?></h1> 27 <?php else : ?> 28 <h1 class="entry-title"> 29 <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> 30 </h1> 31 <?php endif; // is_single() ?> 29 32 30 33 <div class="entry-meta"> 31 <?php if ( 'gallery' == $format ) : ?> 32 <span class="post-format"> 33 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( get_post_format() ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( get_post_format() ) ) ); ?>"><?php echo get_post_format_string( get_post_format() ); ?></a> 34 </span> 35 <?php endif; ?> 34 <?php twentyfourteen_posted_on(); ?> 36 35 37 <?php38 if ( 'post' == get_post_type() )39 twentyfourteen_posted_on();40 ?>41 42 36 <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?> 43 37 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span> 44 38 <?php endif; ?> … … 48 42 </header><!-- .entry-header --> 49 43 50 44 <?php if ( is_search() ) : ?> 51 <div class="entry-summary clearfix">45 <div class="entry-summary"> 52 46 <?php the_excerpt(); ?> 53 47 </div><!-- .entry-summary --> 54 48 <?php else : ?> 55 <div class="entry-content clearfix">49 <div class="entry-content"> 56 50 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyfourteen' ) ); ?> 57 51 <?php 58 52 wp_link_pages( array( … … 65 59 </div><!-- .entry-content --> 66 60 <?php endif; ?> 67 61 68 <?php 69 $tag_list = get_the_tag_list(); 70 if ( '' != $tag_list && 'post' == get_post_type() ) : 71 ?> 72 <footer class="entry-meta"> 73 <span class="tag-links"><?php echo $tag_list; ?></span> 74 </footer><!-- .entry-meta --> 75 <?php endif; // End if $tag_list ?> 62 <footer class="entry-meta"> 63 <?php twentyfourteen_tags(); ?> 64 </footer><!-- .entry-meta --> 76 65 </article><!-- #post-<?php the_ID(); ?> --> 66 No newline at end of file -
wp-content/themes/twentyfourteen/archive.php
69 69 70 70 <?php while ( have_posts() ) : the_post(); ?> 71 71 72 <?php twentyfourteen_get_template_part(); ?>72 <?php get_template_part( 'content', get_post_format() ); ?> 73 73 74 74 <?php endwhile; ?> 75 75 … … 88 88 89 89 <?php get_sidebar(); ?> 90 90 91 <?php get_footer(); ?> 92 No newline at end of file 91 <?php get_footer(); ?> -
wp-content/themes/twentyfourteen/single.php
13 13 14 14 <?php while ( have_posts() ) : the_post(); ?> 15 15 16 <?php get_template_part( 'content', 'single'); ?>16 <?php get_template_part( 'content', get_post_format() ); ?> 17 17 18 18 <?php twentyfourteen_content_nav( 'nav-below' ); ?> 19 19 -
wp-content/themes/twentyfourteen/content-post-format.php
1 <?php2 /**3 * @package WordPress4 * @subpackage Twenty_Fourteen5 */6 $format = get_post_format();7 ?>8 9 <article id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix' ); ?>>10 <?php11 if ( 'gallery' == $format ) :12 $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC' ) );13 if ( $images ) :14 $image = array_shift( $images ); ?>15 <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyfourteen' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="attachment-featured-thumbnail">16 <?php echo wp_get_attachment_image( $image->ID, 'featured-thumbnail-large' ); ?>17 </a><?php18 endif;19 endif;20 ?>21 22 <header class="entry-header">23 <?php24 /* translators: used between list items, there is a space after the comma */25 $categories_list = get_the_category_list( __( ', ', 'twentyfourteen' ) );26 if ( $categories_list && twentyfourteen_categorized_blog() && 'post' == get_post_type() ) :27 ?>28 <div class="entry-meta">29 <span class="cat-links"><?php echo $categories_list; ?></span>30 </div>31 <?php endif; ?>32 33 <?php34 /* Show title only if it exsits */35 the_title( '<h1 class="entry-title"><a href="' . get_permalink() . '" rel="bookmark">', '</a></h1>' );36 ?>37 38 <div class="entry-meta">39 <span class="post-format">40 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( get_post_format() ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( get_post_format() ) ) ); ?>"><?php echo get_post_format_string( get_post_format() ); ?></a>41 </span>42 43 <?php44 if ( 'post' == get_post_type() )45 twentyfourteen_posted_on();46 ?>47 48 <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>49 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span>50 <?php endif; ?>51 52 <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?>53 </div><!-- .entry-meta -->54 </header><!-- .entry-header -->55 56 <div class="entry-content clearfix">57 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyfourteen' ) ); ?>58 <?php59 wp_link_pages( array(60 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',61 'after' => '</div>',62 'link_before' => '<span>',63 'link_after' => '</span>'64 ) );65 ?>66 </div><!-- .entry-content -->67 68 <footer class="entry-meta">69 <?php if ( ( 'quote' == $format ) || ( 'aside' == $format ) ) : ?>70 <div class="entry-meta">71 <?php the_title( '<h1 class="entry-title"><a href="' . get_permalink() . '" rel="bookmark">', '</a></h1>' ); ?>72 </div>73 <?php endif; ?>74 75 <?php76 $tag_list = get_the_tag_list();77 if ( '' != $tag_list && 'post' == get_post_type() ) :78 ?>79 <span class="tag-links"><?php echo $tag_list; ?></span>80 <?php endif; // End if $tag_list ?>81 </footer><!-- .entry-meta -->82 83 </article><!-- #post-<?php the_ID(); ?> -->84 No newline at end of file -
wp-content/themes/twentyfourteen/content-image.php
1 <?php 2 /** 3 * The template for displaying posts in the Image post format. 4 * 5 * @package WordPress 6 * @subpackage Twenty_Fourteen 7 */ 8 ?> 9 10 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 11 <header class="entry-header"> 12 <div class="entry-meta"> 13 <?php twentyfourteen_categories(); ?> 14 </div><!-- .entry-meta --> 15 16 <?php if ( is_single() ) : ?> 17 <h1 class="entry-title"><?php the_title(); ?></h1> 18 <?php else : ?> 19 <h1 class="entry-title"> 20 <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> 21 </h1> 22 <?php endif; // is_single() ?> 23 24 <div class="entry-meta"> 25 <?php twentyfourteen_post_format(); ?> 26 <?php twentyfourteen_posted_on(); ?> 27 28 <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?> 29 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span> 30 <?php endif; ?> 31 32 <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?> 33 </div><!-- .entry-meta --> 34 </header><!-- .entry-header --> 35 36 <div class="entry-content"> 37 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyfourteen' ) ); ?> 38 <?php 39 wp_link_pages( array( 40 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 41 'after' => '</div>', 42 'link_before' => '<span>', 43 'link_after' => '</span>' 44 ) ); 45 ?> 46 </div><!-- .entry-content --> 47 48 <footer class="entry-meta"> 49 <?php twentyfourteen_tags(); ?> 50 </footer><!-- .entry-meta --> 51 </article><!-- #post-<?php the_ID(); ?> --> 52 No newline at end of file -
wp-content/themes/twentyfourteen/content-quote.php
1 <?php 2 /** 3 * The template for displaying posts in the Quote post format. 4 * 5 * @package WordPress 6 * @subpackage Twenty_Fourteen 7 */ 8 $format = get_post_format(); 9 ?> 10 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 13 <header class="entry-header"> 14 <div class="entry-meta"> 15 <?php twentyfourteen_categories(); ?> 16 <?php twentyfourteen_post_format(); ?> 17 <?php twentyfourteen_posted_on(); ?> 18 19 <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?> 20 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span> 21 <?php endif; ?> 22 23 <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?> 24 </div><!-- .entry-meta --> 25 </header><!-- .entry-header --> 26 27 <div class="entry-content clearfix"> 28 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyfourteen' ) ); ?> 29 <?php 30 wp_link_pages( array( 31 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 32 'after' => '</div>', 33 'link_before' => '<span>', 34 'link_after' => '</span>' 35 ) ); 36 ?> 37 </div><!-- .entry-content --> 38 39 <footer class="entry-meta"> 40 <?php if ( is_single() ) : ?> 41 <h1 class="entry-title"><?php the_title(); ?></h1> 42 <?php else : ?> 43 <h1 class="entry-title"> 44 <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> 45 </h1> 46 <?php endif; // is_single() ?> 47 48 <?php twentyfourteen_tags(); ?> 49 </footer><!-- .entry-meta --> 50 51 </article><!-- #post-<?php the_ID(); ?> --> 52 No newline at end of file -
wp-content/themes/twentyfourteen/index.php
27 27 28 28 <div id="primary" class="content-area no-sidebar"> 29 29 <div id="content" class="site-content" role="main"> 30 <?php 31 if ( have_posts() ) : 32 while ( have_posts() ) : 33 the_post(); 34 twentyfourteen_get_template_part(); 35 endwhile; 30 <?php if ( have_posts() ) : ?> 36 31 37 twentyfourteen_content_nav( 'nav-below' ); 38 else : 39 get_template_part( 'no-results', 'index' ); 40 endif; 41 ?> 32 <?php /* The loop */ ?> 33 <?php while ( have_posts() ) : the_post(); ?> 34 <?php get_template_part( 'content', get_post_format() ); ?> 35 <?php endwhile; ?> 36 37 <?php twentyfourteen_content_nav( 'nav-below' ); ?> 38 39 <?php else : ?> 40 <?php get_template_part( 'content', 'none' ); ?> 41 <?php endif; ?> 42 42 </div><!-- #content .site-content --> 43 43 </div><!-- #primary .content-area --> 44 44 … … 81 81 82 82 <?php endif; // is_front_page() check ?> 83 83 84 <?php get_footer(); ?> 84 <?php get_footer(); ?> 85 No newline at end of file -
wp-content/themes/twentyfourteen/content-gallery.php
1 <?php 2 /** 3 * The template for displaying posts in the Gallery post format. 4 * 5 * @package WordPress 6 * @subpackage Twenty_Fourteen 7 */ 8 ?> 9 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 10 11 <?php 12 if ( is_single() && '' != get_the_post_thumbnail() ) { 13 the_post_thumbnail( 'featured-thumbnail-large' ); 14 } else { 15 $images = get_children( array( 16 'post_parent' => $post->ID, 17 'post_type' => 'attachment', 18 'post_mime_type' => 'image', 19 'orderby' => 'menu_order', 20 'order' => 'ASC' 21 ) ); 22 if ( $images ) { 23 $image = array_shift( $images ); 24 printf( '<a href="%1$s" title="%2$s" rel="%3$s" class="attachment-featured-thumbnail">%4$s</a>', 25 get_permalink(), 26 esc_attr( sprintf( __( 'Permalink to %s', 'twentyfourteen' ), the_title_attribute( 'echo=0' ) ) ), 27 get_the_ID(), 28 wp_get_attachment_image( $image->ID, 'featured-thumbnail-large' ) 29 ); 30 } 31 } 32 33 ?> 34 35 <header class="entry-header"> 36 <div class="entry-meta"> 37 <?php twentyfourteen_categories(); ?> 38 </div><!-- .entry-meta --> 39 40 <?php if ( is_single() ) : ?> 41 <h1 class="entry-title"><?php the_title(); ?></h1> 42 <?php else : ?> 43 <h1 class="entry-title"> 44 <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> 45 </h1> 46 <?php endif; // is_single() ?> 47 48 <div class="entry-meta"> 49 <?php twentyfourteen_post_format(); ?> 50 <?php twentyfourteen_posted_on(); ?> 51 52 <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?> 53 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span> 54 <?php endif; ?> 55 56 <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?> 57 </div><!-- .entry-meta --> 58 </header><!-- .entry-header --> 59 60 <div class="entry-content"> 61 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyfourteen' ) ); ?> 62 <?php 63 wp_link_pages( array( 64 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 65 'after' => '</div>', 66 'link_before' => '<span>', 67 'link_after' => '</span>' 68 ) ); 69 ?> 70 </div><!-- .entry-content --> 71 72 <footer class="entry-meta"> 73 <?php twentyfourteen_tags(); ?> 74 </footer><!-- .entry-meta --> 75 76 </article><!-- #post-<?php the_ID(); ?> --> 77 No newline at end of file -
wp-content/themes/twentyfourteen/content-video.php
1 <?php 2 /** 3 * The template for displaying posts in the Video post format. 4 * 5 * @package WordPress 6 * @subpackage Twenty_Fourteen 7 */ 8 ?> 9 10 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 11 <header class="entry-header"> 12 <div class="entry-meta"> 13 <?php twentyfourteen_categories(); ?> 14 </div><!-- .entry-meta --> 15 16 <?php if ( is_single() ) : ?> 17 <h1 class="entry-title"><?php the_title(); ?></h1> 18 <?php else : ?> 19 <h1 class="entry-title"> 20 <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> 21 </h1> 22 <?php endif; // is_single() ?> 23 24 <div class="entry-meta"> 25 <?php twentyfourteen_post_format(); ?> 26 <?php twentyfourteen_posted_on(); ?> 27 28 <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?> 29 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span> 30 <?php endif; ?> 31 32 <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?> 33 </div><!-- .entry-meta --> 34 </header><!-- .entry-header --> 35 36 <div class="entry-content"> 37 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyfourteen' ) ); ?> 38 <?php 39 wp_link_pages( array( 40 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 41 'after' => '</div>', 42 'link_before' => '<span>', 43 'link_after' => '</span>' 44 ) ); 45 ?> 46 </div><!-- .entry-content --> 47 48 <footer class="entry-meta"> 49 <?php twentyfourteen_tags(); ?> 50 </footer><!-- .entry-meta --> 51 52 </article><!-- #post-<?php the_ID(); ?> --> 53 No newline at end of file -
wp-content/themes/twentyfourteen/inc/template-tags.php
147 147 } 148 148 endif; 149 149 150 if ( ! function_exists( 'twentyfourteen_categories' ) ) : 150 151 /** 152 * Prints HTML with the categories of the current post 153 * 154 */ 155 function twentyfourteen_categories() { 156 /* translators: used between list items, there is a space after the comma */ 157 $categories_list = get_the_category_list( __( ', ', 'twentyfourteen' ) ); 158 159 if ( $categories_list && twentyfourteen_categorized_blog() ) { 160 echo '<span class="cat-links">' . $categories_list . '</span>'; 161 } 162 } 163 endif; 164 165 if ( ! function_exists( 'twentyfourteen_tags' ) ) : 166 /** 167 * Prints HTML with the tags of the current post 168 * 169 */ 170 function twentyfourteen_tags() { 171 $tag_list = get_the_tag_list(); 172 173 if ( $tag_list ) { 174 echo '<span class="tag-links">' . $tag_list . '</span>'; 175 } 176 } 177 endif; 178 179 if ( ! function_exists( 'twentyfourteen_post_format' ) ) : 180 /** 181 * Prints HTML with the format of the current post 182 * 183 */ 184 function twentyfourteen_post_format() { 185 $post_format = get_post_format(); 186 printf( '<span class="post-format"><a class="entry-format" href="%1$s" title="%2$s">%3$s</a></span>', 187 esc_url( get_post_format_link( $post_format ) ), 188 esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( $post_format ) ) ), 189 get_post_format_string ( $post_format ) 190 ); 191 } 192 endif; 193 194 /** 151 195 * Returns true if a blog has more than 1 category 152 196 * 153 197 */