attr = $attr; $this->label = $args['label']; parent::__construct( $manager, $id, $args ); } /** * Renders the control wrapper and calls $this->render_content() for the internals. * * @see WP_Customize_Control::render() */ protected function render() { $id = 'customize-control-' . str_replace( array( '[', ']' ), array( '-', '' ), $this->id ); $class = 'customize-control has-switchers customize-control-' . $this->type; ?>
  • render_content(); ?>
  • value() ) && ! empty( $this->value() ) ) { $values = json_encode( $this->value() ); } else { $values = $this->value(); } ?> link(); ?> class="appzend-responsive-buttonset-collection-value" value=""/> array( 'icon' => 'dashicons-desktop', ), 'tablet' => array( 'icon' => 'dashicons-tablet', ), 'mobile' => array( 'icon' => 'dashicons-smartphone ', ), ); $attr = $this->attr; if ( is_array( $this->value() ) && ! empty( $this->value() ) ) { $values = $this->value(); } else { $values = json_decode( $this->value(), true ); } ?>
  • " . esc_html( $this->label ) . ''; ?>

    1 ) { ?>
      $device_details ) { if ( $i == 1 ) { $active = ' active'; } else { $active = ''; } ?>
    description ) { ?> description ); ?>
    $device_details ) { if ( $i == 1 ) { $active = ' active'; } else { $active = ''; } echo '
      '; $value = isset( $values[ $device_id ] ) ? $values[ $device_id ] : ''; echo '
    • '; foreach ( $this->choices as $val => $label ) { ?> value=""> '; echo '
    '; $i ++; } ?>
  • register_control_type('AppZend_Responsive_Buttonset'); endif; if ( ! function_exists( 'appzend_sanitize_field_responsive_buttonset' ) ) : /** * Check if Json * * @since 1.2.8 * @param $input ,$setting * @return boolean */ function appzend_sanitize_field_responsive_buttonset( $input ) { $range_value = json_decode( $input, true ); $range_value['desktop'] = ! empty( $range_value['desktop'] ) ? sanitize_text_field( $range_value['desktop'] ) : ''; $range_value['tablet'] = ! empty( $range_value['tablet'] ) ? sanitize_text_field( $range_value['tablet'] ) : ''; $range_value['mobile'] = ! empty( $range_value['mobile'] ) ? sanitize_text_field( $range_value['mobile'] ) : ''; return json_encode( $range_value ); } endif;