Commit ed983a2c authored by lucha's avatar lucha
Browse files

[auto] theme: twentythirteen 2.5

parent bbd38e6c
...@@ -28,4 +28,4 @@ get_header(); ?> ...@@ -28,4 +28,4 @@ get_header(); ?>
</div><!-- #content --> </div><!-- #content -->
</div><!-- #primary --> </div><!-- #primary -->
<?php get_footer(); ?> <?php get_footer(); ?>
\ No newline at end of file
...@@ -24,10 +24,9 @@ get_header(); ?> ...@@ -24,10 +24,9 @@ get_header(); ?>
<?php if ( have_posts() ) : ?> <?php if ( have_posts() ) : ?>
<header class="archive-header"> <header class="archive-header">
<h1 class="archive-title"> <h1 class="archive-title"><?php
<?php if ( is_day() ) :
if ( is_day() ) : printf( __( 'Daily Archives: %s', 'twentythirteen' ), get_the_date() );
printf( __( 'Daily Archives: %s', 'twentythirteen' ), get_the_date() );
elseif ( is_month() ) : elseif ( is_month() ) :
printf( __( 'Monthly Archives: %s', 'twentythirteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentythirteen' ) ) ); printf( __( 'Monthly Archives: %s', 'twentythirteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentythirteen' ) ) );
elseif ( is_year() ) : elseif ( is_year() ) :
...@@ -35,15 +34,11 @@ get_header(); ?> ...@@ -35,15 +34,11 @@ get_header(); ?>
else : else :
_e( 'Archives', 'twentythirteen' ); _e( 'Archives', 'twentythirteen' );
endif; endif;
?> ?></h1>
</h1>
</header><!-- .archive-header --> </header><!-- .archive-header -->
<?php /* The loop */ ?> <?php /* The loop */ ?>
<?php <?php while ( have_posts() ) : the_post(); ?>
while ( have_posts() ) :
the_post();
?>
<?php get_template_part( 'content', get_post_format() ); ?> <?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?> <?php endwhile; ?>
......
...@@ -31,4 +31,4 @@ ...@@ -31,4 +31,4 @@
</a> </a>
</p> </p>
</div><!-- .author-description --> </div><!-- .author-description -->
</div><!-- .author-info --> </div><!-- .author-info -->
\ No newline at end of file
...@@ -45,10 +45,7 @@ get_header(); ?> ...@@ -45,10 +45,7 @@ get_header(); ?>
<?php endif; ?> <?php endif; ?>
<?php /* The loop */ ?> <?php /* The loop */ ?>
<?php <?php while ( have_posts() ) : the_post(); ?>
while ( have_posts() ) :
the_post();
?>
<?php get_template_part( 'content', get_post_format() ); ?> <?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?> <?php endwhile; ?>
......
...@@ -24,10 +24,7 @@ get_header(); ?> ...@@ -24,10 +24,7 @@ get_header(); ?>
</header><!-- .archive-header --> </header><!-- .archive-header -->
<?php /* The loop */ ?> <?php /* The loop */ ?>
<?php <?php while ( have_posts() ) : the_post(); ?>
while ( have_posts() ) :
the_post();
?>
<?php get_template_part( 'content', get_post_format() ); ?> <?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?> <?php endwhile; ?>
......
...@@ -13,9 +13,8 @@ ...@@ -13,9 +13,8 @@
* If the current post is protected by a password and the visitor has not yet * If the current post is protected by a password and the visitor has not yet
* entered the password we will return early without loading the comments. * entered the password we will return early without loading the comments.
*/ */
if ( post_password_required() ) { if ( post_password_required() )
return; return;
}
?> ?>
<div id="comments" class="comments-area"> <div id="comments" class="comments-area">
...@@ -23,42 +22,38 @@ if ( post_password_required() ) { ...@@ -23,42 +22,38 @@ if ( post_password_required() ) {
<?php if ( have_comments() ) : ?> <?php if ( have_comments() ) : ?>
<h2 class="comments-title"> <h2 class="comments-title">
<?php <?php
printf( printf( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'twentythirteen' ),
_nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'twentythirteen' ), number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>'
);
?> ?>
</h2> </h2>
<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' => 74,
'avatar_size' => 74, ) );
)
);
?> ?>
</ol><!-- .comment-list --> </ol><!-- .comment-list -->
<?php <?php
// Are there comments to navigate through? // Are there comments to navigate through?
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
?> ?>
<nav class="navigation comment-navigation" role="navigation"> <nav class="navigation comment-navigation" role="navigation">
<h1 class="screen-reader-text section-heading"><?php _e( 'Comment navigation', 'twentythirteen' ); ?></h1> <h1 class="screen-reader-text section-heading"><?php _e( 'Comment navigation', 'twentythirteen' ); ?></h1>
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentythirteen' ) ); ?></div> <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentythirteen' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'twentythirteen' ) ); ?></div> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'twentythirteen' ) ); ?></div>
</nav><!-- .comment-navigation --> </nav><!-- .comment-navigation -->
<?php endif; // Check for comment navigation ?> <?php endif; // Check for comment navigation ?>
<?php if ( ! comments_open() && get_comments_number() ) : ?> <?php if ( ! comments_open() && get_comments_number() ) : ?>
<p class="no-comments"><?php _e( 'Comments are closed.', 'twentythirteen' ); ?></p> <p class="no-comments"><?php _e( 'Comments are closed.' , 'twentythirteen' ); ?></p>
<?php endif; ?> <?php endif; ?>
<?php endif; // have_comments() ?> <?php endif; // have_comments() ?>
<?php comment_form(); ?> <?php comment_form(); ?>
</div><!-- #comments --> </div><!-- #comments -->
\ No newline at end of file
...@@ -12,21 +12,12 @@ ...@@ -12,21 +12,12 @@
<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>', 'twentythirteen' ),
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ), the_title( '<span class="screen-reader-text">', '</span>', false )
the_title( '<span class="screen-reader-text">', '</span>', false ) ) );
)
);
wp_link_pages( wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
)
);
?> ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
......
...@@ -23,21 +23,12 @@ ...@@ -23,21 +23,12 @@
<div class="audio-content"> <div class="audio-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>', 'twentythirteen' ),
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ), the_title( '<span class="screen-reader-text">', '</span>', false )
the_title( '<span class="screen-reader-text">', '</span>', false ) ) );
)
);
wp_link_pages( wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
)
);
?> ?>
</div><!-- .audio-content --> </div><!-- .audio-content -->
</div><!-- .entry-content --> </div><!-- .entry-content -->
......
...@@ -22,21 +22,12 @@ ...@@ -22,21 +22,12 @@
<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>', 'twentythirteen' ),
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ), the_title( '<span class="screen-reader-text">', '</span>', false )
the_title( '<span class="screen-reader-text">', '</span>', false ) ) );
)
);
wp_link_pages( wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
)
);
?> ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
......
...@@ -23,21 +23,12 @@ ...@@ -23,21 +23,12 @@
<?php if ( is_single() || ! get_post_gallery() ) : ?> <?php if ( is_single() || ! get_post_gallery() ) : ?>
<?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>', 'twentythirteen' ),
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ), the_title( '<span class="screen-reader-text">', '</span>', false )
the_title( '<span class="screen-reader-text">', '</span>', false ) ) );
)
);
wp_link_pages( wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
)
);
?> ?>
<?php else : ?> <?php else : ?>
<?php echo get_post_gallery(); ?> <?php echo get_post_gallery(); ?>
......
...@@ -22,21 +22,12 @@ ...@@ -22,21 +22,12 @@
<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>', 'twentythirteen' ),
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ), the_title( '<span class="screen-reader-text">', '</span>', false )
the_title( '<span class="screen-reader-text">', '</span>', false ) ) );
)
);
wp_link_pages( wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
)
);
?> ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
......
...@@ -23,21 +23,12 @@ ...@@ -23,21 +23,12 @@
<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>', 'twentythirteen' ),
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ), the_title( '<span class="screen-reader-text">', '</span>', false )
the_title( '<span class="screen-reader-text">', '</span>', false ) ) );
)
);
wp_link_pages( wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
)
);
?> ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
......
...@@ -12,21 +12,12 @@ ...@@ -12,21 +12,12 @@
<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>', 'twentythirteen' ),
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ), the_title( '<span class="screen-reader-text">', '</span>', false )
the_title( '<span class="screen-reader-text">', '</span>', false ) ) );
)
);
wp_link_pages( wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
)
);
?> ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
......
...@@ -12,21 +12,12 @@ ...@@ -12,21 +12,12 @@
<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>', 'twentythirteen' ),
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ), the_title( '<span class="screen-reader-text">', '</span>', false )
the_title( '<span class="screen-reader-text">', '</span>', false ) ) );
)
);
wp_link_pages( wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
)
);
?> ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
......
...@@ -22,21 +22,12 @@ ...@@ -22,21 +22,12 @@
<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>', 'twentythirteen' ),
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ), the_title( '<span class="screen-reader-text">', '</span>', false )
the_title( '<span class="screen-reader-text">', '</span>', false ) ) );
)
);
wp_link_pages( wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
)
);
?> ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
......
...@@ -40,21 +40,12 @@ ...@@ -40,21 +40,12 @@
<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>', 'twentythirteen' ),
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ), the_title( '<span class="screen-reader-text">', '</span>', false )
the_title( '<span class="screen-reader-text">', '</span>', false ) ) );
)
);
wp_link_pages( wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
)
);
?> ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
<?php endif; ?> <?php endif; ?>
......
/*
Theme Name: Twenty Thirteen
Description: Used to style Gutenberg Blocks.
*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 Block Alignments
2.0 General Block Styles
3.0 Blocks - Common Blocks
4.0 Blocks - Formatting
5.0 Blocks - Layout Elements
6.0 Blocks - Widgets
7.0 Blocks - Colors
--------------------------------------------------------------*/
/*--------------------------------------------------------------
1.0 Block Alignments
--------------------------------------------------------------*/
.content-area {
overflow-x: hidden; /* prevents side-scrolling caused by use of vw */
}
[class^="wp-block-"].alignleft,
[class^="wp-block-"] .alignleft {
margin-right: 20px;
}
[class^="wp-block-"].alignright,
[class^="wp-block-"] .alignright {
margin-left: 20px;
}
.alignfull,
.alignwide {
clear: both;
}
body:not(.sidebar) .alignwide {
margin-left: calc(25% - 25vw);
margin-right: calc(25% - 25vw);
width: auto;
max-width: 1600px;
}
body:not(.sidebar) .alignfull {
margin-left: calc(50% - 50vw);
margin-right: calc(50% - 50vw);
width: auto;
max-width: 1600px;
}
/* Make non image-based blocks a bit narrower, so they don't get cut off. */
body:not(.sidebar) .wp-block-columns.alignfull,
body:not(.sidebar) .wp-block-audio.alignfull,
body:not(.sidebar) .wp-block-table.alignfull,
body:not(.sidebar) .wp-block-latest-comments.alignfull {
margin-left: calc(50% - 48vw);
margin-right: calc(50% - 48vw);
}
@media (max-width: 999px) {
body.sidebar .alignwide {
margin-left: calc(25% - 25vw);
margin-right: calc(25% - 25vw);
width: auto;
max-width: 1600px;
}
body.sidebar .alignfull {
margin-left: calc(50% - 50vw);
margin-right: calc(50% - 50vw);