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' ) . '
'; if( ! class_exists( 'RDDI_init' ) ) { $theme_demo_content_desc .= '' . __( 'Rara One Click Demo Import', 'software-company' ) . '
'; } $wp_customize->add_setting( 'theme_demo_content_info',array( 'default' => '', 'sanitize_callback' => 'wp_kses_post', )); // Demo content $wp_customize->add_control( new Rara_Business_Note_Control( $wp_customize ,'theme_demo_content_info',array( 'section' => 'demo_content_section', 'description' => $theme_demo_content_desc ))); } add_action( 'customize_register', 'rara_business_customizer_demo_content', 15 ); /** * Modifiy customizer control from child theme */ function software_company_customizer_register_controls( $wp_customize ) { // Remove controls $wp_customize->remove_control('ed_header_contact_details'); $wp_customize->remove_control('header_phone'); $wp_customize->remove_control('header_address'); $wp_customize->remove_control('header_email'); } add_action( 'customize_register', 'software_company_customizer_register_controls', 15 ); function rara_business_header(){ $default_options = rara_business_default_theme_options(); // Get default theme options $icon = get_theme_mod( 'custom_link_icon', $default_options['custom_link_icon'] ); $label = get_theme_mod( 'custom_link_label', $default_options['custom_link_label'] ); $ed_header_social = get_theme_mod( 'ed_header_social_links', $default_options['ed_header_social_links'] ); $social_links = get_theme_mod( 'header_social_links', $default_options['header_social_links'] ); $link = get_theme_mod( 'custom_link', $default_options['custom_link'] ); ?> urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), 'display' => urlencode( 'fallback' ), ); $fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); } return esc_url( $fonts_url ); }