input_attrs as $attr => $value) { echo $attr . '="' . esc_attr($value) . '" '; } } public function enqueue() { wp_enqueue_script('alpha-color-picker-js',get_template_directory_uri() . '/fst-framework/fst-customizer/assets/js/alpha-color-picker.js',array( 'jquery', 'wp-color-picker' ),'1.0.0',true); wp_enqueue_style('alpha-color-picker-css',get_template_directory_uri() . '/fst-framework/fst-customizer/assets/css/alpha-color-picker.css',array( 'wp-color-picker' ),'1.0.0'); } /** * Render the control. */ public function render_content() { // Process the palette if ( is_array( $this->palette ) ) { $palette = implode( '|', $this->palette ); } else { // Default to true. $palette = ( false === $this->palette || 'false' === $this->palette ) ? 'false' : 'true'; } // Support passing show_opacity as string or boolean. Default to true. $show_opacity = ( false === $this->show_opacity || 'false' === $this->show_opacity ) ? 'false' : 'true'; // Begin the output. // Output the label and description if they were passed in. if ( isset( $this->label ) && '' !== $this->label ) { echo '' . sanitize_text_field( $this->label ) . ''; } if ( isset( $this->description ) && '' !== $this->description ) { echo '' . sanitize_text_field( $this->description ) . ''; } ?> link(); ?> input_attrs(); ?> />