Changeset 49578
- Timestamp:
- 11/12/2020 07:28:35 PM (4 years ago)
- Location:
- trunk/src/wp-content/themes/twentytwentyone
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-customize.php
r49574 r49578 141 141 'background_color', 142 142 array( 143 'label' => esc_html_x( 'Background Color', 'Customizer control', 'twentytwentyone' ),143 'label' => esc_html_x( 'Background color', 'Customizer control', 'twentytwentyone' ), 144 144 'section' => 'colors', 145 145 'palette' => $colors, -
trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php
r49574 r49578 166 166 'type' => 'checkbox', 167 167 'section' => 'colors', 168 'label' => esc_html__( 'Dark Mode Support', 'twentytwentyone' ),169 'description' => __( 'Respect visitor \'s device dark mode settings.<br>Dark mode is a device setting. If a visitor to your site requests it, your site will be shown with a dark background and light text.<br><br>Dark Mode can also be turned on and off with a button that you can find in the bottom right corner of the page.', 'twentytwentyone' ),168 'label' => esc_html__( 'Dark Mode support', 'twentytwentyone' ), 169 'description' => __( 'Respect visitor’s device dark mode settings.<br>Dark mode is a device setting. If a visitor to your site requests it, your site will be shown with a dark background and light text.<br><br>Dark Mode can also be turned on and off with a button that you can find in the bottom right corner of the page.', 'twentytwentyone' ), 170 170 'active_callback' => function( $value ) { 171 171 return 127 < Twenty_Twenty_One_Custom_Colors::get_relative_luminance_from_hex( get_theme_mod( 'background_color', 'D1E4DD' ) ); … … 403 403 } 404 404 $content = '<p class="privacy-policy-tutorial">' . __( 'Twenty Twenty-One uses LocalStorage when Dark Mode support is enabled.', 'twentytwentyone' ) . '</p>' 405 . '<strong class="privacy-policy-tutorial">' . __( 'Suggested Text:', 'twentytwentyone' ) . '</strong> '405 . '<strong class="privacy-policy-tutorial">' . __( 'Suggested text:', 'twentytwentyone' ) . '</strong> ' 406 406 . __( 'This website uses LocalStorage to save the setting when Dark Mode support is turned on or off.<br> LocalStorage is necessary for the setting to work and is only used when a user clicks on the Dark Mode button.<br> No data is saved in the database or transferred.', 'twentytwentyone' ); 407 407 wp_add_privacy_policy_content( 'Twenty Twenty-One', wp_kses_post( wpautop( $content, false ) ) ); -
trunk/src/wp-content/themes/twentytwentyone/comments.php
r49574 r49578 33 33 <h2 class="comments-title"> 34 34 <?php if ( '1' === $twenty_twenty_one_comment_count ) : ?> 35 <?php esc_html_e( '1 Comment', 'twentytwentyone' ); ?>35 <?php esc_html_e( '1 comment', 'twentytwentyone' ); ?> 36 36 <?php else : ?> 37 37 <?php 38 38 printf( 39 39 /* translators: %s: comment count number. */ 40 esc_html( _nx( '%s Comment', '%s Comments', $twenty_twenty_one_comment_count, 'Comments title', 'twentytwentyone' ) ),40 esc_html( _nx( '%s comment', '%s comments', $twenty_twenty_one_comment_count, 'Comments title', 'twentytwentyone' ) ), 41 41 esc_html( number_format_i18n( $twenty_twenty_one_comment_count ) ) 42 42 ); -
trunk/src/wp-content/themes/twentytwentyone/footer.php
r49574 r49578 22 22 23 23 <?php if ( has_nav_menu( 'footer' ) ) : ?> 24 <nav aria-label="<?php esc_attr_e( 'Secondary Menu', 'twentytwentyone' ); ?>" class="footer-navigation">24 <nav aria-label="<?php esc_attr_e( 'Secondary menu', 'twentytwentyone' ); ?>" class="footer-navigation"> 25 25 <ul class="footer-navigation-wrapper"> 26 26 <?php -
trunk/src/wp-content/themes/twentytwentyone/functions.php
r49574 r49578 74 74 register_nav_menus( 75 75 array( 76 'primary' => esc_html__( 'Primary Menu', 'twentytwentyone' ),77 'footer' => __( 'Secondary Menu', 'twentytwentyone' ),76 'primary' => esc_html__( 'Primary menu', 'twentytwentyone' ), 77 'footer' => __( 'Secondary menu', 'twentytwentyone' ), 78 78 ) 79 79 ); … … 172 172 ), 173 173 array( 174 'name' => esc_html__( 'Extra Large', 'twentytwentyone' ),174 'name' => esc_html__( 'Extra large', 'twentytwentyone' ), 175 175 'shortName' => esc_html_x( 'XL', 'Font size', 'twentytwentyone' ), 176 176 'size' => 40, … … 221 221 ), 222 222 array( 223 'name' => esc_html__( 'Dark Gray', 'twentytwentyone' ),223 'name' => esc_html__( 'Dark gray', 'twentytwentyone' ), 224 224 'slug' => 'dark-gray', 225 225 'color' => $dark_gray, … … 272 272 array( 273 273 array( 274 'name' => esc_html__( 'Purple to Yellow', 'twentytwentyone' ),274 'name' => esc_html__( 'Purple to yellow', 'twentytwentyone' ), 275 275 'gradient' => 'linear-gradient(160deg, ' . $purple . ', ' . $yellow . ')', 276 276 'slug' => 'purple-to-yellow', 277 277 ), 278 278 array( 279 'name' => esc_html__( 'Yellow to Purple', 'twentytwentyone' ),279 'name' => esc_html__( 'Yellow to purple', 'twentytwentyone' ), 280 280 'gradient' => 'linear-gradient(160deg, ' . $yellow . ', ' . $purple . ')', 281 281 'slug' => 'yellow-to-purple', 282 282 ), 283 283 array( 284 'name' => esc_html__( 'Green to Yellow', 'twentytwentyone' ),284 'name' => esc_html__( 'Green to yellow', 'twentytwentyone' ), 285 285 'gradient' => 'linear-gradient(160deg, ' . $green . ', ' . $yellow . ')', 286 286 'slug' => 'green-to-yellow', 287 287 ), 288 288 array( 289 'name' => esc_html__( 'Yellow to Green', 'twentytwentyone' ),289 'name' => esc_html__( 'Yellow to green', 'twentytwentyone' ), 290 290 'gradient' => 'linear-gradient(160deg, ' . $yellow . ', ' . $green . ')', 291 291 'slug' => 'yellow-to-green', 292 292 ), 293 293 array( 294 'name' => esc_html__( 'Red to Yellow', 'twentytwentyone' ),294 'name' => esc_html__( 'Red to yellow', 'twentytwentyone' ), 295 295 'gradient' => 'linear-gradient(160deg, ' . $red . ', ' . $yellow . ')', 296 296 'slug' => 'red-to-yellow', 297 297 ), 298 298 array( 299 'name' => esc_html__( 'Yellow to Red', 'twentytwentyone' ),299 'name' => esc_html__( 'Yellow to red', 'twentytwentyone' ), 300 300 'gradient' => 'linear-gradient(160deg, ' . $yellow . ', ' . $red . ')', 301 301 'slug' => 'yellow-to-red', 302 302 ), 303 303 array( 304 'name' => esc_html__( 'Purple to Red', 'twentytwentyone' ),304 'name' => esc_html__( 'Purple to red', 'twentytwentyone' ), 305 305 'gradient' => 'linear-gradient(160deg, ' . $purple . ', ' . $red . ')', 306 306 'slug' => 'purple-to-red', 307 307 ), 308 308 array( 309 'name' => esc_html__( 'Red to Purple', 'twentytwentyone' ),309 'name' => esc_html__( 'Red to purple', 'twentytwentyone' ), 310 310 'gradient' => 'linear-gradient(160deg, ' . $red . ', ' . $purple . ')', 311 311 'slug' => 'red-to-purple', -
trunk/src/wp-content/themes/twentytwentyone/inc/block-patterns.php
r49574 r49578 31 31 'twentytwentyone/large-text', 32 32 array( 33 'title' => esc_html__( 'Large Text', 'twentytwentyone' ),33 'title' => esc_html__( 'Large text', 'twentytwentyone' ), 34 34 'categories' => array( 'twentytwentyone' ), 35 35 'viewportWidth' => 1440, … … 42 42 'twentytwentyone/links-area', 43 43 array( 44 'title' => esc_html__( 'Links Area', 'twentytwentyone' ),44 'title' => esc_html__( 'Links area', 'twentytwentyone' ), 45 45 'categories' => array( 'twentytwentyone' ), 46 46 'viewportWidth' => 1440, … … 54 54 'twentytwentyone/media-text-article-title', 55 55 array( 56 'title' => esc_html__( 'Media and Text Article Title', 'twentytwentyone' ),56 'title' => esc_html__( 'Media and text article title', 'twentytwentyone' ), 57 57 'categories' => array( 'twentytwentyone' ), 58 58 'viewportWidth' => 1440, … … 66 66 'twentytwentyone/overlapping-images', 67 67 array( 68 'title' => esc_html__( 'Overlapping Images', 'twentytwentyone' ),68 'title' => esc_html__( 'Overlapping images', 'twentytwentyone' ), 69 69 'categories' => array( 'twentytwentyone' ), 70 70 'viewportWidth' => 1024, … … 78 78 'twentytwentyone/two-images-showcase', 79 79 array( 80 'title' => esc_html__( 'Two Images Showcase', 'twentytwentyone' ),80 'title' => esc_html__( 'Two mages showcase', 'twentytwentyone' ), 81 81 'categories' => array( 'twentytwentyone' ), 82 82 'viewportWidth' => 1440, 83 'description' => esc_html_x( 'A Media & Text block with a big image on the left and a smaller one with bordered frame on the right.', 'Block pattern description', 'twentytwentyone' ),83 'description' => esc_html_x( 'A media & text block with a big image on the left and a smaller one with bordered frame on the right.', 'Block pattern description', 'twentytwentyone' ), 84 84 'content' => '<!-- wp:media-text {"mediaId":1747,"mediaLink":"' . esc_url( get_template_directory_uri() ) . '/assets/images/Daffodils.jpg","mediaType":"image"} --><div class="wp-block-media-text alignwide is-stacked-on-mobile"><figure class="wp-block-media-text__media"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/Daffodils.jpg" alt="' . esc_attr__( '“Daffodils” by Berthe Morisot', 'twentytwentyone' ) . '" size-full"/></figure><div class="wp-block-media-text__content"><!-- wp:image {"align":"center","width":400,"height":512,"sizeSlug":"large","className":"is-style-twentytwentyone-image-frame"} --><figure class="wp-block-image aligncenter size-large is-resized is-style-twentytwentyone-image-frame"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/self-portrait-1885.jpg" alt="' . esc_attr__( '“Self portrait” by Berthe Morisot', 'twentytwentyone' ) . '" width="400" height="512"/></figure><!-- /wp:image --></div></div><!-- /wp:media-text -->', 85 85 ) … … 90 90 'twentytwentyone/overlapping-images-and-text', 91 91 array( 92 'title' => esc_html__( 'Overlapping Images and Text', 'twentytwentyone' ),92 'title' => esc_html__( 'Overlapping images and text', 'twentytwentyone' ), 93 93 'categories' => array( 'twentytwentyone' ), 94 94 'viewportWidth' => 1440, … … 102 102 'twentytwentyone/portfolio-list', 103 103 array( 104 'title' => esc_html__( 'Portfolio List', 'twentytwentyone' ),104 'title' => esc_html__( 'Portfolio list', 'twentytwentyone' ), 105 105 'categories' => array( 'twentytwentyone' ), 106 106 'description' => esc_html_x( 'A list of projects with thumbnail images.', 'Block pattern description', 'twentytwentyone' ), … … 112 112 'twentytwentyone/contact-information', 113 113 array( 114 'title' => esc_html__( 'Contact Information', 'twentytwentyone' ),114 'title' => esc_html__( 'Contact information', 'twentytwentyone' ), 115 115 'categories' => array( 'twentytwentyone' ), 116 116 'description' => esc_html_x( 'A block with 3 columns that display contact information and social media links.', 'Block pattern description', 'twentytwentyone' ), -
trunk/src/wp-content/themes/twentytwentyone/inc/block-styles.php
r49216 r49578 105 105 array( 106 106 'name' => 'twentytwentyone-social-icons-color', 107 'label' => esc_html__( 'Dark Gray', 'twentytwentyone' ),107 'label' => esc_html__( 'Dark gray', 'twentytwentyone' ), 108 108 ) 109 109 ); -
trunk/src/wp-content/themes/twentytwentyone/inc/menu-functions.php
r49574 r49578 33 33 $output .= '<span class="icon-plus">' . twenty_twenty_one_get_icon_svg( 'ui', 'plus', 18 ) . '</span>'; 34 34 $output .= '<span class="icon-minus">' . twenty_twenty_one_get_icon_svg( 'ui', 'minus', 18 ) . '</span>'; 35 $output .= '<span class="screen-reader-text">' . esc_html__( 'Open Menu', 'twentytwentyone' ) . '</span>';35 $output .= '<span class="screen-reader-text">' . esc_html__( 'Open menu', 'twentytwentyone' ) . '</span>'; 36 36 $output .= '</button>'; 37 37 } -
trunk/src/wp-content/themes/twentytwentyone/inc/starter-content.php
r49574 r49578 152 152 // Assign a menu to the "primary" location. 153 153 'primary' => array( 154 'name' => esc_html__( 'Primary Menu', 'twentytwentyone' ),154 'name' => esc_html__( 'Primary menu', 'twentytwentyone' ), 155 155 'items' => array( 156 156 'link_home', // Note that the core "home" page is actually a link in case a static front page is not used. … … 163 163 // Assign a menu to the "footer" location. 164 164 'footer' => array( 165 'name' => esc_html__( 'Secondary Menu', 'twentytwentyone' ),165 'name' => esc_html__( 'Secondary menu', 'twentytwentyone' ), 166 166 'items' => array( 167 167 'link_facebook', -
trunk/src/wp-content/themes/twentytwentyone/template-parts/header/site-nav.php
r49574 r49578 11 11 12 12 <?php if ( has_nav_menu( 'primary' ) ) : ?> 13 <nav id="site-navigation" class="primary-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Primary Menu', 'twentytwentyone' ); ?>">13 <nav id="site-navigation" class="primary-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Primary menu', 'twentytwentyone' ); ?>"> 14 14 <div class="menu-button-container"> 15 15 <button id="primary-mobile-menu" class="button" aria-controls="primary-menu-list" aria-expanded="false">
Note: See TracChangeset
for help on using the changeset viewer.