Changeset 60537
- Timestamp:
- 08/04/2025 08:53:04 PM (6 months ago)
- Location:
- trunk/src/wp-content/themes/twentytwentyone
- Files:
-
- 25 edited
-
assets/js/customize-helpers.js (modified) (2 diffs)
-
assets/js/editor-dark-mode-support.js (modified) (1 diff)
-
assets/js/primary-navigation.js (modified) (4 diffs)
-
assets/js/responsive-embeds.js (modified) (1 diff)
-
classes/class-twenty-twenty-one-custom-colors.php (modified) (4 diffs)
-
classes/class-twenty-twenty-one-customize-color-control.php (modified) (3 diffs)
-
classes/class-twenty-twenty-one-customize.php (modified) (5 diffs)
-
image.php (modified) (1 diff)
-
inc/back-compat.php (modified) (1 diff)
-
inc/block-patterns.php (modified) (2 diffs)
-
inc/block-styles.php (modified) (1 diff)
-
inc/custom-css.php (modified) (1 diff)
-
inc/menu-functions.php (modified) (1 diff)
-
inc/template-functions.php (modified) (5 diffs)
-
inc/template-tags.php (modified) (1 diff)
-
template-parts/excerpt/excerpt-aside.php (modified) (1 diff)
-
template-parts/excerpt/excerpt-audio.php (modified) (1 diff)
-
template-parts/excerpt/excerpt-chat.php (modified) (1 diff)
-
template-parts/excerpt/excerpt-gallery.php (modified) (1 diff)
-
template-parts/excerpt/excerpt-image.php (modified) (1 diff)
-
template-parts/excerpt/excerpt-link.php (modified) (1 diff)
-
template-parts/excerpt/excerpt-quote.php (modified) (1 diff)
-
template-parts/excerpt/excerpt-status.php (modified) (1 diff)
-
template-parts/excerpt/excerpt-video.php (modified) (1 diff)
-
template-parts/excerpt/excerpt.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwentyone/assets/js/customize-helpers.js
r51304 r60537 1 1 /** 2 * Get luminance from a HEX color.2 * Gets luminance from a HEX color. 3 3 * 4 4 * @since Twenty Twenty-One 1.0 … … 14 14 15 15 /** 16 * Get RGB from HEX.16 * Gets RGB from HEX. 17 17 * 18 18 * @since Twenty Twenty-One 1.0 -
trunk/src/wp-content/themes/twentytwentyone/assets/js/editor-dark-mode-support.js
r51246 r60537 7 7 8 8 /** 9 * Once the editor loads, add the dark mode class.9 * Adds the dark mode class once the editor loads. 10 10 * 11 * Wait for the editor to load by periodically checking for an element, then we addthe classes.11 * Waits for the editor to load by periodically checking for an element, then adds the classes. 12 12 * 13 13 * @since Twenty Twenty-One 1.0 -
trunk/src/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js
r60352 r60537 6 6 7 7 /** 8 * Toggle an attribute's value8 * Toggles an attribute's value 9 9 * 10 10 * @since Twenty Twenty-One 1.0 … … 67 67 68 68 /** 69 * Handle clicks on submenu toggles.69 * Handles clicks on submenu toggles. 70 70 * 71 71 * @since Twenty Twenty-One 1.0 … … 135 135 136 136 /** 137 * Trap keyboard navigation in the menu modal.137 * Traps keyboard navigation in the menu modal. 138 138 * Adapted from Twenty Twenty. 139 139 * … … 181 181 182 182 /** 183 * Close menu and scrollto anchor when an anchor link is clicked.183 * Closes menu and scrolls to anchor when an anchor link is clicked. 184 184 * Adapted from Twenty Twenty. 185 185 * -
trunk/src/wp-content/themes/twentytwentyone/assets/js/responsive-embeds.js
r51246 r60537 6 6 7 7 /** 8 * Add max-width & max-height to <iframe> elements, depending on their width & height props.8 * Adds max-width & max-height to <iframe> elements, depending on their width & height props. 9 9 * 10 10 * @since Twenty Twenty-One 1.0 -
trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-custom-colors.php
r56300 r60537 14 14 15 15 /** 16 * Instantiate the object.16 * Instantiates the object. 17 17 * 18 18 * @since Twenty Twenty-One 1.0 … … 31 31 32 32 /** 33 * Determine the luminance of the given color and then return#fff or #000 so that the text is always readable.33 * Determines the luminance of the given color and then returns #fff or #000 so that the text is always readable. 34 34 * 35 35 * @since Twenty Twenty-One 1.0 … … 43 43 44 44 /** 45 * Generate color variables.45 * Generates color variables. 46 46 * 47 * Adjust the color value of the CSS variables depending on the background color theme mod.47 * Adjusts the color value of the CSS variables depending on the background color theme mod. 48 48 * Both text and link colors needs to be updated. 49 49 * The code below needs to be updated, because the colors are no longer theme mods. … … 112 112 113 113 /** 114 * Get luminance from a HEX color.114 * Gets luminance from a HEX color. 115 115 * 116 116 * @static -
trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-customize-color-control.php
r51294 r60537 26 26 27 27 /** 28 * Colorpicker palette 28 * Colorpicker palette. 29 29 * 30 30 * @since Twenty Twenty-One 1.0 … … 35 35 36 36 /** 37 * Enqueue control related scripts/styles.37 * Enqueues control related scripts/styles. 38 38 * 39 39 * @since Twenty Twenty-One 1.0 … … 55 55 56 56 /** 57 * Refresh the parameters passed to the JavaScript via JSON.57 * Refreshes the parameters passed to the JavaScript via JSON. 58 58 * 59 59 * @since Twenty Twenty-One 1.0 -
trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-customize.php
r56559 r60537 17 17 18 18 /** 19 * Constructor. Instantiate the object.19 * Constructor. Instantiates the object. 20 20 * 21 21 * @since Twenty Twenty-One 1.0 … … 26 26 27 27 /** 28 * Register customizer options.28 * Registers customizer options. 29 29 * 30 30 * @since Twenty Twenty-One 1.0 … … 145 145 146 146 /** 147 * Sanitize boolean for checkbox.147 * Sanitizes a boolean for checkbox. 148 148 * 149 149 * @since Twenty Twenty-One 1.0 … … 157 157 158 158 /** 159 * Render the site title for the selective refresh partial.159 * Renders the site title for the selective refresh partial. 160 160 * 161 161 * @since Twenty Twenty-One 1.0 … … 168 168 169 169 /** 170 * Render the site tagline for the selective refresh partial.170 * Renders the site tagline for the selective refresh partial. 171 171 * 172 172 * @since Twenty Twenty-One 1.0 -
trunk/src/wp-content/themes/twentytwentyone/image.php
r55276 r60537 23 23 <?php 24 24 /** 25 * Filter the default image attachment size.25 * Filters the default image attachment size. 26 26 * 27 27 * @since Twenty Twenty-One 1.0 -
trunk/src/wp-content/themes/twentytwentyone/inc/back-compat.php
r49826 r60537 13 13 14 14 /** 15 * Display upgrade notice on theme switch.15 * Displays upgrade notice on theme switch. 16 16 * 17 17 * @since Twenty Twenty-One 1.0 -
trunk/src/wp-content/themes/twentytwentyone/inc/block-patterns.php
r56548 r60537 13 13 if ( function_exists( 'register_block_pattern_category' ) ) { 14 14 /** 15 * Register Block Pattern Category.15 * Registers Block Pattern Category. 16 16 * 17 17 * @since Twenty Twenty-One 1.0 … … 33 33 if ( function_exists( 'register_block_pattern' ) ) { 34 34 /** 35 * Register Block Pattern.35 * Registers Block Pattern. 36 36 * 37 37 * @since Twenty Twenty-One 1.0 -
trunk/src/wp-content/themes/twentytwentyone/inc/block-styles.php
r49826 r60537 12 12 if ( function_exists( 'register_block_style' ) ) { 13 13 /** 14 * Register block styles.14 * Registers block styles. 15 15 * 16 16 * @since Twenty Twenty-One 1.0 -
trunk/src/wp-content/themes/twentytwentyone/inc/custom-css.php
r53284 r60537 9 9 10 10 /** 11 * Generate CSS.11 * Generates CSS. 12 12 * 13 13 * @since Twenty Twenty-One 1.0 -
trunk/src/wp-content/themes/twentytwentyone/inc/menu-functions.php
r58293 r60537 14 14 15 15 /** 16 * Add a button to top-level menu items that has sub-menus.16 * Adds a button to top-level menu items that has sub-menus. 17 17 * An icon is added using CSS depending on the value of aria-expanded. 18 18 * -
trunk/src/wp-content/themes/twentytwentyone/inc/template-functions.php
r57277 r60537 54 54 55 55 /** 56 * Add a pingback url auto-discovery header for single posts, pages, or attachments.56 * Adds a pingback url auto-discovery header for single posts, pages, or attachments. 57 57 * 58 58 * @since Twenty Twenty-One 1.0 … … 68 68 69 69 /** 70 * Remove the `no-js` class from body if JS is supported.70 * Removes the `no-js` class from body if JS is supported. 71 71 * 72 72 * @since Twenty Twenty-One 1.0 … … 216 216 217 217 /** 218 * Get custom CSS.218 * Gets custom CSS. 219 219 * 220 220 * Return CSS for non-latin language, if available, or null … … 344 344 345 345 /** 346 * Print the first instance of a block in the content, and then break away.346 * Prints the first instance of a block in the content, and then break away. 347 347 * 348 348 * @since Twenty Twenty-One 1.0 … … 407 407 408 408 /** 409 * Retrieve protected post password form content.409 * Retrieves protected post password form content. 410 410 * 411 411 * @since Twenty Twenty-One 1.0 -
trunk/src/wp-content/themes/twentytwentyone/inc/template-tags.php
r57991 r60537 213 213 if ( ! function_exists( 'twenty_twenty_one_the_posts_navigation' ) ) { 214 214 /** 215 * Print the next and previous posts navigation.215 * Prints the next and previous posts navigation. 216 216 * 217 217 * @since Twenty Twenty-One 1.0 -
trunk/src/wp-content/themes/twentytwentyone/template-parts/excerpt/excerpt-aside.php
r49826 r60537 1 1 <?php 2 2 /** 3 * Show the appropriate content for the Aside post format.3 * Shows the appropriate content for the Aside post format. 4 4 * 5 5 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ -
trunk/src/wp-content/themes/twentytwentyone/template-parts/excerpt/excerpt-audio.php
r49826 r60537 1 1 <?php 2 2 /** 3 * Show the appropriate content for the Audio post format.3 * Shows the appropriate content for the Audio post format. 4 4 * 5 5 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ -
trunk/src/wp-content/themes/twentytwentyone/template-parts/excerpt/excerpt-chat.php
r49826 r60537 1 1 <?php 2 2 /** 3 * Show the appropriate content for the Chat post format.3 * Shows the appropriate content for the Chat post format. 4 4 * 5 5 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ -
trunk/src/wp-content/themes/twentytwentyone/template-parts/excerpt/excerpt-gallery.php
r49826 r60537 1 1 <?php 2 2 /** 3 * Show the appropriate content for the Gallery post format.3 * Shows the appropriate content for the Gallery post format. 4 4 * 5 5 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ -
trunk/src/wp-content/themes/twentytwentyone/template-parts/excerpt/excerpt-image.php
r49826 r60537 1 1 <?php 2 2 /** 3 * Show the appropriate content for the Image post format.3 * Shows the appropriate content for the Image post format. 4 4 * 5 5 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ -
trunk/src/wp-content/themes/twentytwentyone/template-parts/excerpt/excerpt-link.php
r49826 r60537 1 1 <?php 2 2 /** 3 * Show the appropriate content for the Link post format.3 * Shows the appropriate content for the Link post format. 4 4 * 5 5 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ -
trunk/src/wp-content/themes/twentytwentyone/template-parts/excerpt/excerpt-quote.php
r49826 r60537 1 1 <?php 2 2 /** 3 * Show the appropriate content for the Quote post format.3 * Shows the appropriate content for the Quote post format. 4 4 * 5 5 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ -
trunk/src/wp-content/themes/twentytwentyone/template-parts/excerpt/excerpt-status.php
r49826 r60537 1 1 <?php 2 2 /** 3 * Show the appropriate content for the Status post format.3 * Shows the appropriate content for the Status post format. 4 4 * 5 5 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ -
trunk/src/wp-content/themes/twentytwentyone/template-parts/excerpt/excerpt-video.php
r49826 r60537 1 1 <?php 2 2 /** 3 * Show the appropriate content for the Video post format.3 * Shows the appropriate content for the Video post format. 4 4 * 5 5 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ -
trunk/src/wp-content/themes/twentytwentyone/template-parts/excerpt/excerpt.php
r49826 r60537 1 1 <?php 2 2 /** 3 * Show the excerpt.3 * Shows the excerpt. 4 4 * 5 5 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
Note: See TracChangeset
for help on using the changeset viewer.