choices ) ) { return; } $name = '_customize-radio-' . $this->id; ?> label ); ?> description ) ) : ?> description ); ?>
choices as $value => $label ) : ?> link(); checked( $this->value(), $value ); ?>>
choices ) ) { return; } $name = '_customize-radio-' . $this->id; ?> label ); ?> description ) ) : ?> description ); ?>
choices as $value => $fields ) : ?> link(); checked( $this->value(), $value ); ?>>
'; echo '
'.esc_html( $fields['title'] ).'
'; ?> pro_text; $json['pro_url'] = esc_url( $this->pro_url ); $json['notice'] = esc_attr( $this->notice ); $json['nonotice'] = esc_attr( $this->nonotice ); return $json; } /** * Outputs the Underscore.js template. * * @since 1.0.0 * @access public * @return void */ protected function render_template() { ?>
  • <# if ( data.notice ) { #>

    {{ data.title }}

    <# } #> <# if ( !data.notice ) { #>

    {{ data.title }} <# if ( data.pro_text && data.pro_url ) { #> {{ data.pro_text }} <# } #>

    <# } #>
  • id; ?>
    label ). esc_html__(' Available on Premium Version.', 'maizzy' ); ?>
    fields = $fields; $this->maizzy_box_label = $args['maizzy_box_label'] ; $this->maizzy_box_add_control = $args['maizzy_box_add_control']; $this->maizzy_box_add_button = $args['maizzy_box_add_button']; $this->cats = get_categories(array( 'hide_empty' => false )); parent::__construct( $manager, $id, $args ); } public function render_content() { $values = json_decode($this->value()); ?> label ); ?> description){ ?> description); ?> link() ); ?> class="maizzy-repeater-collector" value="value() ); ?>" /> maizzy_box_add_button ) && $this->maizzy_box_add_button ){ ?> $value) { if (is_array($value)) { $value = $this->ToObject($value); } $object->$key = $value; } return $object; } private function maizzy_get_fields(){ $fields = $this->fields; $values = json_decode( $this->value() ); if( is_array( $values ) ){ foreach($values as $value){ ?>
  • maizzy_box_label ); ?>

    $field) { $class = isset($field['class']) ? $field['class'] : ''; ?>
    $key) ? $value->$key : ''; $default = isset($field['default']) ? $field['default'] : ''; switch ($field['type']) { case 'text': echo ''; break; case 'link': echo ''; break; case 'textarea': echo ''; break; case 'select': $options = $field['options']; echo ''; break; case 'checkbox': echo ''; break; case 'selector_color': $options = $field['options']; echo '
    '; echo '
    '; foreach ( $options as $option => $val ){ $class_active = ''; $checked = ''; if( $new_value == '' ){ $new_value = $default; } if( $new_value == $option ){ $class_active = 'radio-active'; $checked = 'checked'; } echo '
    '; echo ''; } echo '
    '; echo ''; echo '
    '; break; case 'seperator': echo ''.esc_html( $field['seperator_text'] ).''; break; case 'colorpicker': echo ''; break; case 'upload': $image = $image_class= ""; if($new_value){ $image = ''; $image_class = ' hidden'; } echo '
    '; echo '
    '; echo '
    '; esc_html_e('No image selected', 'maizzy'); echo '
    '; echo '
    '; echo $image; echo '
    '; echo '
    '; echo ''; echo ''; echo ''; echo '
    '; echo '
    '; echo '
    '; break; default: break; } ?>
  • manager->get_setting( 'ed_header_day_light_mode' )->value(); if( $ed_header_day_light_mode ){ return true; } return false; }