Changeset 51294 for trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-custom-colors.php
- Timestamp:
- 07/01/2021 12:58:34 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-custom-colors.php
r51236 r51294 15 15 /** 16 16 * Instantiate the object. 17 *18 * @access public19 17 * 20 18 * @since Twenty Twenty-One 1.0 … … 35 33 * Determine the luminance of the given color and then return #fff or #000 so that the text is always readable. 36 34 * 37 * @ access public35 * @since Twenty Twenty-One 1.0 38 36 * 39 37 * @param string $background_color The background color. 40 *41 * @since Twenty Twenty-One 1.042 *43 38 * @return string (hex color) 44 39 */ … … 54 49 * The code below needs to be updated, because the colors are no longer theme mods. 55 50 * 56 * @access public57 *58 51 * @since Twenty Twenty-One 1.0 59 52 * 60 53 * @param string|null $context Can be "editor" or null. 61 *62 54 * @return string 63 55 */ … … 88 80 * Customizer & frontend custom color variables. 89 81 * 90 * @access public91 *92 82 * @since Twenty Twenty-One 1.0 93 83 * … … 102 92 /** 103 93 * Editor custom color variables. 104 *105 * @access public106 94 * 107 95 * @since Twenty Twenty-One 1.0 … … 128 116 * @static 129 117 * 130 * @access public131 *132 118 * @since Twenty Twenty-One 1.0 133 119 * 134 120 * @param string $hex The HEX color. 135 *136 121 * @return int Returns a number (0-255). 137 122 */ … … 159 144 * Adds a class to <body> if the background-color is dark. 160 145 * 161 * @access public162 *163 146 * @since Twenty Twenty-One 1.0 164 147 * 165 148 * @param array $classes The existing body classes. 166 *167 149 * @return array 168 150 */
Note: See TracChangeset
for help on using the changeset viewer.