Make WordPress Themes

Changeset 235019 for twentyseventeen


Ignore:
Timestamp:
07/16/2024 01:29:55 PM (17 months ago)
Author:
themedropbox
Message:

New version of Twenty Seventeen - 3.7

Location:
twentyseventeen/3.7
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • twentyseventeen/3.7/assets/css/blocks.css

    r178729 r235019  
    167167
    168168.wp-block-pullquote {
    169     border: 0;
     169    border: 0 solid;
    170170}
    171171
     
    195195.rtl .wp-block-table td {
    196196    text-align: right;
     197}
     198
     199/* Calendar */
     200
     201.wp-block-calendar th {
     202    text-align: center;
    197203}
    198204
     
    314320
    315321.wp-block-latest-comments article {
    316     margin-bottom: 4em;
     322    margin-bottom: 4rem;
    317323}
    318324
     
    336342    -webkit-box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 1);
    337343    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 1);
    338 
    339344}
    340345
     
    365370}
    366371
    367 .editor-block-list__block .wp-block-latest-comments__comment-excerpt p {
    368     font-size: 14px;
    369     font-size: 0.875rem;
    370 }
    371 
    372372/* Query Loop & Post Template */
    373373
    374374.wp-block-query .wp-block-post-template > li {
    375375    border-top: none;
     376}
     377
     378/* Site Logo */
     379
     380:root .entry-content .wp-block-site-logo a.custom-logo-link {
     381    -webkit-box-shadow: none;
     382    box-shadow: none;
     383}
     384
     385.entry-content .wp-block-site-logo img {
     386    max-height: none;
    376387}
    377388
  • twentyseventeen/3.7/assets/css/colors-dark.css

    r168447 r235019  
    127127.colors-dark .widget ul li a:focus,
    128128.colors-dark .widget ul li a:hover {
    129     -webkit-box-shadow: inset 0 0 0 rgba(255, 255, 255, 0), 0 3px 0 rgba(255, 255, 255, 1); /* Equivalant to #fff */
    130     box-shadow: inset 0 0 0 rgba(255, 255, 255, 0), 0 3px 0 rgba(255, 255, 255, 1); /* Equivalant to #fff */
     129    -webkit-box-shadow: inset 0 0 0 rgba(255, 255, 255, 0), 0 3px 0 rgba(255, 255, 255, 1); /* Equivalent to #fff */
     130    box-shadow: inset 0 0 0 rgba(255, 255, 255, 0), 0 3px 0 rgba(255, 255, 255, 1); /* Equivalent to #fff */
    131131}
    132132
     
    138138.colors-dark .posts-navigation a,
    139139.colors-dark .widget_authors a strong {
    140     -webkit-box-shadow: inset 0 -1px 0 rgba(240, 240, 240, 1); /* Equivalant to #f0f0f0 */
    141     box-shadow: inset 0 -1px 0 rgba(240, 240, 240, 1); /* Equivalant to #f0f0f0 */
     140    -webkit-box-shadow: inset 0 -1px 0 rgba(240, 240, 240, 1); /* Equivalent to #f0f0f0 */
     141    box-shadow: inset 0 -1px 0 rgba(240, 240, 240, 1); /* Equivalent to #f0f0f0 */
    142142}
    143143
     
    475475.colors-dark .site-footer .widget-area ul li a,
    476476.colors-dark .site-info a {
    477     -webkit-box-shadow: inset 0 -1px 0 rgba(34, 34, 34, 1); /* Equivalant to #222 */
    478     box-shadow: inset 0 -1px 0 rgba(34, 34, 34, 1); /* Equivalant to #222 */
     477    -webkit-box-shadow: inset 0 -1px 0 rgba(34, 34, 34, 1); /* Equivalent to #222 */
     478    box-shadow: inset 0 -1px 0 rgba(34, 34, 34, 1); /* Equivalent to #222 */
    479479}
    480480
  • twentyseventeen/3.7/assets/css/editor-blocks.css

    r206168 r235019  
    459459}
    460460
    461 /* Caption styles*/
    462 
    463 [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
     461/* Caption styles */
     462
     463[class^="wp-block-"]:not(.wp-block-gallery) > figcaption,
     464[class*=" wp-block-"]:not(.wp-block-gallery) > figcaption {
    464465    font-style: italic;
    465466    margin-bottom: 1.5em;
     
    467468}
    468469
    469 .rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
     470.rtl [class^="wp-block-"]:not(.wp-block-gallery) > figcaption,
     471.rtl [class*=" wp-block-"]:not(.wp-block-gallery) > figcaption,
     472[dir="rtl"] [class^="wp-block-"]:not(.wp-block-gallery) > figcaption,
     473[dir="rtl"] [class*=" wp-block-"]:not(.wp-block-gallery) > figcaption {
    470474    text-align: right;
    471475}
     
    643647
    644648.wp-block-pullquote {
    645     border: 0;
     649    border: 0 solid;
    646650}
    647651
     
    704708.rtl table.wp-block-table td {
    705709    text-align: right;
     710}
     711
     712/* Calendar */
     713
     714.editor-styles-wrapper .wp-block-calendar th {
     715    text-align: center;
    706716}
    707717
     
    772782/* Latest Comments */
    773783
    774 .editor-block-list__block ol.wp-block-latest-comments > li:before {
    775     content: '';
    776 }
    777 
    778784.wp-block-latest-comments article {
    779     margin-bottom: 4em;
     785    margin-bottom: 4rem;
    780786}
    781787
     
    791797}
    792798
    793 .editor-block-list__block .wp-block-latest-comments__comment-meta a {
     799.editor-styles-wrapper .wp-block-latest-comments__comment-meta a {
    794800    -webkit-box-shadow: none;
    795801    box-shadow: none;
     
    807813}
    808814
    809 .editor-block-list__block .wp-block-latest-comments__comment-excerpt p {
    810     font-size: 14px;
    811     font-size: 0.875rem;
    812 }
    813 
    814815/* Latest Posts */
    815816
  • twentyseventeen/3.7/functions.php

    r223027 r235019  
    8585     * Enable support for Post Formats.
    8686     *
    87      * See: https://wordpress.org/documentation/article/post-formats/
     87     * See: https://developer.wordpress.org/advanced-administration/wordpress/post-formats/
    8888     */
    8989    add_theme_support(
     
    453453
    454454    // Theme stylesheet.
    455     wp_enqueue_style( 'twentyseventeen-style', get_stylesheet_uri(), array(), '20240402' );
     455    wp_enqueue_style( 'twentyseventeen-style', get_stylesheet_uri(), array(), '20240716' );
    456456
    457457    // Theme block stylesheet.
    458     wp_enqueue_style( 'twentyseventeen-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'twentyseventeen-style' ), '20220912' );
     458    wp_enqueue_style( 'twentyseventeen-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'twentyseventeen-style' ), '20240624' );
    459459
    460460    // Load the dark colorscheme.
    461461    if ( 'dark' === get_theme_mod( 'colorscheme', 'light' ) || is_customize_preview() ) {
    462         wp_enqueue_style( 'twentyseventeen-colors-dark', get_theme_file_uri( '/assets/css/colors-dark.css' ), array( 'twentyseventeen-style' ), '20191025' );
     462        wp_enqueue_style( 'twentyseventeen-colors-dark', get_theme_file_uri( '/assets/css/colors-dark.css' ), array( 'twentyseventeen-style' ), '20240412' );
    463463    }
    464464
     
    542542function twentyseventeen_block_editor_styles() {
    543543    // Block styles.
    544     wp_enqueue_style( 'twentyseventeen-block-editor-style', get_theme_file_uri( '/assets/css/editor-blocks.css' ), array(), '20230614' );
     544    wp_enqueue_style( 'twentyseventeen-block-editor-style', get_theme_file_uri( '/assets/css/editor-blocks.css' ), array(), '20240624' );
    545545    // Add custom fonts.
    546546    $font_version = ( 0 === strpos( (string) twentyseventeen_fonts_url(), get_template_directory_uri() . '/' ) ) ? '20230328' : null;
     
    581581 *
    582582 * @since Twenty Seventeen 1.0
     583 * @since Twenty Seventeen 3.7 Added larger image size for small screens.
    583584 *
    584585 * @param string $html   The HTML image tag markup being filtered.
     
    589590function twentyseventeen_header_image_tag( $html, $header, $attr ) {
    590591    if ( isset( $attr['sizes'] ) ) {
    591         $html = str_replace( $attr['sizes'], '100vw', $html );
     592        $html = str_replace( $attr['sizes'], '(max-width: 767px) 200vw, 100vw', $html );
    592593    }
    593594    return $html;
     
    690691
    691692/**
     693 * Show the featured image below the header on single posts and pages, unless the
     694 * page is the front page.
     695 *
     696 * Use the filter `twentyseventeen_should_show_featured_image` in a child theme or
     697 * plugin to change when the image is shown. This example prevents the image
     698 * from showing:
     699 *
     700 *     add_filter(
     701 *         'twentyseventeen_should_show_featured_image',
     702 *         '__return_false'
     703 *     );
     704 *
     705 * @since Twenty Seventeen 3.7
     706 *
     707 * @return bool Whether the post thumbnail should be shown.
     708 */
     709function twentyseventeen_should_show_featured_image() {
     710    $show_featured_image = ( is_single() || ( is_page() && ! twentyseventeen_is_frontpage() ) ) && has_post_thumbnail( get_queried_object_id() );
     711    return apply_filters( 'twentyseventeen_should_show_featured_image', $show_featured_image );
     712}
     713
     714/**
    692715 * Implement the Custom Header feature.
    693716 */
  • twentyseventeen/3.7/header.php

    r188111 r235019  
    4848
    4949    <?php
    50 
    51     /*
    52      * If a regular post or page, and not the front page, show the featured image.
    53      * Using get_queried_object_id() here since the $post global may not be set before a call to the_post().
    54      */
    55     if ( ( is_single() || ( is_page() && ! twentyseventeen_is_frontpage() ) ) && has_post_thumbnail( get_queried_object_id() ) ) :
     50    if ( twentyseventeen_should_show_featured_image() ) :
    5651        echo '<div class="single-featured-image-header">';
    5752        echo get_the_post_thumbnail( get_queried_object_id(), 'twentyseventeen-featured-image' );
  • twentyseventeen/3.7/readme.txt

    r223027 r235019  
    22Contributors: wordpressdotorg
    33Requires at least: 4.7
    4 Tested up to: 6.5
     4Tested up to: 6.6
    55Requires PHP: 5.2.4
    6 Version: 3.6
     6Version: 3.7
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7676== Changelog ==
    7777
     78= 3.7 =
     79* Released: July 16, 2024
     80
     81https://wordpress.org/documentation/article/twenty-seventeen-changelog/#Version_3.7
     82
    7883= 3.6 =
    7984* Released: April 2, 2024
  • twentyseventeen/3.7/style.css

    r223027 r235019  
    55Author URI: https://wordpress.org/
    66Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device.
    7 Version: 3.6
    8 Tested up to: 6.5
     7Version: 3.7
     8Tested up to: 6.6
    99Requires at least: 4.7
    1010Requires PHP: 5.2.4
Note: See TracChangeset for help on using the changeset viewer.