Ticket #42078: 42078-class-wp-customize-color-control.php.diff
File 42078-class-wp-customize-color-control.php.diff, 1.4 KB (added by , 7 years ago) |
---|
-
.php
old new 103 103 } 104 104 defaultValueAttr = ' data-default-color=' + defaultValue; // Quotes added automatically. 105 105 } #> 106 <label> 107 <# if ( data.label ) { #> 108 <span class="customize-control-title">{{{ data.label }}}</span> 106 107 <# if ( data.label ) { #> 108 <span class="customize-control-title">{{{ data.label }}}</span> 109 <# } #> 110 <# if ( data.description ) { #> 111 <span class="description customize-control-description">{{{ data.description }}}</span> 112 <# } #> 113 <div class="customize-control-content"> 114 <# if ( isHueSlider ) { #> 115 <input class="color-picker-hue" type="text" data-type="hue" maxlength="3" /> 116 <# } else { #> 117 <input class="color-picker-hex" type="text" maxlength="7" placeholder="{{ defaultValue }}" {{ defaultValueAttr }} /> 109 118 <# } #> 110 <# if ( data.description ) { #> 111 <span class="description customize-control-description">{{{ data.description }}}</span> 112 <# } #> 113 <div class="customize-control-content"> 114 <# if ( isHueSlider ) { #> 115 <input class="color-picker-hue" type="text" data-type="hue" /> 116 <# } else { #> 117 <input class="color-picker-hex" type="text" maxlength="7" placeholder="{{ defaultValue }}" {{ defaultValueAttr }} /> 118 <# } #> 119 </div> 120 </label> 119 </div> 120 121 121 <?php 122 122 } 123 123 }