'; /* translators: 1: string, 2: preview url, 3: string */ $theme_info .= sprintf( '%1$s%3$s', esc_html__( 'Demo Link : ', 'book-landing-page' ), esc_url( __( 'https://rarathemes.com/previews/?theme=book-landing-page&utm_source=book_landing_page&utm_medium=customizer&utm_campaign=theme_demo', 'book-landing-page' ) ), esc_html__( 'Click here.', 'book-landing-page' ) ); $theme_info .= '
'; /* translators: 1: string, 2: documentation url, 3: string */ $theme_info .= sprintf( '%1$s%3$s', esc_html__( 'Documentation Link : ', 'book-landing-page' ), esc_url( 'https://docs.rarathemes.com/docs/book-landing-page/?utm_source=book_landing_page&utm_medium=customizer&utm_campaign=docs' ), esc_html__( 'Click here.', 'book-landing-page' ) ); $theme_info .= '
'; $wp_customize->add_control( new Book_Landing_Page_Note_Control( $wp_customize, 'theme_info_setting', array( 'section' => 'theme_info_section', 'description' => $theme_info ) ) ); } endif; add_action( 'customize_register', 'book_landing_page_customizer_theme_info' ); if( class_exists( 'WP_Customize_Section' ) ) : /** * Adding Go to Pro Section in Customizer * https://github.com/justintadlock/trt-customizer-pro */ class Book_Landing_Page_Customize_Section_Pro extends WP_Customize_Section { /** * The type of customize section being rendered. * * @since 1.0.0 * @access public * @var string */ public $type = 'pro-section'; /** * Custom button text to output. * * @since 1.0.0 * @access public * @var string */ public $pro_text = ''; /** * Custom pro button URL. * * @since 1.0.0 * @access public * @var string */ public $pro_url = ''; /** * 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['pro_text'] = $this->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() { ?>