null, 'input_attrs' => null, 'id' => null, 'text' => null, 'icon' => null, 'unit' => null, 'wrap_class' => null, 'link' => 'default', ) ); foreach ( $args as $key => $value ) { $normalized[ $key ] = ( isset( $this->{$key} ) && is_null( $args[ $key ] ) ) ? $this->{$key} : $value; } return $normalized; } /** * Build wrap class for element * * @param array $args Method arguments associative array. */ protected function wrap_class( $args = array() ) { $classes = ''; // Check if element has addon: text, icon, unit. foreach ( array( 'text', 'icon', 'unit' ) as $addon ) { if ( ! empty( $args[ $addon ] ) ) { $classes .= 'sc-element-has-' . $addon . ' '; } } // Check if element has custom wrap class. if ( ! empty( $args['wrap_class'] ) ) { $classes .= $args['wrap_class'] . ' '; } return $classes; } /** * Renders the control wrapper and calls $this->render_content() for the internals. * * @since 1.1.6 */ public function render() { $class = 'customize-control customize-control-' . $this->type . ' ' . $this->column; $bst_control_id = str_replace("]","", $this->id); $bst_control_id = str_replace("[","-", $bst_control_id); ?>
  • render_content(); $this->render_condition(); ?>
  • condition ) ) { return; } $condition = $this->condition; $relation = 'AND'; if ( isset( $condition['relation'] ) && ! empty( $condition['relation'] ) ) { $relation = strtoupper( $condition['relation'] ); unset( $condition['relation'] ); } ?> label; } if ( ! empty( $label ) ) { ?> description ) ) { ?> description ); ?> text; } if ( ! empty( $text ) ) { ?> icon; } if ( ! empty( $icon ) ) { ?> unit; } if ( ! empty( $unit ) ) { ?> $value ) { echo esc_html( $attr ) . '="' . esc_attr( $value ) . '" '; } } /** * Render the control's form input element. * * @param array $args Method arguments associative array. * @see self::normalize_args(); */ protected function render_input( $args = array() ) { $args = $this->normalize_args( wp_parse_args( $args, array( 'input_type' => 'text', 'value' => $this->value(), ) ) ); ?>
    render_input_group_text( $args['text'] ); $this->render_input_group_icon( $args['icon'] ); ?> render_input_attrs( $args['input_attrs'] ); ?> value="" link( $args['link'] ); ?> placeholder=""/> render_input_group_unit( $args['unit'] ); ?>
    normalize_args( wp_parse_args( $args, array( 'selected' => $this->value(), ) ) ); ?>
    render_input_group_text( $args['text'] ); $this->render_input_group_icon( $args['icon'] ); ?> render_input_group_unit( $args['unit'] ); ?>
    value() ) ? explode( ',', $this->value() ) : $this->value(); $classes = 'sc-checkbox-' . $input_type; ?>
    $label ) { ?>
    link(); ?> value="" />
    normalize_args( wp_parse_args( $args, array( 'selected' => $this->value(), 'input_type' => 'button', ) ) ); ?>
    $label ) { $class = ' sc-radio-item '; if ( $value === $args['selected'] ) { $class .= ' sc-selected '; } echo ' $option_data_value ) { if ( 'label' !== $option_data_key ) { echo ' ' . esc_html( $option_data_key ) . '="' . esc_attr( $option_data_value ) . '"'; } } $label = isset( $label['label'] ) ? $label['label'] : $value; } echo '>'; switch ( $args['input_type'] ) { case 'image': echo ''; break; case 'icon': echo ''; break; default: echo esc_html( $label ); break; } echo ''; } ?>
    link( $args['link'] ); ?> render_input_attrs( $args['input_attrs'] ); ?> />
    ' . esc_html( $sublable ) . ''; } ?>
    link(); ?> >
    normalize_args( wp_parse_args( $args, array( 'value' => $this->value(), ) ) ); ?>
    render_input_group_text( $args['text'] ); ?>
    normalize_args( wp_parse_args( $args, array( 'value' => $this->value(), ) ) ); ?>