id; ?>
label ); ?>
default ) ) { $default = $this->default; } else { $default = $this->setting->default; } $name = '_customize-notice-' . $this->id; ?> label ); ?>
link() ); ?> class="wedev-range-slide" value="value() ); ?>" />
value() ); ?>
id; ?> label ) ? $this->label : ''; echo esc_html( $label.' %s'); ?> 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 }} <# } #>

    <# } #>
  • fields = $fields; $this->asterisk_lite_box_label = $args['asterisk_lite_box_label'] ; $this->asterisk_lite_box_add_control = $args['asterisk_lite_box_add_control']; $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="asterisk-lite-repeater-collector" value="value() ); ?>" /> $value) { if (is_array($value)) { $value = $this->ToObject($value); } $object->$key = $value; } return $object; } private function asterisk_lite_fields_switch(){ $fields = $this->fields; $values = json_decode( $this->value() ); if( is_array( $values ) ){ foreach($values as $value){ ?>
  • asterisk_lite_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 'icons': $icons = asterisk_lite_icons(); ?>
    '; echo '
    '; break; case 'link': echo ''; break; case 'checkbox': echo ''; break; default: break; } ?>
  • json['default'] = $this->setting->default; if ( isset( $this->default ) ) { $this->json['default'] = $this->default; } $this->json['value'] = maybe_unserialize( $this->value() ); $this->json['choices'] = $this->choices; $this->json['link'] = $this->get_link(); $this->json['id'] = $this->id; if ( 'user_meta' === $this->option_type ) { $this->json['value'] = get_user_meta( get_current_user_id(), $this->id, true ); } $this->json['inputAttrs'] = ''; foreach ( $this->input_attrs as $attr => $value ) { $this->json['inputAttrs'] .= $attr . '="' . esc_attr( $value ) . '" '; } $this->json['inputAttrs'] = maybe_serialize( $this->input_attrs() ); } /** * An Underscore (JS) template for this control's content (but not its container). * * Class variables for this control class are available in the `data` JS object; * export custom variables by overriding {@see WP_Customize_Control::to_json()}. * * @see WP_Customize_Control::print_template() * * @access protected */ protected function content_template() { ?> id; ?>
    label ). esc_html__(' Available on Premium Version.', 'asterisk-lite' ); ?>