add_section( 'theme_info_section', array( 'title' => __( 'Demo & Documentation' , 'software-company' ), 'priority' => 6, ) ); /** Important Links */ $wp_customize->add_setting( 'theme_info_setting', array( 'default' => '', 'sanitize_callback' => 'wp_kses_post', ) ); $theme_info = '
'; /* translators: 1: string, 2: preview url, 3: string */ $theme_info .= sprintf( '%1$s%3$s', esc_html__( 'Demo Link : ', 'software-company' ), esc_url( __( 'https://rarathemes.com/previews/?theme=software-company', 'software-company' ) ), esc_html__( 'Click here.', 'software-company' ) ); $theme_info .= '
'; /* translators: 1: string, 2: documentation url, 3: string */ $theme_info .= sprintf( '%1$s%3$s', esc_html__( 'Documentation Link : ', 'software-company' ), esc_url( 'https://docs.rarathemes.com/docs/software-company/' ), esc_html__( 'Click here.', 'software-company' ) ); $theme_info .= '
'; $wp_customize->add_control( new Rara_Business_Note_Control( $wp_customize, 'theme_info_setting', array( 'section' => 'theme_info_section', 'description' => $theme_info ) ) ); } add_action( 'customize_register', 'rara_business_customizer_theme_info', 15 ); /** * Add demo content info */ function rara_business_customizer_demo_content( $wp_customize ) { $wp_customize->add_section( 'demo_content_section' , array( 'title' => __( 'Demo Content Import' , 'software-company' ), 'priority' => 7, )); $wp_customize->add_setting( 'demo_content_instruction', array( 'sanitize_callback' => 'wp_kses_post' ) ); /* translators: 1: string, 2: url, 3: string */ $demo_content_description = sprintf( '%1$s%3$s', esc_html__( 'Software Company comes with demo content import feature. You can import the demo content with just one click. For step-by-step video tutorial, ', 'software-company' ), esc_url( 'https://rarathemes.com/blog/import-demo-content-rara-themes/' ), esc_html__( 'Click here', 'software-company' ) ); $wp_customize->add_control( new Rara_Business_Note_Control( $wp_customize, 'demo_content_instruction', array( 'section' => 'demo_content_section', 'description' => $demo_content_description ) ) ); $theme_demo_content_desc = ''; $theme_demo_content_desc .= '' . __( 'Click here', 'software-company' ) . '