json['value'] = $this->value();
$this->json['link'] = $this->get_link();
$this->json['id'] = $this->id;
}
/**
* Render content.
*
* @since 1.0.0
*/
public function render_content() {}
/**
* Content template.
*
* @since 1.0.0
*/
public function content_template() {
?>
<# if ( data.label ) { #>
{{ data.label }}
<# } #>
<# if ( data.description ) { #>
{{ data.description }}
<# } #>
json['value'] = $this->value();
$this->json['link'] = $this->get_link();
$this->json['id'] = $this->id;
}
/**
* Render content.
*
* @since 1.0.0
*/
public function render_content() {}
/**
* Content template.
*
* @since 1.0.0
*/
public function content_template() {
?>
<# if ( data.label ) { #>
{{ data.label }}
<# } #>
<# if ( data.description ) { #>
{{ data.description }}
<# } #>
pro_text;
$json['pro_url'] = esc_url( $this->pro_url );
return $json;
}
/**
* Outputs the Underscore.js template.
*
* @since 1.0.0
* @access public
* @return void
*/
protected function render_template() { ?>
{{ data.title }}
<# if ( data.pro_text && data.pro_url ) { #>
{{ data.pro_text }}
<# } #>