taxonomy = esc_attr( $our_taxonomy );
parent::__construct( $manager, $id, $args );
}
/**
* Render content.
*
* @since 1.0.0
*/
public function render_content() {
$tax_args = array(
'taxonomy' => $this->taxonomy,
);
$categories = get_categories( $tax_args );
$category_list = array();
foreach ( $categories as $category ) {
$category_list[ $category->term_id ] = $category->name;
}
if ( ! empty( $this->label ) ) :
?>
label ); ?>
description ) ) :
?>
description; ?>
value() ) ? explode( ',', $this->value() ) : $this->value();
?>
link(); ?> value="" />
taxonomy = esc_attr( $our_taxonomy );
parent::__construct( $manager, $id, $args );
}
/**
* Render content.
*
* @since 1.0.0
*/
public function render_content() {
$tax_args = array(
'hierarchical' => 0,
'taxonomy' => $this->taxonomy,
);
?>
choices ) ) {
return;
}
?>
label ) ) : ?>
label ); ?>
description ) ) : ?>
description; ?>
value() ) ? explode( ',', $this->value() ) : $this->value(); ?>
link(); ?> value="" />
choices ) ) {
return;
}
$name = '_customize-radio-' . $this->id;
?>
label ); ?>
description ) ) : ?>
description ); ?>
title;
$json['description'] = $this->description;
$json['features_list'] = $this->features_list;
$json['is_upsell_feature'] = $this->is_upsell_feature;
$json['upsell_link'] = $this->upsell_link;
$json['upsell_text'] = __( 'Upgrade Now', 'blogmarks' );
$json['button_link'] = $this->button_link;
$json['button_text'] = $this->button_text;
$json['class'] = $this->class;
return $json;
}
/**
* Outputs the Underscore.js template.
*
* @since 1.0.0
* @access public
* @return void
*/
protected function render_template() {
?>
<# if ( data.title ) { #>
{{ data.title }}
<# } #>
<# if ( data.description ) { #>
{{{ data.description }}}
<# } #>
<# if ( !_.isEmpty(data.features_list) ) { #>
<# _.each( data.features_list, function(key, value) { #>
- {{{ key }}}
<# }) #>
<# } #>
<# if ( data.is_upsell_feature ) { #>
{{ data.upsell_text }}
<# } else { #>
<# if ( data.button_text && data.button_link ) { #>
{{ data.button_text }}
<# } #>
<# } #>
label ) ) : ?>
label ); ?>
info_text ); ?>
description ) ) : ?>
description ); ?>
items ) : ?>
items as $item ) :
echo '- ' . esc_html( $item ) . '
';
endforeach;
?>