label ); ?>
description ){ ?>
description); ?>
pro_text;
$json['pro_url'] = esc_url( $this->pro_url );
return $json;
}
protected function render_template() { ?>
{{ data.title }}
<# if ( data.pro_text && data.pro_url ) { #>
{{ data.pro_text }}
<# } #>
register_section_type( 'customize_Customize_Section_Pro' );
// Register sections.
$manager->add_section(
new customize_Customize_Section_Pro(
$manager,
'customize_page_view_pro',
array(
'title' => esc_html__( 'PRO Feature', 'avanza-lite' ),
'priority' => 1,
'pro_text' => esc_html__( 'View PRO Feature', 'avanza-lite' ),
'pro_url' => 'https://netnus.com/product/avanza-pro-multipurpose/'
)
)
);
}
function photo_studio_customizer_scripts() {
wp_enqueue_style( 'photo-pro-css',get_template_directory_uri().'/inc/pro/pro.css', '', 'screen' );
wp_enqueue_script( 'photo-pro-js', get_template_directory_uri() . '/inc/pro/pro.js', array( 'jquery' ), '20170404', true );
}
add_action( 'customize_controls_enqueue_scripts', 'photo_studio_customizer_scripts' );