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 }} <# } #>

  • register_section_type( 'Artist_Painter_Customize_Section_Pro' ); // Register sections. $manager->add_section( new Artist_Painter_Customize_Section_Pro( $manager, 'artist_painter_view_pro', array( 'title' => esc_html__( 'Pro Available', 'artist-painter' ), 'priority' => 5, 'pro_text' => esc_html( ARTIST_PAINTER_TEXT, 'artist-painter' ), 'pro_url' => esc_url( ARTIST_PAINTER_URL) ) ) ); // Register sections. $manager->add_section( new Artist_Painter_Customize_Section_Pro( $manager, 'artist_painter_view_lite_doc', array( 'title' => esc_html__( 'For Reference', 'artist-painter' ), 'priority' => 5, 'pro_text' => esc_html( ARTIST_PAINTER_DOC_TEXT, 'artist-painter' ), 'pro_url' => esc_url( ARTIST_PAINTER_DOC_URL) ) ) ); }