Changeset 56118 for trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php
- Timestamp:
- 06/30/2023 12:52:05 PM (23 months ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.