- Timestamp:
- 10/11/2013 10:01:14 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/inc/customizer.php
r25762 r25769 1 1 <?php 2 2 /** 3 * Twenty Fourteen Theme Customizer 3 * Twenty Fourteen Theme Customizer support 4 4 * 5 5 * @package WordPress 6 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 7 8 */ 8 9 9 10 /** 10 11 * Add postMessage support for site title and description for the Theme Customizer. 12 * 13 * @since Twenty Fourteen 1.0 11 14 * 12 15 * @param WP_Customize_Manager $wp_customize Theme Customizer object. … … 30 33 31 34 /** 32 * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. 35 * Bind JS handlers to make Theme Customizer preview reload changes asynchronously. 36 * 37 * @since Twenty Fourteen 1.0 33 38 */ 34 39 function twentyfourteen_customize_preview_js() { … … 38 43 39 44 /** 40 * Generates two variants of the accent color, returns the original, and saves the others as theme mods. 45 * Generate two variants of the accent color, return the original, and 46 * save the others as theme mods. 47 * 48 * @since Twenty Fourteen 1.0 41 49 * 42 50 * @param string $color The original color. … … 53 61 54 62 /** 55 * Tweak sthe brightness of a color by adjusting the RGB values by the given interval.63 * Tweak the brightness of a color by adjusting the RGB values by the given interval. 56 64 * 57 65 * Use positive values of $steps to brighten the color and negative values to darken the color. … … 59 67 * is generally maintained unless the number of steps causes one value to be capped at 0 or 255. 60 68 * 69 * @since Twenty Fourteen 1.0 70 * 61 71 * @param string $color The original color, in 3- or 6-digit hexadecimal form. 62 * @param int $steps The number of steps to adjust the color by, in rgbunits.72 * @param int $steps The number of steps to adjust the color by, in RGB units. 63 73 * @return string $color The new color, in 6-digit hexadecimal form. 64 74 */ … … 87 97 88 98 /** 89 * Outputs the css for the Theme Customizer options. 99 * Output the CSS for the Theme Customizer options. 100 * 101 * @since Twenty Fourteen 1.0 102 * 103 * @return void 90 104 */ 91 105 function twentyfourteen_customizer_styles() {
Note: See TracChangeset
for help on using the changeset viewer.