pro_text; $json['pro_url'] = esc_url($this->pro_url); return $json; } /** * Render the section UI in a subclass. * * Sections are now rendered in JS by default, see WP_Customize_Section::print_template(). * * @since 3.4.0 */ protected function render() {} /** * An Underscore (JS) template for rendering this section. * * Class variables for this section class are available in the `data` JS object; * export custom variables by overriding WP_Customize_Section::json(). * * @since 3.4.0 * @access public * @return void * @see WP_Customize_Section::print_template() */ protected function render_template() { ?>
  • <# if ( data.pro_text && data.pro_url ) { #> {{ data.pro_text }} <# } #>