Commit 02d77d34 authored by lucha's avatar lucha
Browse files

[auto] theme: twentyfourteen 2.3

parent 705b41cf
...@@ -27,8 +27,8 @@ get_header(); ?> ...@@ -27,8 +27,8 @@ get_header(); ?>
<header class="page-header"> <header class="page-header">
<h1 class="page-title"> <h1 class="page-title">
<?php <?php
if ( is_day() ) : if ( is_day() ) :
printf( __( 'Daily Archives: %s', 'twentyfourteen' ), get_the_date() ); printf( __( 'Daily Archives: %s', 'twentyfourteen' ), get_the_date() );
elseif ( is_month() ) : elseif ( is_month() ) :
printf( __( 'Monthly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyfourteen' ) ) ); printf( __( 'Monthly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyfourteen' ) ) );
...@@ -46,15 +46,14 @@ get_header(); ?> ...@@ -46,15 +46,14 @@ get_header(); ?>
<?php <?php
// Start the Loop. // Start the Loop.
while ( have_posts() ) : while ( have_posts() ) : the_post();
the_post();
/* /*
* Include the post format-specific template for the content. If you want to * Include the post format-specific template for the content. If you want to
* use this in a child theme, then include a file called content-___.php * use this in a child theme, then include a file called content-___.php
* (where ___ is the post format) and that will be used instead. * (where ___ is the post format) and that will be used instead.
*/ */
get_template_part( 'content', get_post_format() ); get_template_part( 'content', get_post_format() );
endwhile; endwhile;
// Previous/next page navigation. // Previous/next page navigation.
......
...@@ -45,15 +45,14 @@ get_header(); ?> ...@@ -45,15 +45,14 @@ get_header(); ?>
rewind_posts(); rewind_posts();
// Start the Loop. // Start the Loop.
while ( have_posts() ) : while ( have_posts() ) : the_post();
the_post();
/* /*
* Include the post format-specific template for the content. If you want to * Include the post format-specific template for the content. If you want to
* use this in a child theme, then include a file called content-___.php * use this in a child theme, then include a file called content-___.php
* (where ___ is the post format) and that will be used instead. * (where ___ is the post format) and that will be used instead.
*/ */
get_template_part( 'content', get_post_format() ); get_template_part( 'content', get_post_format() );
endwhile; endwhile;
// Previous/next page navigation. // Previous/next page navigation.
......
...@@ -22,23 +22,22 @@ get_header(); ?> ...@@ -22,23 +22,22 @@ get_header(); ?>
<?php <?php
// Show an optional term description. // Show an optional term description.
$term_description = term_description(); $term_description = term_description();
if ( ! empty( $term_description ) ) : if ( ! empty( $term_description ) ) :
printf( '<div class="taxonomy-description">%s</div>', $term_description ); printf( '<div class="taxonomy-description">%s</div>', $term_description );
endif; endif;
?> ?>
</header><!-- .archive-header --> </header><!-- .archive-header -->
<?php <?php
// Start the Loop. // Start the Loop.
while ( have_posts() ) : while ( have_posts() ) : the_post();
the_post();
/*
/* * Include the post format-specific template for the content. If you want to
* Include the post format-specific template for the content. If you want to * use this in a child theme, then include a file called content-___.php
* use this in a child theme, then include a file called content-___.php * (where ___ is the post format) and that will be used instead.
* (where ___ is the post format) and that will be used instead. */
*/ get_template_part( 'content', get_post_format() );
get_template_part( 'content', get_post_format() );
endwhile; endwhile;
// Previous/next page navigation. // Previous/next page navigation.
......
...@@ -25,23 +25,23 @@ if ( post_password_required() ) { ...@@ -25,23 +25,23 @@ if ( post_password_required() ) {
<h2 class="comments-title"> <h2 class="comments-title">
<?php <?php
$comments_number = get_comments_number(); $comments_number = get_comments_number();
if ( '1' === $comments_number ) { if ( '1' === $comments_number ) {
/* translators: %s: post title */ /* translators: %s: post title */
printf( _x( 'One thought on &ldquo;%s&rdquo;', 'comments title', 'twentyfourteen' ), get_the_title() ); printf( _x( 'One thought on &ldquo;%s&rdquo;', 'comments title', 'twentyfourteen' ), get_the_title() );
} else { } else {
printf( printf(
/* translators: 1: number of comments, 2: post title */ /* translators: 1: number of comments, 2: post title */
_nx( _nx(
'%1$s thought on &ldquo;%2$s&rdquo;', '%1$s thought on &ldquo;%2$s&rdquo;',
'%1$s thoughts on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;',
$comments_number, $comments_number,
'comments title', 'comments title',
'twentyfourteen' 'twentyfourteen'
), ),
number_format_i18n( $comments_number ), number_format_i18n( $comments_number ),
get_the_title() get_the_title()
); );
} }
?> ?>
</h2> </h2>
...@@ -55,13 +55,11 @@ if ( post_password_required() ) { ...@@ -55,13 +55,11 @@ if ( post_password_required() ) {
<ol class="comment-list"> <ol class="comment-list">
<?php <?php
wp_list_comments( wp_list_comments( array(
array( 'style' => 'ol',
'style' => 'ol', 'short_ping' => true,
'short_ping' => true, 'avatar_size' => 34,
'avatar_size' => 34, ) );
)
);
?> ?>
</ol><!-- .comment-list --> </ol><!-- .comment-list -->
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
<?php <?php
endif; endif;
if ( is_single() ) : if ( is_single() ) :
the_title( '<h1 class="entry-title">', '</h1>' ); the_title( '<h1 class="entry-title">', '</h1>' );
else : else :
the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
endif; endif;
...@@ -44,21 +44,17 @@ if ( is_single() ) : ...@@ -44,21 +44,17 @@ if ( is_single() ) :
<div class="entry-content"> <div class="entry-content">
<?php <?php
/* translators: %s: Name of current post */ /* translators: %s: Name of current post */
the_content( the_content( sprintf(
sprintf( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ), the_title( '<span class="screen-reader-text">', '</span>', false )
the_title( '<span class="screen-reader-text">', '</span>', false ) ) );
)
); wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
wp_link_pages( 'after' => '</div>',
array( 'link_before' => '<span>',
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 'link_after' => '</span>',
'after' => '</div>', ) );
'link_before' => '<span>',
'link_after' => '</span>',
)
);
?> ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
<?php <?php
endif; endif;
if ( is_single() ) : if ( is_single() ) :
the_title( '<h1 class="entry-title">', '</h1>' ); the_title( '<h1 class="entry-title">', '</h1>' );
else : else :
the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
endif; endif;
...@@ -44,21 +44,17 @@ if ( is_single() ) : ...@@ -44,21 +44,17 @@ if ( is_single() ) :
<div class="entry-content"> <div class="entry-content">
<?php <?php
/* translators: %s: Name of current post */ /* translators: %s: Name of current post */
the_content( the_content( sprintf(
sprintf( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ), the_title( '<span class="screen-reader-text">', '</span>', false )
the_title( '<span class="screen-reader-text">', '</span>', false ) ) );
)
); wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
wp_link_pages( 'after' => '</div>',
array( 'link_before' => '<span>',
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 'link_after' => '</span>',
'after' => '</div>', ) );
'link_before' => '<span>',
'link_after' => '</span>',
)
);
?> ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
......
...@@ -12,12 +12,12 @@ ...@@ -12,12 +12,12 @@
<a class="post-thumbnail" href="<?php the_permalink(); ?>"> <a class="post-thumbnail" href="<?php the_permalink(); ?>">
<?php <?php
// Output the featured image. // Output the featured image.
if ( has_post_thumbnail() ) : if ( has_post_thumbnail() ) :
if ( 'grid' == get_theme_mod( 'featured_content_layout' ) ) { if ( 'grid' == get_theme_mod( 'featured_content_layout' ) ) {
the_post_thumbnail(); the_post_thumbnail();
} else { } else {
the_post_thumbnail( 'twentyfourteen-full-width' ); the_post_thumbnail( 'twentyfourteen-full-width' );
} }
endif; endif;
?> ?>
</a> </a>
...@@ -29,6 +29,6 @@ ...@@ -29,6 +29,6 @@
</div><!-- .entry-meta --> </div><!-- .entry-meta -->
<?php endif; ?> <?php endif; ?>
<?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); ?> <?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">','</a></h1>' ); ?>
</header><!-- .entry-header --> </header><!-- .entry-header -->
</article><!-- #post-## --> </article><!-- #post-## -->
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
<?php <?php
endif; endif;
if ( is_single() ) : if ( is_single() ) :
the_title( '<h1 class="entry-title">', '</h1>' ); the_title( '<h1 class="entry-title">', '</h1>' );
else : else :
the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
endif; endif;
...@@ -44,21 +44,17 @@ if ( is_single() ) : ...@@ -44,21 +44,17 @@ if ( is_single() ) :
<div class="entry-content"> <div class="entry-content">
<?php <?php
/* translators: %s: Name of current post */ /* translators: %s: Name of current post */
the_content( the_content( sprintf(
sprintf( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ), the_title( '<span class="screen-reader-text">', '</span>', false )
the_title( '<span class="screen-reader-text">', '</span>', false ) ) );
)
); wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
wp_link_pages( 'after' => '</div>',
array( 'link_before' => '<span>',
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 'link_after' => '</span>',
'after' => '</div>', ) );
'link_before' => '<span>',
'link_after' => '</span>',
)
);
?> ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
<?php <?php
endif; endif;
if ( is_single() ) : if ( is_single() ) :
the_title( '<h1 class="entry-title">', '</h1>' ); the_title( '<h1 class="entry-title">', '</h1>' );
else : else :
the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
endif; endif;
...@@ -44,21 +44,17 @@ if ( is_single() ) : ...@@ -44,21 +44,17 @@ if ( is_single() ) :
<div class="entry-content"> <div class="entry-content">
<?php <?php
/* translators: %s: Name of current post */ /* translators: %s: Name of current post */
the_content( the_content( sprintf(
sprintf( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ), the_title( '<span class="screen-reader-text">', '</span>', false )
the_title( '<span class="screen-reader-text">', '</span>', false ) ) );
)
); wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
wp_link_pages( 'after' => '</div>',
array( 'link_before' => '<span>',
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 'link_after' => '</span>',
'after' => '</div>', ) );
'link_before' => '<span>',
'link_after' => '</span>',
)
);
?> ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
<?php <?php
endif; endif;
if ( is_single() ) : if ( is_single() ) :
the_title( '<h1 class="entry-title">', '</h1>' ); the_title( '<h1 class="entry-title">', '</h1>' );
else : else :
the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
endif; endif;
...@@ -44,21 +44,17 @@ if ( is_single() ) : ...@@ -44,21 +44,17 @@ if ( is_single() ) :
<div class="entry-content"> <div class="entry-content">
<?php <?php
/* translators: %s: Name of current post */ /* translators: %s: Name of current post */
the_content( the_content( sprintf(
sprintf( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ), the_title( '<span class="screen-reader-text">', '</span>', false )
the_title( '<span class="screen-reader-text">', '</span>', false ) ) );
)
); wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
wp_link_pages( 'after' => '</div>',
array( 'link_before' => '<span>',
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 'link_after' => '</span>',
'after' => '</div>', ) );
'link_before' => '<span>',
'link_after' => '</span>',
)
);
?> ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
......
...@@ -18,14 +18,12 @@ ...@@ -18,14 +18,12 @@
<div class="entry-content"> <div class="entry-content">
<?php <?php
the_content(); the_content();
wp_link_pages( wp_link_pages( array(
array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 'after' => '</div>',
'after' => '</div>', 'link_before' => '<span>',
'link_before' => '<span>', 'link_after' => '</span>',
'link_after' => '</span>', ) );
)
);
edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' );
?> ?>
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
<?php <?php
endif; endif;
if ( is_single() ) : if ( is_single() ) :
the_title( '<h1 class="entry-title">', '</h1>' ); the_title( '<h1 class="entry-title">', '</h1>' );
else : else :
the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
endif; endif;
...@@ -44,21 +44,17 @@ if ( is_single() ) : ...@@ -44,21 +44,17 @@ if ( is_single() ) :
<div class="entry-content"> <div class="entry-content">
<?php <?php
/* translators: %s: Name of current post */ /* translators: %s: Name of current post */
the_content( the_content( sprintf(
sprintf( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ), the_title( '<span class="screen-reader-text">', '</span>', false )
the_title( '<span class="screen-reader-text">', '</span>', false ) ) );
)
); wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
wp_link_pages( 'after' => '</div>',
array( 'link_before' => '<span>',
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 'link_after' => '</span>',
'after' => '</div>', ) );
'link_before' => '<span>',
'link_after' => '</span>',
)
);
?> ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
<?php <?php
endif; endif;
if ( is_single() ) : if ( is_single() ) :
the_title( '<h1 class="entry-title">', '</h1>' ); the_title( '<h1 class="entry-title">', '</h1>' );
else : else :
the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
endif; endif;
...@@ -44,21 +44,17 @@ if ( is_single() ) : ...@@ -44,21 +44,17 @@ if ( is_single() ) :
<div class="entry-content"> <div class="entry-content">
<?php <?php
/* translators: %s: Name of current post */ /* translators: %s: Name of current post */
the_content( the_content( sprintf(
sprintf( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ), the_title( '<span class="screen-reader-text">', '</span>', false )
the_title( '<span class="screen-reader-text">', '</span>', false ) ) );
)
); wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
wp_link_pages( 'after' => '</div>',
array( 'link_before' => '<span>',
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 'link_after' => '</span>',
'after' => '</div>', ) );