Commit f41ed4cc authored by lucha's avatar lucha
Browse files

[auto] theme: twentyseventeen 1.8

parent 02d77d34
...@@ -31,5 +31,4 @@ get_header(); ?> ...@@ -31,5 +31,4 @@ get_header(); ?>
</div><!-- #primary --> </div><!-- #primary -->
</div><!-- .wrap --> </div><!-- .wrap -->
<?php <?php get_footer();
get_footer();
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
Contributors: the WordPress team Contributors: the WordPress team
Requires at least: WordPress 4.7 Requires at least: WordPress 4.7
Tested up to: WordPress 5.0-trunk Tested up to: WordPress 5.0-trunk
Version: 1.7 Version: 1.8
License: GPLv2 or later License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
...@@ -60,6 +60,11 @@ Source: https://unsplash.com/@englr?photo=bIhpiQA009k ...@@ -60,6 +60,11 @@ Source: https://unsplash.com/@englr?photo=bIhpiQA009k
== Changelog == == Changelog ==
= 1.8 =
* Released: December 6, 2018
https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_1.8
= 1.7 = = 1.7 =
* Released: August 2, 2018 * Released: August 2, 2018
......
...@@ -27,12 +27,10 @@ get_header(); ?> ...@@ -27,12 +27,10 @@ get_header(); ?>
<main id="main" class="site-main" role="main"> <main id="main" class="site-main" role="main">
<?php <?php
if ( have_posts() ) : if ( have_posts() ) : ?>
?>
<?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. * Include the Post-Format-specific template for the content.
...@@ -43,25 +41,21 @@ get_header(); ?> ...@@ -43,25 +41,21 @@ get_header(); ?>
endwhile; endwhile;
the_posts_pagination( the_posts_pagination( array(
array( 'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous page', 'twentyseventeen' ) . '</span>',
'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous page', 'twentyseventeen' ) . '</span>', 'next_text' => '<span class="screen-reader-text">' . __( 'Next page', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ),
'next_text' => '<span class="screen-reader-text">' . __( 'Next page', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ), 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyseventeen' ) . ' </span>',
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyseventeen' ) . ' </span>', ) );
)
);
else : else :
get_template_part( 'template-parts/post/content', 'none' ); get_template_part( 'template-parts/post/content', 'none' );
endif; endif; ?>
?>
</main><!-- #main --> </main><!-- #main -->
</div><!-- #primary --> </div><!-- #primary -->
<?php get_sidebar(); ?> <?php get_sidebar(); ?>
</div><!-- .wrap --> </div><!-- .wrap -->
<?php <?php get_footer();
get_footer();
/*
Theme Name: Twenty Seventeen
Description: Used to style Gutenberg Blocks.
*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 Blocks - Common Blocks
2.0 Blocks - Formatting
3.0 Blocks - Layout Elements
4.0 Blocks - Widgets
--------------------------------------------------------------*/
/*--------------------------------------------------------------
1.0 General Block Styles
--------------------------------------------------------------*/
/* Captions */
[class^="wp-block-"]:not(.wp-block-gallery) figcaption {
font-style: italic;
margin-bottom: 1.5em;
text-align: left;
}
.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
text-align: right;
}
/*--------------------------------------------------------------
2.0 Blocks - Common Blocks
--------------------------------------------------------------*/
/* Paragraph */
p.has-drop-cap:not(:focus)::first-letter {
font-size: 5em;
margin-top: 0.075em;
}
/* Image */
.wp-block-image {
margin-bottom: 1.5em;
}
.wp-block-image figure {
margin-bottom: 0;
margin-top: 0;
}
.wp-block-image figure.alignleft {
margin-right: 1.5em;
}
.wp-block-image figure.alignright {
margin-left: 1.5em;
}
/* Gallery */
.wp-block-gallery {
margin-bottom: 1.5em;
}
.wp-block-gallery figcaption {
font-style: italic;
}
.wp-block-gallery.aligncenter {
display: flex;
margin: 0 -8px;
}
/* Quote */
.wp-block-quote:not(.is-large):not(.is-style-large) {
border: 0;
padding: 0;
}
.wp-block-quote.alignleft p:last-of-type,
.wp-block-quote.alignright p:last-of-type {
margin-bottom: 0;
}
.wp-block-quote cite {
color: inherit;
font-size: inherit;
}
/* Audio */
.wp-block-audio audio {
display: block;
width: 100%;
}
/* Cover */
.wp-block-cover-image.alignright,
.wp-block-cover.alignright,
.wp-block-cover-image.alignleft,
.wp-block-cover.alignleft,
.wp-block-cover-image.aligncenter,
.wp-block-cover.aligncenter {
display: flex;
}
/* File */
.wp-block-file .wp-block-file__button {
background-color: #222;
-webkit-border-radius: 2px;
border-radius: 2px;
-webkit-box-shadow: none;
box-shadow: none;
color: #fff;
display: inline-block;
font-size: 14px;
font-size: 0.875rem;
font-weight: 800;
margin-top: 2em;
padding: 0.7em 2em;
-webkit-transition: background-color 0.2s ease-in-out;
transition: background-color 0.2s ease-in-out;
white-space: nowrap;
}
.wp-block-file .wp-block-file__button:hover,
.wp-block-file .wp-block-file__button:focus {
background-color: #767676;
-webkit-box-shadow: none;
box-shadow: none;
}
/*--------------------------------------------------------------
3.0 Blocks - Formatting
--------------------------------------------------------------*/
/* Code */
.wp-block-code {
background: transparent;
border: 0;
padding: 0;
}
/* Pullquote */
.wp-block-pullquote {
border: 0;
}
.wp-block-pullquote__citation,
.wp-block-pullquote cite {
font-size: inherit;
text-transform: none;
}
/* Table */
.wp-block-table thead th {
border-bottom: 2px solid #bbb;
padding-bottom: 0.5em;
}
.wp-block-table tr {
border-bottom: 1px solid #eee;
}
.wp-block-table th,
.wp-block-table td {
border: 0;
}
.rtl .wp-block-table th,
.rtl .wp-block-table td {
text-align: right;
}
/*--------------------------------------------------------------
4.0 Blocks - Layout Elements
--------------------------------------------------------------*/
/* Buttons */
.wp-block-button .wp-block-button__link {
background-color: #222;
-webkit-border-radius: 2px;
border-radius: 2px;
-webkit-box-shadow: none;
box-shadow: none;
color: #fff;
display: inline-block;
font-size: 14px;
font-size: 0.875rem;
font-weight: 800;
line-height: 1.66;
margin-top: 2em;
padding: 0.7em 2em;
-webkit-transition: background-color 0.2s ease-in-out;
transition: background-color 0.2s ease-in-out;
white-space: nowrap;
}
.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus {
background-color: #767676;
-webkit-box-shadow: none;
box-shadow: none;
}
/* Separator */
.wp-block-separator {
border: 0;
}
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
max-width: 100px;
}
/* Media & Text */
.wp-block-media-text {
margin-bottom: 1.5em;
}
.wp-block-media-text *:last-child {
margin-bottom: 0;
}
/*--------------------------------------------------------------
5.0 Blocks - Widgets
--------------------------------------------------------------*/
/* Archives, Categories & Latest Posts */
.wp-block-archives.aligncenter,
.wp-block-categories.aligncenter,
.wp-block-latest-posts.aligncenter {
list-style-position: inside;
text-align: center;
}
/* Comments */
.wp-block-latest-comments article {
margin-bottom: 4em;
}
.blog:not(.has-sidebar) #primary .wp-block-latest-comments article,
.archive:not(.page-one-column):not(.has-sidebar) #primary .wp-block-latest-comments article,
.search:not(.has-sidebar) #primary .wp-block-latest-comments article {
float: none;
width: 100%;
}
.wp-block-latest-comments .avatar,
.wp-block-latest-comments__comment-avatar {
border-radius: 0;
}
.wp-block-latest-comments a {
-webkit-box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 1);
box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 1);
}
.wp-block-latest-comments__comment-meta {
font-size: 16px;
font-size: 1rem;
margin-bottom: 0.4em;
}
.wp-block-latest-comments__comment-author,
.wp-block-latest-comments__comment-link {
font-weight: 700;
text-decoration: none;
}
.wp-block-latest-comments__comment-date {
color: #767676;
font-size: 10px;
font-size: 0.625rem;
font-weight: 800;
letter-spacing: 0.1818em;
margin-top: 0.4em;
text-transform: uppercase;
}
.editor-block-list__block .wp-block-latest-comments__comment-excerpt p {
font-size: 14px;
font-size: 0.875rem;
}
This diff is collapsed.
...@@ -27,8 +27,7 @@ if ( post_password_required() ) { ...@@ -27,8 +27,7 @@ if ( post_password_required() ) {
<?php <?php
// You can start editing here -- including this comment! // You can start editing here -- including this comment!
if ( have_comments() ) : if ( have_comments() ) : ?>
?>
<h2 class="comments-title"> <h2 class="comments-title">
<?php <?php
$comments_number = get_comments_number(); $comments_number = get_comments_number();
...@@ -54,30 +53,24 @@ if ( post_password_required() ) { ...@@ -54,30 +53,24 @@ if ( post_password_required() ) {
<ol class="comment-list"> <ol class="comment-list">
<?php <?php
wp_list_comments( wp_list_comments( array(
array( 'avatar_size' => 100,
'avatar_size' => 100, 'style' => 'ol',
'style' => 'ol', 'short_ping' => true,
'short_ping' => true, 'reply_text' => twentyseventeen_get_svg( array( 'icon' => 'mail-reply' ) ) . __( 'Reply', 'twentyseventeen' ),
'reply_text' => twentyseventeen_get_svg( array( 'icon' => 'mail-reply' ) ) . __( 'Reply', 'twentyseventeen' ), ) );
)
);
?> ?>
</ol> </ol>
<?php <?php the_comments_pagination( array(
the_comments_pagination( 'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous', 'twentyseventeen' ) . '</span>',
array( 'next_text' => '<span class="screen-reader-text">' . __( 'Next', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ),
'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous', 'twentyseventeen' ) . '</span>', ) );
'next_text' => '<span class="screen-reader-text">' . __( 'Next', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ),
)
);
endif; // Check for have_comments(). endif; // Check for have_comments().
// If comments are closed and there are comments, let's leave a little note, shall we? // If comments are closed and there are comments, let's leave a little note, shall we?
if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?>
?>
<p class="no-comments"><?php _e( 'Comments are closed.', 'twentyseventeen' ); ?></p> <p class="no-comments"><?php _e( 'Comments are closed.', 'twentyseventeen' ); ?></p>
<?php <?php
......
...@@ -21,23 +21,19 @@ ...@@ -21,23 +21,19 @@
<?php <?php
get_template_part( 'template-parts/footer/footer', 'widgets' ); get_template_part( 'template-parts/footer/footer', 'widgets' );
if ( has_nav_menu( 'social' ) ) : if ( has_nav_menu( 'social' ) ) : ?>
?>
<nav class="social-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer Social Links Menu', 'twentyseventeen' ); ?>"> <nav class="social-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer Social Links Menu', 'twentyseventeen' ); ?>">
<?php <?php
wp_nav_menu( wp_nav_menu( array(
array( 'theme_location' => 'social',
'theme_location' => 'social', 'menu_class' => 'social-links-menu',
'menu_class' => 'social-links-menu', 'depth' => 1,
'depth' => 1, 'link_before' => '<span class="screen-reader-text">',
'link_before' => '<span class="screen-reader-text">', 'link_after' => '</span>' . twentyseventeen_get_svg( array( 'icon' => 'chain' ) ),
'link_after' => '</span>' . twentyseventeen_get_svg( array( 'icon' => 'chain' ) ), ) );
)
);
?> ?>
</nav><!-- .social-navigation --> </nav><!-- .social-navigation -->
<?php <?php endif;
endif;
get_template_part( 'template-parts/footer/site', 'info' ); get_template_part( 'template-parts/footer/site', 'info' );
?> ?>
......
...@@ -17,17 +17,14 @@ get_header(); ?> ...@@ -17,17 +17,14 @@ get_header(); ?>
<div id="primary" class="content-area"> <div id="primary" class="content-area">
<main id="main" class="site-main" role="main"> <main id="main" class="site-main" role="main">
<?php <?php // Show the selected frontpage content.
// Show the selected front page content.
if ( have_posts() ) : if ( have_posts() ) :
while ( have_posts() ) : while ( have_posts() ) : the_post();
the_post();
get_template_part( 'template-parts/page/content', 'front-page' ); get_template_part( 'template-parts/page/content', 'front-page' );
endwhile; endwhile;
else : else :
get_template_part( 'template-parts/post/content', 'none' ); get_template_part( 'template-parts/post/content', 'none' );
endif; endif; ?>
?>
<?php <?php
// Get each of our panels and show the post data. // Get each of our panels and show the post data.
...@@ -49,11 +46,9 @@ get_header(); ?> ...@@ -49,11 +46,9 @@ get_header(); ?>
twentyseventeen_front_page_section( null, $i ); twentyseventeen_front_page_section( null, $i );
} }
endif; // The if ( 0 !== twentyseventeen_panel_count() ) ends here. endif; // The if ( 0 !== twentyseventeen_panel_count() ) ends here. ?>
?>
</main><!-- #main --> </main><!-- #main -->
</div><!-- #primary --> </div><!-- #primary -->
<?php <?php get_footer();
get_footer();
...@@ -59,51 +59,43 @@ function twentyseventeen_setup() { ...@@ -59,51 +59,43 @@ function twentyseventeen_setup() {
$GLOBALS['content_width'] = 525; $GLOBALS['content_width'] = 525;
// This theme uses wp_nav_menu() in two locations. // This theme uses wp_nav_menu() in two locations.
register_nav_menus( register_nav_menus( array(
array( 'top' => __( 'Top Menu', 'twentyseventeen' ),
'top' => __( 'Top Menu', 'twentyseventeen' ), 'social' => __( 'Social Links Menu', 'twentyseventeen' ),
'social' => __( 'Social Links Menu', 'twentyseventeen' ), ) );
)
);
/* /*
* Switch default core markup for search form, comment form, and comments * Switch default core markup for search form, comment form, and comments
* to output valid HTML5. * to output valid HTML5.
*/ */
add_theme_support( add_theme_support( 'html5', array(
'html5', array( 'comment-form',
'comment-form', 'comment-list',
'comment-list', 'gallery',
'gallery', 'caption',
'caption', ) );
)
);
/* /*
* Enable support for Post Formats. * Enable support for Post Formats.
* *