Changeset 51294 for trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php
- Timestamp:
- 07/01/2021 12:58:34 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php
r51246 r51294 16 16 * Instantiate the object. 17 17 * 18 * @access public19 *20 18 * @since Twenty Twenty-One 1.0 21 19 */ … … 49 47 /** 50 48 * Editor custom color variables & scripts. 51 *52 * @access public53 49 * 54 50 * @since Twenty Twenty-One 1.0 … … 89 85 * Enqueue scripts and styles. 90 86 * 91 * @access public92 *93 87 * @since Twenty Twenty-One 1.0 94 88 * … … 108 102 /** 109 103 * Enqueue scripts for the customizer. 110 *111 * @access public112 104 * 113 105 * @since Twenty Twenty-One 1.0 … … 131 123 * Register customizer options. 132 124 * 133 * @access public134 *135 125 * @since Twenty Twenty-One 1.0 136 126 * 137 127 * @param WP_Customize_Manager $wp_customize Theme Customizer object. 138 *139 128 * @return void 140 129 */ … … 223 212 * Calculate classes for the main <html> element. 224 213 * 225 * @access public226 *227 214 * @since Twenty Twenty-One 1.0 228 215 * 229 216 * @param string $classes The classes for <html> element. 230 *231 217 * @return string 232 218 */ … … 248 234 * Adds a class to the <body> element in the editor to accommodate dark-mode. 249 235 * 250 * @access public251 *252 236 * @since Twenty Twenty-One 1.0 253 237 * 254 238 * @param string $classes The admin body-classes. 255 *256 239 * @return string 257 240 */ … … 280 263 /** 281 264 * Determine if we want to print the dark-mode switch or not. 282 *283 * @access public284 265 * 285 266 * @since Twenty Twenty-One 1.0 … … 299 280 * Add night/day switch. 300 281 * 301 * @access public302 *303 282 * @since Twenty Twenty-One 1.0 304 283 * … … 318 297 * Inspired from https://codepen.io/aaroniker/pen/KGpXZo (MIT-licensed) 319 298 * 320 * @access public321 *322 299 * @since Twenty Twenty-One 1.0 323 300 * 324 301 * @param array $attrs The attributes to add to our <button> element. 325 *326 302 * @return void 327 303 */ … … 379 355 * Print the dark-mode switch script. 380 356 * 381 * @access public382 *383 357 * @since Twenty Twenty-One 1.0 384 358 * … … 394 368 * Adds information to the privacy policy. 395 369 * 396 * @access public397 *398 370 * @since Twenty Twenty-One 1.0 399 371 *
Note: See TracChangeset
for help on using the changeset viewer.