← Back
Editing: ui-field-color.php
<div class="fl-color-picker<# if ( data.field.className ) { #> {{data.field.className}}<# } if ( data.field.show_reset ) { #> fl-color-picker-has-reset<# } #>"> <# if ( ! data.deferRendering ) { #> <button class="fl-color-picker-color<# if ( '' === data.value ) { #> fl-color-picker-empty<# } #><# if ( data.field.show_alpha ) { #> fl-color-picker-alpha-enabled<# } #>"> <svg class="fl-color-picker-icon" width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <g fill-rule="evenodd"> <path d="M17.7037706,2.62786498 L15.3689327,0.292540631 C14.9789598,-0.0975135435 14.3440039,-0.0975135435 13.954031,0.292540631 L10.829248,3.41797472 L8.91438095,1.49770802 L7.4994792,2.91290457 L8.9193806,4.33310182 L0,13.2493402 L0,18 L4.74967016,18 L13.6690508,9.07876094 L15.0839525,10.4989582 L16.4988542,9.08376163 L14.5789876,7.16349493 L17.7037706,4.03806084 C18.0987431,3.64800667 18.0987431,3.01791916 17.7037706,2.62786498 Z M3.92288433,16 L2,14.0771157 L10.0771157,6 L12,7.92288433 L3.92288433,16 Z"></path> </g> </svg> </button> <# if ( data.field.show_reset ) { #> <button class="fl-color-picker-clear"> <svg width="13px" height="13px" viewBox="0 0 13 13" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <g transform="translate(-321.000000, -188.000000)"> <path d="M326.313708,193.313708 L326.313708,186.313708 L328.313708,186.313708 L328.313708,193.313708 L335.313708,193.313708 L335.313708,195.313708 L328.313708,195.313708 L328.313708,202.313708 L326.313708,202.313708 L326.313708,195.313708 L319.313708,195.313708 L319.313708,193.313708 L326.313708,193.313708 Z" transform="translate(327.313708, 194.313708) rotate(-45.000000) translate(-327.313708, -194.313708) "></path> </g> </svg> </button> <# } #> <# } #> <input name="{{data.name}}" type="hidden" value="{{{data.value}}}" class="fl-color-picker-value <# if ( data.deferRendering ) { #>fl-react-color-picker-value<# } #>" /> <# if ( ! data.deferRendering ) { #> <div class="fl-clear"></div> <# } else { #> <div class="picker-mount"></div> <# } #> </div>
Save File
Cancel