button_text; $manager->register_control_type( 'Township_Lite_Theme_Info' ); parent::__construct( $manager, $id, $args ); } /** * Enqueue resources for the control */ public function enqueue() { wp_enqueue_style( 'township-lite-style', esc_url(get_template_directory_uri()) . '/inc/css/township-style.css', '1.0.0' ); } /** * Json conversion */ public function to_json() { parent::to_json(); $this->json['button_text'] = $this->button_text; $this->json['button_url'] = $this->button_url; $this->json['options'] = $this->options; $this->json['explained_features'] = $this->explained_features; } /** * Control content */ public function content_template() { ?>
<# if ( data.options ) { #> <# } #> <# if ( data.button_text && data.button_url ) { #> {{ data.button_text }} <# } #> <# if ( data.explained_features.length > 0 ) { #>
<# } #>