芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/optimyar/wp-content/plugins/elementor-extras/includes/controls/snazzy.php
[ 'key' => $plugin->settings->get_option( 'snazzy_maps_api_key', 'elementor_extras_apis', false ), 'endpoint' => $plugin->settings->get_option( 'snazzy_maps_endpoint', 'elementor_extras_apis', false ) || 'explore', 'term' => 'color', ], 'label_block' => true, ]; } /** * Render select2 control output in the editor. * * Used to generate the control HTML in the editor using Underscore JS * template. The variables for the class are available using `data` JS * object. * * @since 2.0.0 * @access public */ public function content_template() { $control_uid = $this->get_control_uid(); ?> <# if ( data.snazzy_options.key ) { #>
{{{ data.label }}}
<# if ( data.controlValue ) { var value = JSON.parse( data.controlValue ); #>
{{{ value.name }}}
<# } #>
<# if ( data.description ) { #>
{{{ data.description }}}
<# } #> <# } else { #>
', '' ); ?>
<# } #>