Changeset 235019 for twentyseventeen
- Timestamp:
- 07/16/2024 01:29:55 PM (17 months ago)
- Location:
- twentyseventeen/3.7
- Files:
-
- 8 edited
- 1 copied
-
. (copied) (copied from twentyseventeen/3.6)
-
assets/css/blocks.css (modified) (5 diffs)
-
assets/css/colors-dark.css (modified) (3 diffs)
-
assets/css/editor-blocks.css (modified) (7 diffs)
-
functions.php (modified) (6 diffs)
-
header.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
screenshot.png (modified) (previous)
-
style.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
twentyseventeen/3.7/assets/css/blocks.css
r178729 r235019 167 167 168 168 .wp-block-pullquote { 169 border: 0 ;169 border: 0 solid; 170 170 } 171 171 … … 195 195 .rtl .wp-block-table td { 196 196 text-align: right; 197 } 198 199 /* Calendar */ 200 201 .wp-block-calendar th { 202 text-align: center; 197 203 } 198 204 … … 314 320 315 321 .wp-block-latest-comments article { 316 margin-bottom: 4 em;322 margin-bottom: 4rem; 317 323 } 318 324 … … 336 342 -webkit-box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 1); 337 343 box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 1); 338 339 344 } 340 345 … … 365 370 } 366 371 367 .editor-block-list__block .wp-block-latest-comments__comment-excerpt p {368 font-size: 14px;369 font-size: 0.875rem;370 }371 372 372 /* Query Loop & Post Template */ 373 373 374 374 .wp-block-query .wp-block-post-template > li { 375 375 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; 376 387 } 377 388 -
twentyseventeen/3.7/assets/css/colors-dark.css
r168447 r235019 127 127 .colors-dark .widget ul li a:focus, 128 128 .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); /* Equival ant to #fff */130 box-shadow: inset 0 0 0 rgba(255, 255, 255, 0), 0 3px 0 rgba(255, 255, 255, 1); /* Equival ant 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 */ 131 131 } 132 132 … … 138 138 .colors-dark .posts-navigation a, 139 139 .colors-dark .widget_authors a strong { 140 -webkit-box-shadow: inset 0 -1px 0 rgba(240, 240, 240, 1); /* Equival ant to #f0f0f0 */141 box-shadow: inset 0 -1px 0 rgba(240, 240, 240, 1); /* Equival ant 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 */ 142 142 } 143 143 … … 475 475 .colors-dark .site-footer .widget-area ul li a, 476 476 .colors-dark .site-info a { 477 -webkit-box-shadow: inset 0 -1px 0 rgba(34, 34, 34, 1); /* Equival ant to #222 */478 box-shadow: inset 0 -1px 0 rgba(34, 34, 34, 1); /* Equival ant 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 */ 479 479 } 480 480 -
twentyseventeen/3.7/assets/css/editor-blocks.css
r206168 r235019 459 459 } 460 460 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 { 464 465 font-style: italic; 465 466 margin-bottom: 1.5em; … … 467 468 } 468 469 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 { 470 474 text-align: right; 471 475 } … … 643 647 644 648 .wp-block-pullquote { 645 border: 0 ;649 border: 0 solid; 646 650 } 647 651 … … 704 708 .rtl table.wp-block-table td { 705 709 text-align: right; 710 } 711 712 /* Calendar */ 713 714 .editor-styles-wrapper .wp-block-calendar th { 715 text-align: center; 706 716 } 707 717 … … 772 782 /* Latest Comments */ 773 783 774 .editor-block-list__block ol.wp-block-latest-comments > li:before {775 content: '';776 }777 778 784 .wp-block-latest-comments article { 779 margin-bottom: 4 em;785 margin-bottom: 4rem; 780 786 } 781 787 … … 791 797 } 792 798 793 .editor- block-list__block.wp-block-latest-comments__comment-meta a {799 .editor-styles-wrapper .wp-block-latest-comments__comment-meta a { 794 800 -webkit-box-shadow: none; 795 801 box-shadow: none; … … 807 813 } 808 814 809 .editor-block-list__block .wp-block-latest-comments__comment-excerpt p {810 font-size: 14px;811 font-size: 0.875rem;812 }813 814 815 /* Latest Posts */ 815 816 -
twentyseventeen/3.7/functions.php
r223027 r235019 85 85 * Enable support for Post Formats. 86 86 * 87 * See: https:// wordpress.org/documentation/article/post-formats/87 * See: https://developer.wordpress.org/advanced-administration/wordpress/post-formats/ 88 88 */ 89 89 add_theme_support( … … 453 453 454 454 // Theme stylesheet. 455 wp_enqueue_style( 'twentyseventeen-style', get_stylesheet_uri(), array(), '20240 402' );455 wp_enqueue_style( 'twentyseventeen-style', get_stylesheet_uri(), array(), '20240716' ); 456 456 457 457 // Theme block stylesheet. 458 wp_enqueue_style( 'twentyseventeen-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'twentyseventeen-style' ), '202 20912' );458 wp_enqueue_style( 'twentyseventeen-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'twentyseventeen-style' ), '20240624' ); 459 459 460 460 // Load the dark colorscheme. 461 461 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' ), '20 191025' );462 wp_enqueue_style( 'twentyseventeen-colors-dark', get_theme_file_uri( '/assets/css/colors-dark.css' ), array( 'twentyseventeen-style' ), '20240412' ); 463 463 } 464 464 … … 542 542 function twentyseventeen_block_editor_styles() { 543 543 // Block styles. 544 wp_enqueue_style( 'twentyseventeen-block-editor-style', get_theme_file_uri( '/assets/css/editor-blocks.css' ), array(), '202 30614' );544 wp_enqueue_style( 'twentyseventeen-block-editor-style', get_theme_file_uri( '/assets/css/editor-blocks.css' ), array(), '20240624' ); 545 545 // Add custom fonts. 546 546 $font_version = ( 0 === strpos( (string) twentyseventeen_fonts_url(), get_template_directory_uri() . '/' ) ) ? '20230328' : null; … … 581 581 * 582 582 * @since Twenty Seventeen 1.0 583 * @since Twenty Seventeen 3.7 Added larger image size for small screens. 583 584 * 584 585 * @param string $html The HTML image tag markup being filtered. … … 589 590 function twentyseventeen_header_image_tag( $html, $header, $attr ) { 590 591 if ( isset( $attr['sizes'] ) ) { 591 $html = str_replace( $attr['sizes'], ' 100vw', $html );592 $html = str_replace( $attr['sizes'], '(max-width: 767px) 200vw, 100vw', $html ); 592 593 } 593 594 return $html; … … 690 691 691 692 /** 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 */ 709 function 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 /** 692 715 * Implement the Custom Header feature. 693 716 */ -
twentyseventeen/3.7/header.php
r188111 r235019 48 48 49 49 <?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() ) : 56 51 echo '<div class="single-featured-image-header">'; 57 52 echo get_the_post_thumbnail( get_queried_object_id(), 'twentyseventeen-featured-image' ); -
twentyseventeen/3.7/readme.txt
r223027 r235019 2 2 Contributors: wordpressdotorg 3 3 Requires at least: 4.7 4 Tested up to: 6. 54 Tested up to: 6.6 5 5 Requires PHP: 5.2.4 6 Version: 3. 66 Version: 3.7 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 76 76 == Changelog == 77 77 78 = 3.7 = 79 * Released: July 16, 2024 80 81 https://wordpress.org/documentation/article/twenty-seventeen-changelog/#Version_3.7 82 78 83 = 3.6 = 79 84 * Released: April 2, 2024 -
twentyseventeen/3.7/style.css
r223027 r235019 5 5 Author URI: https://wordpress.org/ 6 6 Description: 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. 68 Tested up to: 6. 57 Version: 3.7 8 Tested up to: 6.6 9 9 Requires at least: 4.7 10 10 Requires PHP: 5.2.4
Note: See TracChangeset
for help on using the changeset viewer.