value(); $values = json_decode( $v ); wp_enqueue_script( 'json2' ); // Same for all $same = isset( $values->same ) ? $values->same : 'same'; // Units $current_unit = isset( $values->unit ) ? $values->unit : 'px'; $units = array( 'px', '%', 'em' ); if ( 'themify_padding' == $this->type ) { $property = __( 'Padding', 'themify' ); $dimension_type = 'padding'; // Sides $sides = array( 'top' => __( 'Padding Top', 'themify' ), 'right' => __( 'Padding Right', 'themify' ), 'bottom' => __( 'Padding Bottom', 'themify' ), 'left' => __( 'Padding Left', 'themify' ), ); $apply_to_all = __( 'Apply to all padding.', 'themify' ); } else { $property = __( 'Margin', 'themify' ); $dimension_type = 'margin'; // Sides $sides = array( 'top' => __( 'Margin Top', 'themify' ), 'right' => __( 'Margin Right', 'themify' ), 'bottom' => __( 'Margin Bottom', 'themify' ), 'left' => __( 'Margin Left', 'themify' ), ); $apply_to_all = __( 'Apply to all margin.', 'themify' ); } ?> show_label && ! empty( $this->label ) ) : ?> label ); ?> $side_label ) : ?>
width ) ? $values->width : ''; } else { $width = isset( $values->{$side} ) && isset( $values->{$side}->width ) ? $values->{$side}->width : ''; } $id = $this->id . '_' . $dimension_type . '_' . $side; ?>
{$side} ) && isset( $values->{$side}->auto ) ? $values->{$side}->auto : ''; $auto_id = $this->id . '_' . $side . '_auto'; ?> value="auto" data-hide="js-hide-" data-side=""/>
id . '_same'; ?> value="same"/>
link(); ?> value='' type="hidden" class="type ); ?>_control themify-customizer-value-field"/>