type . '-' . $this->id;
$data['label'] = html_entity_decode( $this->label, ENT_QUOTES, get_bloginfo( 'charset' ) );
$data['value'] = $this->value();
$data['description'] = wp_kses_post( $this->description );
$data['link'] = $this->get_link();
return $data;
}
/**
* Enqueue scripts and styles.
*
* @since 1.0.0
*/
public function enqueue() {
wp_enqueue_style( 'nscu-controls' );
wp_enqueue_script( 'nscu-controls' );
}
/**
* Render JS template.
*
* @since 1.0.0
*/
public function content_template() {
?>
<# if ( data.label ) { #>
{{ data.label }}
<# } #>
<# if ( data.description ) { #>
{{{ data.description }}}
<# } #>