selective_refresh->add_partial( 'blogname', array( 'selector' => '.navbar-brand h1', 'render_callback' => 'customize_partial_blogname', ) ); $wp_customize->selective_refresh->add_partial( 'blogdescription', array( 'selector' => '.navbar-header p', 'render_callback' => 'customize_partial_blogdescription', ) ); /* Panel */ $wp_customize->add_panel( 'beauty_spa_theme_option', array( 'title' => esc_html__( 'Theme Options','beautyspa' ), 'priority' => 1, // Mixed with top-level-section hierarchy. ) ); // General Settings $wp_customize->add_section('beauty_spa_general_option', array( 'title' => 'General Options', 'description' => 'Here you can customize Your theme General Settings ', 'panel'=>'beauty_spa_theme_option', 'capability'=>'edit_theme_options', 'priority' => 35, ) ); $wp_customize->add_setting( 'beauty_options_frontpage', array('type' => 'theme_mod', 'default'=>'', 'sanitize_callback'=>'beauty_spa_sanitize_checkbox', 'capability' => 'edit_theme_options' ) ); $wp_customize->add_control( 'beauty_spa_show_frontpage', array( 'label' => esc_html__( 'Enable Frontpage', 'beautyspa' ), 'type'=>'checkbox', 'section' => 'beauty_spa_general_option', 'settings' => 'beauty_options_frontpage', ) ); $wp_customize->add_setting( 'beauty_options_sticky_header', array('type' => 'theme_mod', 'default'=>'', 'sanitize_callback'=>'beauty_spa_sanitize_checkbox', 'capability' => 'edit_theme_options' ) ); $wp_customize->add_control( 'beauty_spa_fixed_header', array( 'label' => esc_html__( 'Enable Fixed Header', 'beautyspa' ), 'type'=>'checkbox', 'section' => 'beauty_spa_general_option', 'settings' => 'beauty_options_sticky_header', ) ); $wp_customize->add_setting( 'beauty_options_search_header', array('type' => 'theme_mod', 'default'=>'', 'sanitize_callback'=>'beauty_spa_sanitize_checkbox', 'capability' => 'edit_theme_options' ) ); $wp_customize->add_control( 'beauty_spa_search_header', array( 'label' => esc_html__( 'Show Search In Header', 'beautyspa' ), 'type'=>'checkbox', 'section' => 'beauty_spa_general_option', 'settings' => 'beauty_options_search_header', )); $wp_customize->selective_refresh->add_partial( 'beauty_options_search_header', array( 'selector' => '.top-search', 'render_callback' => 'header_search', ) ); $wp_customize->add_setting( 'beauty_options_breadcrumb', array('type' => 'theme_mod', 'default'=>'on', 'sanitize_callback'=>'beauty_spa_sanitize_checkbox', 'capability' => 'edit_theme_options' ) ); $wp_customize->add_control( 'beauty_spa_breadcrumb', array( 'label' => esc_html__( 'Enable breadcrumb', 'beautyspa' ), 'type'=>'checkbox', 'section' => 'beauty_spa_general_option', 'settings' => 'beauty_options_breadcrumb', ) ); // slider images $wp_customize->add_section( 'beauty_spa_slider_images', array( 'title' => 'Slider Image Options', 'description' => 'Here you can customize Your Slider\'s Images by selecting post.', 'panel'=>'beauty_spa_theme_option', 'capability'=>'edit_theme_options', 'priority' => 35, ) ); // Slider type $wp_customize->add_setting('slider_layout', array( 'type'=>'theme_mod', 'default' => 'slider', 'sanitize_callback' => 'beauty_spa_sanitize_text' ) ); $wp_customize->add_control( 'slider_layout', array( 'label' => esc_html__('Select Slider Type', 'beautyspa'), 'section' => 'beauty_spa_slider_images', 'settings' => 'slider_layout', 'type' => 'select', 'choices' => array( 'slider' => esc_html__('Slider Display Pages', 'beautyspa'), 'banner' => esc_html__('Banner Image', 'beautyspa'), 'sliderpost' => esc_html__('Slider Display Posts', 'beautyspa'), ), ) ); // Banner Image $wp_customize->add_setting('banner_image', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'beauty_spa_sanitize_text', ) ); $wp_customize->add_control(new WP_Customize_Image_Control( $wp_customize,'banner_image', array( 'label' => esc_html__('Banner Image', 'beautyspa'), 'description' => esc_html__( 'Select Banner Image', 'beautyspa' ), 'section' => 'beauty_spa_slider_images', 'settings' => 'banner_image', 'active_callback' => 'slider_layout_banner', ) )); $wp_customize->add_setting('banner_title', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'beauty_spa_sanitize_text', ) ); $wp_customize->add_control('banner_title', array( 'label' => esc_html__('Banner Title', 'beautyspa'), 'section' => 'beauty_spa_slider_images', 'settings' => 'banner_title', 'type' => 'text', 'active_callback' => 'slider_layout_banner', ) ); $wp_customize->add_setting('banner_desc', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'beauty_spa_sanitize_text', ) ); $wp_customize->add_control('banner_desc', array( 'label' => esc_html__('Banner Description', 'beautyspa'), 'section' => 'beauty_spa_slider_images', 'settings' => 'banner_desc', 'type' => 'text', 'active_callback' => 'slider_layout_banner', ) ); // page title // for($i=1; $i<=3; $i++){ $wp_customize->add_setting( 'slider_page_'.$i, array('type'=>'theme_mod', 'default'=>'', 'sanitize_callback'=>'beauty_spa_sanitize_text', 'capability' => 'edit_theme_options' )); $wp_customize->add_control( new Beautyspa_Page_Control( $wp_customize, 'slider_page_'.$i, array( 'label' => 'Select page for slider '.$i, 'section' => 'beauty_spa_slider_images', 'settings' => 'slider_page_'.$i, 'active_callback' => 'slider_layout', ))); // page title end // } for($i=1; $i<=3; $i++){ $wp_customize->add_setting( 'beauty_options_slider_image'.$i, array( 'default'=>'', 'sanitize_callback'=>'beauty_spa_sanitize_integer', 'capability' => 'edit_theme_options', ) ); $wp_customize->add_control( new Slider_Image_Control( $wp_customize, 'slider_image'.$i, array( 'label' => 'Slider Image '.$i, 'section' => 'beauty_spa_slider_images', 'settings' => 'beauty_options_slider_image'.$i, 'active_callback' => 'slider_layout_post', ) ) ); } $wp_customize->add_setting( 'beauty_options_enable_slider', array('type'=>'theme_mod', 'default'=>'', 'sanitize_callback'=>'beauty_spa_sanitize_checkbox', 'capability' => 'edit_theme_options' )); $wp_customize->add_control( 'beauty_spa_enable_slider', array( 'label' => esc_html__( 'Show Slider Section On Front-Page', 'beautyspa' ), 'type'=>'checkbox', 'section' => 'beauty_spa_slider_images', 'settings' => 'beauty_options_enable_slider', ) ); // Service Settings $wp_customize->add_section('beauty_spa_service_option', array( 'title' => esc_html__('Service Options','beautyspa'), 'description' => 'Customize Home Service Section', 'panel'=>'beauty_spa_theme_option', 'capability'=>'edit_theme_options', 'priority' => 35, ) ); $wp_customize->add_setting( 'beauty_options_enable_service', array('type' => 'theme_mod', 'default'=>'', 'sanitize_callback'=>'beauty_spa_sanitize_checkbox', 'capability' => 'edit_theme_options' )); $wp_customize->add_control( 'beauty_spa_enable_service', array( 'label' => esc_html__( 'Show Service Section On Front-Page', 'beautyspa' ), 'type'=>'checkbox', 'section' => 'beauty_spa_service_option', 'settings' => 'beauty_options_enable_service', ) ); $wp_customize->add_setting( 'beauty_options_service_title', array('type' => 'theme_mod', 'default'=>'', 'sanitize_callback'=>'beauty_spa_sanitize_text', 'capability' => 'edit_theme_options' ) ); $wp_customize->add_control( 'beauty_spa_service_title', array( 'label' => esc_html__( 'Service Title','beautyspa' ), 'section' => 'beauty_spa_service_option', 'settings' => 'beauty_options_service_title', ) ); $wp_customize->selective_refresh->add_partial( 'beauty_options_service_title', array( 'selector' => '.spa-services h1', 'render_callback' => 'service', ) ); $wp_customize->add_setting( 'beauty_options_service_desc', array( 'default'=>'', 'capability' => 'edit_theme_options', 'sanitize_callback'=>'beauty_spa_sanitize_text' ) ); $wp_customize->add_control(new One_Page_Editor($wp_customize, 'beauty_options_service_desc', array( 'label' => esc_html__( 'Service Description','beautyspa' ), 'section' => 'beauty_spa_service_option', 'active_callback' => 'show_on_front', 'include_admin_print_footer' => true, 'settings' => 'beauty_options_service_desc', ))); for($i=1; $i<=3; $i++){ $wp_customize->add_setting( 'beauty_options_service_'.$i.'_icons', array( 'default'=>'', 'type' => 'theme_mod', 'capability'=>'edit_theme_options', 'sanitize_callback'=>'beauty_spa_sanitize_text', )); $wp_customize->add_control(new Beautyspa_Customizer_Icon_Picker_Control($wp_customize, 'service_'.$i.'_icons', array( 'label' => 'Service Icon '.$i, 'description'=>__('FontAwesome Icons','beautyspa'), 'section' => 'beauty_spa_service_option', 'type'=>'text', 'settings' => 'beauty_options_service_'.$i.'_icons' ))); $wp_customize->add_setting( 'beauty_options_service_'.$i.'_title', array( 'default'=>'', 'type' => 'theme_mod', 'capability'=>'edit_theme_options', 'sanitize_callback'=>'beauty_spa_sanitize_text', )); $wp_customize->add_control( 'service_'.$i.'_title', array( 'label' => 'Service Title '.$i, 'type'=>'text', 'section' => 'beauty_spa_service_option', 'settings' => 'beauty_options_service_'.$i.'_title' )); $wp_customize->add_setting( 'beauty_options_service_'.$i.'_text', array( 'default'=>'', 'sanitize_callback'=>'beauty_spa_sanitize_text', )); $wp_customize->add_control(new One_Page_Editor($wp_customize,'beauty_options_service_'.$i.'_text', array( 'label' => 'Service Text '.$i, 'section' => 'beauty_spa_service_option', 'active_callback' => 'show_on_front', 'include_admin_print_footer' => true, 'settings' => 'beauty_options_service_'.$i.'_text' ))); $wp_customize->add_setting( 'beauty_options_service_'.$i.'_link', array( 'default'=>'', 'type' => 'theme_mod', 'sanitize_callback'=>'esc_url_raw', 'capability'=>'edit_theme_options', )); $wp_customize->add_control( 'service_'.$i.'_link', array( 'label' => 'Service Link '.$i, 'type'=>'text', 'section' => 'beauty_spa_service_option', 'settings' => 'beauty_options_service_'.$i.'_link' )); } // portfolio Settings $wp_customize->add_section('beauty_spa_portfolio_option', array( 'title' => esc_html__('Portfolio Options','beautyspa'), 'description' => 'Customize Home Portfolio Section', 'panel'=>'beauty_spa_theme_option', 'capability'=>'edit_theme_options', 'priority' => 35, ) ); $wp_customize->add_setting( 'beauty_options_enable_portfolio', array('type'=>'theme_mod', 'default'=>'', 'sanitize_callback'=>'beauty_spa_sanitize_checkbox', 'capability' => 'edit_theme_options' )); $wp_customize->add_control( 'beauty_spa_enable_portfolio', array( 'label' => esc_html__( 'Show Portfolio Section On Front-Page', 'beautyspa' ), 'type'=>'checkbox', 'section' => 'beauty_spa_portfolio_option', 'settings' => 'beauty_options_enable_portfolio', ) ); $wp_customize->add_setting( 'beauty_options_portfolio_title', array('type'=>'theme_mod', 'default'=>'', 'sanitize_callback'=>'beauty_spa_sanitize_text', 'capability' => 'edit_theme_options' ) ); $wp_customize->add_control( 'beauty_spa_portfolio_title', array( 'label' => esc_html__( 'portfolio Title','beautyspa' ), 'section' => 'beauty_spa_portfolio_option', 'settings' => 'beauty_options_portfolio_title', ) ); $wp_customize->selective_refresh->add_partial( 'beauty_options_portfolio_title', array( 'selector' => '.portfolio h1', 'render_callback' => 'portfolio', ) ); $wp_customize->add_setting( 'beauty_options_portfolio_desc', array( 'default'=>'', 'sanitize_callback'=>'beauty_spa_sanitize_text', ) ); $wp_customize->add_control(new One_Page_Editor($wp_customize,'beauty_options_portfolio_desc', array( 'label' => esc_html__( 'portfolio Description','beautyspa' ), 'section' => 'beauty_spa_portfolio_option', 'active_callback' => 'show_on_front', 'include_admin_print_footer' => true, 'settings' => 'beauty_options_portfolio_desc', ))); $wp_customize->add_setting( 'beauty_options_portfolio_background', array('type'=>'theme_mod', 'default'=>'', 'sanitize_callback'=>'esc_url_raw', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'beauty_spa_portfolio_background', array( 'label' => 'Portfolio Background', 'section' => 'beauty_spa_portfolio_option', 'settings' => 'beauty_options_portfolio_background', ) ) ); for($i=1;$i<5;$i++) { $wp_customize->add_setting( 'beauty_options_portfolio_'.$i.'_title', array('type'=>'theme_mod', 'default'=>'', 'sanitize_callback'=>'beauty_spa_sanitize_text', 'capability' => 'edit_theme_options' ) ); $wp_customize->add_control( 'portfolio_'.$i.'_title', array( 'label' =>'portfolio title '.$i, 'section' => 'beauty_spa_portfolio_option', 'settings' => 'beauty_options_portfolio_'.$i.'_title', ) ); $wp_customize->add_setting( 'beauty_options_portfolio_'.$i.'_link', array( 'default'=>'', 'type' => 'theme_mod', 'sanitize_callback'=>'esc_url_raw', 'capability'=>'edit_theme_options', )); $wp_customize->add_control( 'portfolio_'.$i.'_link', array( 'label' => 'portfolio link '.$i, 'type'=>'text', 'section' => 'beauty_spa_portfolio_option', 'settings' => 'beauty_options_portfolio_'.$i.'_link' )); $wp_customize->add_setting('beauty_options_portfolio_'.$i.'_img',array( 'type' => 'theme_mod', 'default'=>'', 'capability' => 'edit_theme_options', 'sanitize_callback'=>'esc_url_raw', )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'portfolio_'.$i.'_img', array( 'label' => 'portfolio image '.$i, 'section' => 'beauty_spa_portfolio_option', 'settings' => 'beauty_options_portfolio_'.$i.'_img' ) ) ); } // Blog Settings $wp_customize->add_section('beauty_spa_blog_option', array( 'title' => esc_html__('Blog Options','beautyspa'), 'description' => 'Customize Home Blog Section', 'panel'=>'beauty_spa_theme_option', 'capability'=>'edit_theme_options', 'priority' => 35, ) ); $wp_customize->add_setting( 'beauty_options_enable_blog', array('type'=>'theme_mod', 'default'=>'', 'sanitize_callback'=>'beauty_spa_sanitize_checkbox', 'capability' => 'edit_theme_options' )); $wp_customize->add_control( 'beauty_spa_enable_blog', array( 'label' => esc_html__( 'Show Blog Section On Front-Page', 'beautyspa' ), 'type'=>'checkbox', 'section' => 'beauty_spa_blog_option', 'settings' => 'beauty_options_enable_blog', ) ); $wp_customize->add_setting( 'beauty_options_blog_title', array('type'=>'theme_mod', 'default'=>'', 'sanitize_callback'=>'beauty_spa_sanitize_text', 'capability' => 'edit_theme_options' ) ); $wp_customize->add_control( 'beauty_spa_blog_title', array( 'label' => esc_html__( 'blog Title','beautyspa' ), 'section' => 'beauty_spa_blog_option', 'settings' => 'beauty_options_blog_title', ) ); $wp_customize->selective_refresh->add_partial( 'beauty_options_blog_title', array( 'selector' => '.spa-post h1', 'render_callback' => 'blog', ) ); $wp_customize->add_setting( 'beauty_options_blog_desc', array('type'=>'theme_mod', 'default'=>'', 'sanitize_callback'=>'beauty_spa_sanitize_text', 'capability' => 'edit_theme_options' ) ); $wp_customize->add_control(new One_Page_Editor($wp_customize,'beauty_options_blog_desc', array( 'label' => esc_html__( 'blog Description','beautyspa' ), 'section' => 'beauty_spa_blog_option', 'active_callback' => 'show_on_front', 'include_admin_print_footer' => true, 'settings' => 'beauty_options_blog_desc', ))); // Social Settings // $wp_customize->add_section('beauty_spa_social_option', array( 'title' => esc_html__('Social Options','beautyspa'), 'description' => 'Customize Social Icons', 'panel'=>'beauty_spa_theme_option', 'capability'=>'edit_theme_options', 'priority' => 35, ) ); $wp_customize->add_setting( 'beauty_options_social_header', array('type' => 'theme_mod', 'default'=>'', 'sanitize_callback'=>'beauty_spa_sanitize_checkbox', 'capability' => 'edit_theme_options' )); $wp_customize->add_control( 'beauty_spa_social_header', array( 'label' => esc_html__( 'Show Social Icon On Header', 'beautyspa' ), 'type'=>'checkbox', 'section' => 'beauty_spa_social_option', 'settings' => 'beauty_options_social_header', ) ); $wp_customize->selective_refresh->add_partial( 'beauty_options_social_header', array( 'selector' => '.top-social', 'render_callback' => 'header_social', ) ); $wp_customize->add_setting( 'beauty_options_social_footer', array( 'type'=>'theme_mod', 'default'=>'', 'sanitize_callback'=>'beauty_spa_sanitize_checkbox', 'capability' => 'edit_theme_options' )); $wp_customize->add_control( 'beauty_spa_social_footer', array( 'label' => esc_html__( 'Show Social Icon On Footer', 'beautyspa' ), 'type'=>'checkbox', 'section' => 'beauty_spa_social_option', 'settings' => 'beauty_options_social_footer', ) ); $wp_customize->selective_refresh->add_partial( 'beauty_options_social_footer', array( 'selector' => '.f_social', 'render_callback' => 'footer_social', ) ); $wp_customize->add_setting('beauty_spa_facbook_link', array('type' => 'theme_mod', 'default' => '', 'sanitize_callback'=>'esc_url_raw', 'capability'=>'edit_theme_options' )); $wp_customize->add_control( 'facbook_link', array('label' => esc_html__( 'Facebook', 'beautyspa' ), 'type' => 'url', 'section' => 'beauty_spa_social_option', 'settings' => 'beauty_spa_facbook_link' )); $wp_customize->add_setting('beauty_spa_twitter_link', array('type' => 'theme_mod', 'default'=> '', 'sanitize_callback'=>'esc_url_raw', 'capability'=>'edit_theme_options' )); $wp_customize->add_control( 'twitter_link', array('label' => esc_html__( 'Twitter', 'beautyspa' ), 'type' => 'url', 'section' => 'beauty_spa_social_option', 'settings' => 'beauty_spa_twitter_link' )); $wp_customize->add_setting('beauty_spa_youtube_link', array('type' => 'theme_mod', 'default'=>'', 'sanitize_callback'=>'esc_url_raw', 'capability'=>'edit_theme_options' )); $wp_customize->add_control( 'youtube_link', array('label' => esc_html__( 'Youtube', 'beautyspa' ), 'type' => 'url', 'section' => 'beauty_spa_social_option', 'settings' => 'beauty_spa_youtube_link' )); $wp_customize->add_setting('beauty_spa_linkdin_link', array( 'type' => 'theme_mod', 'default'=>'', 'sanitize_callback'=>'esc_url_raw', 'capability'=>'edit_theme_options' )); $wp_customize->add_control( 'linkdin_link', array('label' => esc_html__( 'Linkedin', 'beautyspa' ), 'type' => 'url', 'section' => 'beauty_spa_social_option', 'settings' => 'beauty_spa_linkdin_link' )); $wp_customize->add_setting('beauty_spa_goglpls_link', array('type' => 'theme_mod', 'default'=>'', 'sanitize_callback'=>'esc_url_raw', 'capability'=>'edit_theme_options' )); $wp_customize->add_control( 'goglpls_link', array('label' => esc_html__( 'Google Plus', 'beautyspa' ), 'type' => 'url', 'section' => 'beauty_spa_social_option', 'settings' => 'beauty_spa_goglpls_link' )); // footer Settings $wp_customize->add_section('beauty_spa_footer_option', array( 'title' => esc_html__('Footer Options','beautyspa'), 'description' => 'Customize Home Footer Section', 'panel'=>'beauty_spa_theme_option', 'capability'=>'edit_theme_options', 'priority' => 35, ) ); $wp_customize->add_setting( 'beauty_options_footer_text', array('type' => 'theme_mod', 'default'=>'', 'sanitize_callback'=>'beauty_spa_sanitize_text', 'capability' => 'edit_theme_options' ) ); $wp_customize->add_control( 'beauty_spa_footer_text', array( 'label' => esc_html__( 'Footer Title','beautyspa' ), 'section' => 'beauty_spa_footer_option', 'settings' => 'beauty_options_footer_text', ) ); $wp_customize->selective_refresh->add_partial( 'beauty_options_footer_text', array( 'selector' => '.f_copyright', 'render_callback' => 'footer', ) ); $wp_customize->add_setting( 'beauty_options_footer_link_text', array('type' => 'theme_mod', 'default'=>'', 'sanitize_callback'=>'beauty_spa_sanitize_text', 'capability' => 'edit_theme_options' ) ); $wp_customize->add_control( 'beauty_spa_footer_link_text', array( 'label' => esc_html__( 'Footer Link Text','beautyspa' ), 'section' => 'beauty_spa_footer_option', 'settings' => 'beauty_options_footer_link_text', ) ); $wp_customize->add_setting( 'beauty_options_footer_link', array('type' => 'theme_mod', 'default'=>'', 'sanitize_callback'=>'esc_url_raw', 'capability' => 'edit_theme_options' ) ); $wp_customize->add_control( 'beauty_spa_footer_link', array( 'label' => esc_html__( 'Footer Link','beautyspa' ), 'section' => 'beauty_spa_footer_option', 'settings' => 'beauty_options_footer_link', ) ); $wp_customize->add_section( 'beauty_spa_more' , array( 'title' => esc_html__( 'Upgrade to BeautySpa Premium', 'beautyspa' ), 'priority' => 999, 'panel'=>'beauty_spa_theme_option', ) ); $wp_customize->add_setting( 'beauty_spa_more', array( 'default' => null, 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new More_BS_Control( $wp_customize, 'beauty_spa_more', array( 'label' => esc_html__( 'BeautySpa Premium', 'beautyspa' ), 'section' => 'beauty_spa_more', 'settings' => 'beauty_spa_more', 'priority' => 1, ) ) ); } //sanitize callbacks function beauty_spa_sanitize_text( $input ) { return wp_kses_post( force_balance_tags( $input ) ); } function beauty_spa_sanitize_checkbox( $input ) { if ( $input == 1 ) { return 1; } else { return 0; } } function beauty_spa_sanitize_integer( $input ) { return (int)($input); } /* class for thumbnail images */ if ( class_exists( 'WP_Customize_Control' ) && ! class_exists( 'Slider_Image_Control' ) ) : class Slider_Image_Control extends WP_Customize_Control { public function render_content(){ ?> label ); ?> 'post', 'post_status'=>'publish','posts_per_page'=> -1); $slide_id = new WP_Query( $args ); ?> label ); ?> label ); ?> include_admin_print_footer = $args['include_admin_print_footer']; } if ( ! empty( $args['teeny'] ) ) { $this->teeny = $args['teeny']; } } /* Enqueue scripts */ public function enqueue() { wp_enqueue_script( 'one_lite_text_editor', get_template_directory_uri() . '/inc/customizer-page-editor/js/one-lite-text-editor.js', array( 'jquery' ), false, true ); } /* Render the content on the theme customizer page */ public function render_content() { ?> label ); ?> link(); ?> value="value() ); ?>"> $this->id, 'teeny' => $this->teeny, ); $control_content = $this->value(); wp_editor( $control_content, $this->id, $settings ); if ( $this->include_admin_print_footer === true ) { do_action( 'admin_print_footer_scripts' ); } } } function show_on_front() { if(is_front_page()) { return is_front_page() && 'posts' !== get_option( 'show_on_front' ); } elseif(is_home()) { return is_home(); } } if ( ! function_exists( 'slider_layout' ) ) : function slider_layout( $control ) { if( 'slider' == $control->manager->get_setting('slider_layout')->value() ){ return true; } else { return false; } } endif; //============================================================= // Active callback for Banner //============================================================= if ( ! function_exists( 'slider_layout_banner' ) ) : function slider_layout_banner( $control ) { if( 'banner' == $control->manager->get_setting('slider_layout')->value() ){ return true; } else { return false; } } endif; if ( ! function_exists( 'slider_layout_post' ) ) : function slider_layout_post( $control ) { if( 'sliderpost' == $control->manager->get_setting('slider_layout')->value() ){ return true; } else { return false; } } endif; function customize_partial_blogname() { bloginfo( 'name' ); } function customize_partial_blogdescription() { bloginfo( 'description' ); } function header_social() { return $wl_theme_options['beauty_options_social_header']; } function header_search() { return $wl_theme_options['beauty_options_search_header']; } function service() { return $wl_theme_options['beauty_options_service_title']; } function portfolio() { return $wl_theme_options['beauty_options_portfolio_title']; } function blog() { return $wl_theme_options['beauty_options_blog_title']; } function footer_social() { return $wl_theme_options['beauty_options_social_footer']; } function footer() { return $wl_theme_options['beauty_options_footer_text']; } ?>