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( 'Blaize_Customize_Section_Pro' );
// Register sections.
$wp_customize->add_section(
new Blaize_Customize_Section_Pro(
$wp_customize,
'blaize-doc',
array(
'title' => esc_html__( 'Easy Theme Guide', 'blaize' ),
'pro_text' => esc_html__( 'Read Now','blaize' ),
'pro_url' => esc_url('http://doc.paglithemes.com/blaize'),
'priority' => 1,
)
)
);
}
add_action( 'customize_register', 'blaize_customize_register' );