wordpress/wp-content/themes/basic/themify/customizer/class-themify-control.php
/**
     * Displays the control to pick a color and its opacity.
     *
     * @param       $values
     * @param array $args
     */
Displays the control to pick a color and its opacity.
@param       $values
@param array $args
Displays the control to pick a color and its opacity . @param $values @param array $args
function render_color($values, $args = array()) {
        $defaults = array(
            'transparent' => true,
            'side_label' => false,
            'color_label' => __('Color', 'themify'),
        );
        $args = wp_parse_args($args, $defaults);
        $color = isset($values->color) ? $values->color : '';
        $opacity = isset($values->opacity) ? $values->opacity : '';
        $color_id = $this->id . '_color_picker';
        $transparent = isset($values->transparent) ? $values->transparent : '';
        ?>
        <!-- Color & Opacity -->
        <div class="color-picker">
            <input type="text" class="color-select" value="<?php echo esc_attr($color); ?>" data-opacity="<?php echo esc_attr($opacity); ?>" id="<?php echo esc_attr($color_id); ?>"/>
            <a class="remove-color tf_close" href="#" <?php echo ( '' != $color || '' != $opacity ) ? 'style="display:inline"' : ''; ?> ></a>
            <?php if (true == $args['side_label']) : ?>
                <label for="<?php echo esc_attr($color_id); ?>" class="color-picker-label"><?php echo esc_html($args['color_label']); ?></label>
            <?php endif; ?>
        </div>
        <?php if (true == $args['transparent']) : ?>
            <!-- CSS color: transparent property -->
            <?php $transparent_id = $this->id . '_transparent'; ?>
            <label class="color-label" for="<?php echo esc_attr($transparent_id); ?>">
                <input id="<?php echo esc_attr($transparent_id); ?>" type="checkbox" class="color-transparent" <?php checked($transparent, 'transparent'); ?> value="transparent"/>
                <?php _e('Transparent', 'themify'); ?>
            </label>
        <?php endif; ?>
        <?php
    }
function render_color ( $ values , $ args = array ( ) ) { $ defaults = array ( 'transparent' => true , 'side_label' => false , 'color_label' => __ ( 'Color' , 'themify' ) , ) ; $ args = wp_parse_args ( $ args , $ defaults ) ; $ color = isset ( $ values -> color ) ? $ values -> color : '' ; $ opacity = isset ( $ values -> opacity ) ? $ values -> opacity : '' ; $ color_id = $ this -> id . '_color_picker' ; $ transparent = isset ( $ values -> transparent ) ? $ values -> transparent : '' ; ?> <!-- Color & Opacity -->
        <div class="color-picker">
            <input type="text" class="color-select" value=" <?php echo esc_attr ( $ color ) ; ?> " data-opacity=" <?php echo esc_attr ( $ opacity ) ; ?> " id=" <?php echo esc_attr ( $ color_id ) ; ?> "/>
            <a class="remove-color tf_close" href="#"  <?php echo ( '' != $ color || '' != $ opacity ) ? 'style="display:inline"' : '' ; ?> ></a>
             <?php if ( true == $ args [ 'side_label' ] ) : ?> <label for=" <?php echo esc_attr ( $ color_id ) ; ?> " class="color-picker-label"> <?php echo esc_html ( $ args [ 'color_label' ] ) ; ?> </label>
             <?php endif ; ?> </div>

         <?php if ( true == $ args [ 'transparent' ] ) : ?> <!-- CSS color: transparent property -->
             <?php $ transparent_id = $ this -> id . '_transparent' ; ?> <label class="color-label" for=" <?php echo esc_attr ( $ transparent_id ) ; ?> ">
                <input id=" <?php echo esc_attr ( $ transparent_id ) ; ?> " type="checkbox" class="color-transparent"  <?php checked ( $ transparent , 'transparent' ) ; ?> value="transparent"/>
                 <?php _e ( 'Transparent' , 'themify' ) ; ?> </label>
         <?php endif ; ?> <?php }
Displays the control to pick a color and its opacity.
Displays the control to pick a color and its opacity .
// Color & Opacity // Transparent Color // transparent 