get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; $wp_customize->get_section( 'title_tagline' )->panel = 'ripple_general_panel'; $wp_customize->get_section( 'background_image' )->panel = 'ripple_general_panel'; $wp_customize->get_section( 'header_image' )->panel = 'ripple_general_panel'; $wp_customize->get_section( 'colors' )->panel = 'ripple_general_panel'; /** * Pro customizer section. * * @since 1.0.0 * @access public */ class Ripple_Customize_Section_Pro extends WP_Customize_Section { /** * The type of customize section being rendered. * * @since 1.0.0 * @access public * @var string */ public $type = 'ripple-pro'; /** * Custom button text to output. * * @since 1.0.0 * @access public * @var string */ public $title1 = ''; public $pro_text1 = ''; /** * Custom pro button URL. * * @since 1.0.0 * @access public * @var string */ public $pro_url1 = ''; /** * Add custom parameters to pass to the JS via JSON. * * @since 1.0.0 * @access public * @return void */ public function json() { $json = parent::json(); $json['title1'] = $this->title1; $json['pro_text1'] = $this->pro_text1; $json['pro_url1'] = $this->pro_url1; return $json; } /** * Outputs the Underscore.js template. * * @since 1.0.0 * @access public * @return void */ protected function render_template() { ?>