Skip to content
Snippets Groups Projects
Commit 7f9351d6 authored by agata's avatar agata
Browse files

[auto] theme: twentythirteen 3.0

parent fe09b7ce
No related branches found
No related tags found
No related merge requests found
Showing
with 2764 additions and 2612 deletions
......@@ -26,21 +26,24 @@ get_header(); ?>
<header class="archive-header">
<h1 class="archive-title">
<?php
if ( is_day() ) :
if ( is_day() ) {
/* translators: %s: Date. */
printf( __( 'Daily Archives: %s', 'twentythirteen' ), get_the_date() );
elseif ( is_month() ) :
} elseif ( is_month() ) {
/* translators: %s: Date. */
printf( __( 'Monthly Archives: %s', 'twentythirteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentythirteen' ) ) );
elseif ( is_year() ) :
} elseif ( is_year() ) {
/* translators: %s: Date. */
printf( __( 'Yearly Archives: %s', 'twentythirteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentythirteen' ) ) );
else :
} else {
_e( 'Archives', 'twentythirteen' );
endif;
}
?>
</h1>
</header><!-- .archive-header -->
<?php /* The loop */ ?>
<?php
// Start the loop.
while ( have_posts() ) :
the_post();
?>
......
......@@ -23,11 +23,19 @@
?>
</div><!-- .author-avatar -->
<div class="author-description">
<h2 class="author-title"><?php printf( __( 'About %s', 'twentythirteen' ), get_the_author() ); ?></h2>
<h2 class="author-title">
<?php
/* translators: %s: Author display name. */
printf( __( 'About %s', 'twentythirteen' ), get_the_author() );
?>
</h2>
<p class="author-bio">
<?php the_author_meta( 'description' ); ?>
<a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
<?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ), get_the_author() ); ?>
<?php
/* translators: %s: Author display name. */
printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ), get_the_author() );
?>
</a>
</p>
</div><!-- .author-description -->
......
......@@ -28,14 +28,19 @@ get_header(); ?>
?>
<header class="archive-header">
<h1 class="archive-title"><?php printf( __( 'All posts by %s', 'twentythirteen' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>
<h1 class="archive-title">
<?php
/* translators: %s: Author display name. */
printf( __( 'All posts by %s', 'twentythirteen' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' );
?>
</h1>
</header><!-- .archive-header -->
<?php
/*
* Since we called the_post() above, we need to
* rewind the loop back to the beginning that way
* we can run the loop properly, in full.
* Since we called the_post() above, we need
* to rewind the loop back to the beginning.
* That way we can run the loop properly, in full.
*/
rewind_posts();
?>
......@@ -44,8 +49,8 @@ get_header(); ?>
<?php get_template_part( 'author-bio' ); ?>
<?php endif; ?>
<?php /* The loop */ ?>
<?php
// Start the loop.
while ( have_posts() ) :
the_post();
?>
......
......@@ -16,15 +16,20 @@ get_header(); ?>
<?php if ( have_posts() ) : ?>
<header class="archive-header">
<h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'twentythirteen' ), single_cat_title( '', false ) ); ?></h1>
<h1 class="archive-title">
<?php
/* translators: %s: Category title. */
printf( __( 'Category Archives: %s', 'twentythirteen' ), single_cat_title( '', false ) );
?>
</h1>
<?php if ( category_description() ) : // Show an optional category description ?>
<?php if ( category_description() ) : // Show an optional category description. ?>
<div class="archive-meta"><?php echo category_description(); ?></div>
<?php endif; ?>
</header><!-- .archive-header -->
<?php /* The loop */ ?>
<?php
// Start the loop.
while ( have_posts() ) :
the_post();
?>
......
......@@ -61,7 +61,7 @@ if ( post_password_required() ) {
<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>
</nav><!-- .comment-navigation -->
<?php endif; // Check for comment navigation ?>
<?php endif; // Check for comment navigation. ?>
<?php if ( ! comments_open() && get_comments_number() ) : ?>
<p class="no-comments"><?php _e( 'Comments are closed.', 'twentythirteen' ); ?></p>
......
......@@ -11,9 +11,9 @@
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-content">
<?php
/* translators: %s: Name of current post */
the_content(
sprintf(
/* translators: %s: Post title. */
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false )
)
......
......@@ -22,9 +22,9 @@
<div class="entry-content">
<div class="audio-content">
<?php
/* translators: %s: Name of current post */
the_content(
sprintf(
/* translators: %s: Post title. */
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false )
)
......
......@@ -21,9 +21,9 @@
<div class="entry-content">
<?php
/* translators: %s: Name of current post */
the_content(
sprintf(
/* translators: %s: Post title. */
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false )
)
......
......@@ -22,9 +22,9 @@
<div class="entry-content">
<?php if ( is_single() || ! get_post_gallery() ) : ?>
<?php
/* translators: %s: Name of current post */
the_content(
sprintf(
/* translators: %s: Post title. */
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false )
)
......
......@@ -21,9 +21,9 @@
<div class="entry-content">
<?php
/* translators: %s: Name of current post */
the_content(
sprintf(
/* translators: %s: Post title. */
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false )
)
......
......@@ -22,9 +22,9 @@
<div class="entry-content">
<?php
/* translators: %s: Name of current post */
the_content(
sprintf(
/* translators: %s: Post title. */
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false )
)
......
......@@ -15,7 +15,12 @@
<div class="page-content">
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentythirteen' ), admin_url( 'post-new.php' ) ); ?></p>
<p>
<?php
/* translators: %s: Post editor URL. */
printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentythirteen' ), admin_url( 'post-new.php' ) );
?>
</p>
<?php elseif ( is_search() ) : ?>
......
......@@ -11,9 +11,9 @@
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-content">
<?php
/* translators: %s: Name of current post */
the_content(
sprintf(
/* translators: %s: Post title. */
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false )
)
......
......@@ -11,9 +11,9 @@
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-content">
<?php
/* translators: %s: Name of current post */
the_content(
sprintf(
/* translators: %s: Post title. */
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false )
)
......
......@@ -21,9 +21,9 @@
<div class="entry-content">
<?php
/* translators: %s: Name of current post */
the_content(
sprintf(
/* translators: %s: Post title. */
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false )
)
......
......@@ -32,16 +32,16 @@
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<?php if ( is_search() ) : // Only display Excerpts for Search ?>
<?php if ( is_search() ) : // Only display excerpts for search. ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content">
<?php
/* translators: %s: Name of current post */
the_content(
sprintf(
/* translators: %s: Post title. */
__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
the_title( '<span class="screen-reader-text">', '</span>', false )
)
......
......@@ -404,6 +404,113 @@ body:not(.sidebar) .wp-block-table.alignfull {
max-width: 100%;
}
/* Group Block: Default Alignment */
.wp-block-group,
.wp-block-group.has-background {
margin-bottom: 24px;
}
.wp-block-group:not(.alignfull):not(.alignwide) > .wp-block-group__inner-container > * {
width: 604px;
max-width: 100%;
margin-left: 0;
margin-right: 0;
}
.wp-block-group.has-background:not(.alignfull):not(.alignwide) > .wp-block-group__inner-container > .alignfull {
width: calc(100% + 60px);
max-width: calc(100% + 60px);
margin-left: -30px;
}
.wp-block-group:not(.alignfull) .wp-block-columns.alignfull {
margin-left: auto;
margin-right: auto;
}
/* Group Block: Wide Alignment */
.wp-block-group.alignwide > .wp-block-group__inner-container > *,
.wp-block-group.alignwide > .wp-block-group__inner-container > .alignwide,
.wp-block-group.alignwide > .wp-block-group__inner-container > .alignfull {
max-width: 604px;
margin-left: auto;
margin-right: auto;
}
.wp-block-group.alignwide > .wp-block-group__inner-container > .alignwide,
.wp-block-group.alignwide > .wp-block-group__inner-container > .alignfull {
width: 100%;
max-width: 100%;
}
.wp-block-group.has-background.alignwide > .wp-block-group__inner-container > .alignfull {
width: calc(100% + 60px);
max-width: calc(100% + 60px);
margin-left: -30px;
}
@media (max-width: 664px) {
.wp-block-group:not(.has-background).alignwide {
margin-left: 0;
margin-right: 0;
}
.wp-block-group:not(.has-background).alignwide > .wp-block-group__inner-container > .alignwide,
.wp-block-group:not(.has-background).alignwide > .wp-block-group__inner-container > .alignfull {
width: auto;
max-width: 1600px;
margin-left: calc(25% - 25vw);
margin-right: calc(25% - 25vw);
}
}
/* Group Block: Full Alignment */
@media (max-width: 664px) {
.wp-block-group:not(.has-background).alignfull {
margin-left: 0;
margin-right: 0;
}
.wp-block-group.has-background.alignfull > *:not(.alignfull) {
margin-left: auto;
margin-right: auto;
}
}
@media (max-width: 999px) {
body.sidebar .wp-block-group.alignfull:not(.has-background) {
margin-left: 0;
margin-right: 0;
}
body.sidebar .wp-block-group.alignfull.has-background > .wp-block-group__inner-container {
max-width: 604px;
margin: 0 auto;
}
body.sidebar .wp-block-group.alignfull:not(.has-background) > .wp-block-group__inner-container > .alignfull {
margin-left: calc(50% - 50vw);
margin-right: calc(50% - 50vw);
}
}
@media (min-width: 665px) {
body:not(.sidebar) .wp-block-group.alignfull,
body:not(.sidebar) .wp-block-group.has-background.alignfull {
padding: 20px calc( (100vw - 604px ) / 2 ); /* Reproduces the padding of entry-content, so that default block rules apply properly inside of this block. */
}
}
@media (min-width: 1600px) {
body:not(.sidebar) .wp-block-group.alignfull,
body:not(.sidebar) .wp-block-group.has-background.alignfull {
padding: 20px 498px; /* Above 1600px, these need fixed left/right padding. This works out to ((1600px - 604px) / 2) */
}
}
/* Media & Text */
.wp-block-media-text {
......
......@@ -361,6 +361,25 @@ p.has-drop-cap:not(:focus)::first-letter {
margin-bottom: 0;
}
/* Group */
.wp-block[data-type="core/group"] > .editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block {
max-width: 634px;
}
.wp-block[data-type="core/group"] > .editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align="wide"] {
max-width: 1100px;
}
.wp-block[data-type="core/group"] > .editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align="full"] {
max-width: 100%;
}
.wp-block[data-type="core/group"] > .editor-block-list__block-edit > div > .wp-block-group.has-background > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align="full"] {
width: calc(100% + 60px);
max-width: calc(100% + 60px);
}
/*--------------------------------------------------------------
7.0 Blocks - Widgets
--------------------------------------------------------------*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment