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'; $show_opacity = 'true'; // Begin the output. ?> link(); ?> /> $r, 'g' => $g, 'b' => $b, 'a' => 1)) . ')'; } return strpos(trim($color), 'rgb') !== false ? $color : false; } endif; if( is_admin() and !function_exists('appzend_color_translation_text')){ add_action( 'wp_default_scripts', 'appzend_color_translation_text' ); function appzend_color_translation_text( $scripts ){ $scripts->add( 'wp-color-picker', "/wp-admin/js/color-picker.js", array( 'iris' ), false, 1 ); did_action( 'init' ) && $scripts->localize( 'wp-color-picker', 'wpColorPickerL10n', array( 'clear' => __( 'Clear', 'appzend' ), 'clearAriaLabel' => __( 'Clear color', 'appzend' ), 'defaultString' => __( 'Default' , 'appzend' ), 'defaultAriaLabel' => __( 'Select default color', 'appzend' ), 'pick' => __( 'Select Color' , 'appzend' ), 'defaultLabel' => __( 'Color value' , 'appzend' ), ) ); } }