Changeset 56118
- Timestamp:
- 06/30/2023 12:52:05 PM (15 months ago)
- Location:
- trunk/src/wp-content/themes/twentytwentyone
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php
r55633 r56118 14 14 15 15 /** 16 * Instantiate the object.16 * Instantiates the object. 17 17 * 18 18 * @since Twenty Twenty-One 1.0 … … 46 46 47 47 /** 48 * E ditor custom color variables & scripts.48 * Enqueues editor custom color variables & scripts. 49 49 * 50 50 * @since Twenty Twenty-One 1.0 … … 83 83 84 84 /** 85 * Enqueue scripts and styles.85 * Enqueues scripts and styles. 86 86 * 87 87 * @since Twenty Twenty-One 1.0 … … 101 101 102 102 /** 103 * Enqueue scripts for the customizer.103 * Enqueues scripts for the customizer. 104 104 * 105 105 * @since Twenty Twenty-One 1.0 … … 121 121 122 122 /** 123 * Register customizer options.123 * Registers customizer options. 124 124 * 125 125 * @since Twenty Twenty-One 1.0 … … 210 210 211 211 /** 212 * Calculate classes for the main <html> element.212 * Calculates classes for the main <html> element. 213 213 * 214 214 * @since Twenty Twenty-One 1.0 … … 236 236 * @since Twenty Twenty-One 1.0 237 237 * 238 * @global WP_Screen $current_screen WordPress current screen object. 239 * 238 240 * @param string $classes The admin body-classes. 239 241 * @return string … … 262 264 263 265 /** 264 * Determine if we want to print the dark-mode switch or not. 265 * 266 * @since Twenty Twenty-One 1.0 266 * Determines if we want to print the dark-mode switch or not. 267 * 268 * @since Twenty Twenty-One 1.0 269 * 270 * @global bool $is_IE 267 271 * 268 272 * @return bool … … 278 282 279 283 /** 280 * Add night/day switch.284 * Adds night/day switch. 281 285 * 282 286 * @since Twenty Twenty-One 1.0 … … 293 297 294 298 /** 295 * Print the dark-mode switch HTML.299 * Prints the dark-mode switch HTML. 296 300 * 297 301 * Inspired from https://codepen.io/aaroniker/pen/KGpXZo (MIT-licensed) … … 353 357 354 358 /** 355 * Print the dark-mode switch script.359 * Prints the dark-mode switch script. 356 360 * 357 361 * @since Twenty Twenty-One 1.0 -
trunk/src/wp-content/themes/twentytwentyone/functions.php
r55929 r56118 340 340 341 341 /** 342 * Register widget area.342 * Registers widget area. 343 343 * 344 344 * @since Twenty Twenty-One 1.0 … … 365 365 366 366 /** 367 * Set the content width in pixels, based on the theme's design and stylesheet.367 * Sets the content width in pixels, based on the theme's design and stylesheet. 368 368 * 369 369 * Priority 0 to make it available to lower priority callbacks. … … 384 384 385 385 /** 386 * Enqueue scripts and styles. 387 * 388 * @since Twenty Twenty-One 1.0 386 * Enqueues scripts and styles. 387 * 388 * @since Twenty Twenty-One 1.0 389 * 390 * @global bool $is_IE 391 * @global WP_Scripts $wp_scripts 389 392 * 390 393 * @return void … … 463 466 464 467 /** 465 * Enqueue block editor script.468 * Enqueues block editor script. 466 469 * 467 470 * @since Twenty Twenty-One 1.0 … … 477 480 478 481 /** 479 * Fix skip link focus in IE11.482 * Fixes skip link focus in IE11. 480 483 * 481 484 * This does not enqueue the script because it is tiny and because it is only for IE11, … … 505 508 506 509 /** 507 * Enqueue non-latin language styles.510 * Enqueues non-latin language styles. 508 511 * 509 512 * @since Twenty Twenty-One 1.0 … … 551 554 552 555 /** 553 * Enqueue scripts for the customizer preview.556 * Enqueues scripts for the customizer preview. 554 557 * 555 558 * @since Twenty Twenty-One 1.0 … … 577 580 578 581 /** 579 * Enqueue scripts for the customizer.582 * Enqueues scripts for the customizer. 580 583 * 581 584 * @since Twenty Twenty-One 1.0 … … 596 599 597 600 /** 598 * Calculate classes for the main <html> element.601 * Calculates classes for the main <html> element. 599 602 * 600 603 * @since Twenty Twenty-One 1.0 … … 618 621 619 622 /** 620 * Add "is-IE" class to body if the user is on Internet Explorer.623 * Adds "is-IE" class to body if the user is on Internet Explorer. 621 624 * 622 625 * @since Twenty Twenty-One 1.0
Note: See TracChangeset
for help on using the changeset viewer.