type . '-' . $this->id; $data['label'] = html_entity_decode( $this->label, ENT_QUOTES, get_bloginfo( 'charset' ) ); $data['value'] = $this->value(); $data['link'] = $this->get_link(); $data['defaultValue'] = $this->setting->default; $data['suffix'] = $this->suffix; $data['input_attrs'] = wp_parse_args( $this->input_attrs, array( 'min' => 1, 'max' => 100, 'step' => 1, ) ); 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() { ?>