add_panel( 'igtheme_options', array( 'title' => __( 'Theme Settings', 'base-wp'), 'description' => '', 'priority' => 10, ) ); // LAYOUT $wp_customize->add_section('layout-settings', array( 'title' => __('Layout', 'base-wp'), 'panel' => 'igtheme_options', 'priority' => 10, )); // HEADER $wp_customize->add_section( 'header-settings' , array( 'title' => __( 'Header', 'base-wp'), 'panel' => 'igtheme_options', 'priority' => 20, ) ); // TYPOGRAPHY $wp_customize->add_section('typography-settings', array( 'title' => __('Typography', 'base-wp'), 'panel' => 'igtheme_options', 'priority' => 30, )); // BUTTONS $wp_customize->add_section('buttons-settings', array( 'title' => __('Buttons', 'base-wp'), 'panel' => 'igtheme_options', 'priority' => 40, )); // FOOTER $wp_customize->add_section('footer-settings', array( 'title' => __('Footer', 'base-wp'), 'panel' => 'igtheme_options', 'priority' => 50, )); // SOCIAL $wp_customize->add_section('social-settings', array( 'title' => __('Social', 'base-wp'), 'panel' => 'igtheme_options', 'priority' => 60, )); // SHOP $wp_customize->add_section('shop-settings', array( 'title' => esc_html__('Shop', 'base-wp'), 'panel' => 'igtheme_options', 'priority' => 70, )); // ADVANCED $wp_customize->add_section('advanced-settings', array( 'title' => esc_html__('Advanced', 'base-wp'), 'panel' => 'igtheme_options', 'priority' => 80, )); //PREMIUM OPTIONS include dirname( __FILE__ ) . '/customizer-premium.php'; //THEME IPTIONS include dirname( __FILE__ ) . '/customizer-options.php'; //END } /*+++++++++++++++++++++++++++++++++++++++++++++ CUSTOM CONTROL CSS +++++++++++++++++++++++++++++++++++++++++++++*/ public function customizer_custom_control_css() { ?> a { color: '. get_theme_mod( 'header_link_hover', $header_link_hover ) .'; } .main-navigation ul ul.light a { color:'. igthemes_color_brightness( get_theme_mod('header_link_hover', $header_link_hover) ,-125) .'; } .main-navigation ul ul.light a:hover { background:'. igthemes_color_brightness( get_theme_mod('header_link_hover', $header_link_hover) , -5) .'; color:'. igthemes_color_brightness( get_theme_mod('header_link_hover', $header_link_hover), -125) .'; } .main-navigation ul ul.dark a { color:'. igthemes_color_brightness(get_theme_mod('header_link_hover', $header_link_hover),125) .'; } .main-navigation ul ul.dark a:hover { background:'. igthemes_color_brightness( get_theme_mod('header_link_hover', $header_link_hover ),5).'; color:'. igthemes_color_brightness( get_theme_mod('header_link_hover', $header_link_hover ),125) .'; } .site-footer { background:'. get_theme_mod('footer_background_color', $footer_background_color) .'; color:'. get_theme_mod('footer_text_color', $footer_text_color) .'; } .site-footer a { color:'. get_theme_mod('footer_link_normal', $footer_link_normal) .'; } .site-footer a:hover, .site-footer a:focus { color:'. get_theme_mod('footer_link_hover', $footer_link_hover) .'; } .site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5, .site-footer h6 { color:'. get_theme_mod('footer_headings_color', $footer_headings_color) .'; } .site-content { color: '. get_theme_mod('body_text_color', $body_text_color) .'; } .site-content a { color: '. get_theme_mod('body_link_normal', $body_link_normal) .'; } .site-content a:hover, .site-content a:focus, .archive .entry-title a:hover { color: '. get_theme_mod('body_link_hover', $body_link_hover) .'; } .site-content h1, .site-content h2, .site-content h3, .site-content h4, .site-content h5, .site-content h6, .archive .entry-title a { color: '. get_theme_mod('body_headings_color', $body_headings_color) .'; } .site .button, .site input[type="button"], .site input[type="reset"], .site input[type="submit"] { border-color: '. get_theme_mod('button_background_normal', $button_background_normal) .'!important; background-color: '. get_theme_mod('button_background_normal', $button_background_normal) .'!important; color: '. get_theme_mod('button_text_normal', $button_text_normal) .'!important; } .site .button:hover, .site input[type="button"]:hover, .site input[type="reset"]:hover, .site input[type="submit"]:hover, .site input[type="button"]:focus, .site input[type="reset"]:focus, .site input[type="submit"]:focus { border-color: '. get_theme_mod('button_background_hover', $button_background_hover) .'!important; background-color: '. get_theme_mod('button_background_hover', $button_background_hover) .'!important; color: '. get_theme_mod('button_text_hover', $button_text_hover) .'!important; } '; wp_add_inline_style( 'custom-style', $style ); }//end custom css //END OF CLASS } return new IGthemes_Customizer();