get_section('title_tagline')->title = esc_html__('Brand Name','bellini' ); $wp_customize->get_section( 'title_tagline' )->priority = 1; $wp_customize->get_control('blogname')->label = esc_html__('Site Title & Tagline', 'bellini'); $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_control('blogdescription')->label = esc_html__('', 'bellini'); $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_control( 'display_header_text' )->section = 'bellini_hide_header_components'; $wp_customize->get_control('custom_logo')->label = esc_html__('Logo Image', 'bellini'); $wp_customize->get_control('custom_logo')->description = esc_html__('Upload a logo image to used in the place of your site title.', 'bellini'); $wp_customize->get_control('custom_logo')->priority = 2; $wp_customize->get_control('blogname')->priority = 3; $wp_customize->get_control('blogdescription')->priority = 4; /** * Colors Panel. */ $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; $wp_customize->get_control( 'header_textcolor' )->section = 'text_color'; $wp_customize->get_setting( 'background_color' )->default = '#eceef1'; $wp_customize->get_control( 'background_color' )->section = 'section_color'; $wp_customize->get_control( 'background_color' )->priority = 3; $wp_customize->get_control( 'background_color' )->label = esc_html__('Website Background', 'bellini'); /*-------------------------------------------------------------- ## Top Panels --------------------------------------------------------------*/ $wp_customize->get_section( 'static_front_page' )->priority = 1; $wp_customize->get_section( 'static_front_page')->title = esc_html__( 'Select Your Frontpage','bellini' ); $wp_customize->get_section( 'static_front_page' )->panel = 'bellini_frontpage_panel'; $wp_customize->get_control( 'background_image' )->section = 'bellini_default_image'; $wp_customize->remove_section('background_image'); $wp_customize->get_control( 'header_image' )->section = 'bellini_default_image'; // Frontpage Panel $wp_customize->add_panel( 'bellini_frontpage_panel', array( 'priority' => 2, 'capability' => 'edit_theme_options', 'title' => esc_html__( 'Frontpage','bellini' ), 'description' => esc_html__( 'Your frontpage elements','bellini' ), ) ); // Color Panel $wp_customize->add_panel( 'bellini_colors_panel', array( 'priority' => 3, 'capability' => 'edit_theme_options', 'title' => esc_html__( 'Colors & Typography','bellini' ), 'description' => esc_html__( 'Customize your sites color and font','bellini' ), ) ); // Layout & Positioning Panel $wp_customize->add_panel( 'bellini_placeholder_layout_panel', array( 'priority' => 4, 'capability' => 'edit_theme_options', 'title' => esc_html__( 'Layout','bellini' ), 'description' => esc_html__( 'Change layout or shape and postion of components.','bellini' ), ) ); // Show / Hide $wp_customize->add_panel( 'bellini_show_hide_components', array( 'priority' => 5, 'capability' => 'edit_theme_options', 'title' => esc_html__( 'Show / Hide','bellini' ), 'description' => esc_html__('Check 3rd Party Software & App Settings','bellini' ), ) ); // Default Image & Text Panel $wp_customize->add_panel( 'bellini_misc_panel', array( 'priority' => 6, 'capability' => 'edit_theme_options', 'title' => esc_html__( 'Other Options','bellini' ), 'description' => esc_html__( 'Set default content link text, image or social icons','bellini' ), ) ); // 3rd party Integrations $wp_customize->add_panel( 'bellini_third_party_integration', array( 'priority' => 7, 'capability' => 'edit_theme_options', 'title' => esc_html__( 'Integrations','bellini' ), 'description' => esc_html__('Check 3rd Party Software & App Settings','bellini' ), ) ); // Logo & Title $wp_customize->add_setting( 'bellini_logo_title_helper', array( 'type' => 'option', 'sanitize_callback' => 'sanitize_key', ) ); $wp_customize->add_control( new Bellini_UI_Helper_Title ( $wp_customize, 'bellini_logo_title_helper', array( 'type' => 'info', 'label' => esc_html__('Logo & Title','bellini'), 'section' => 'title_tagline', 'settings' => 'bellini_logo_title_helper', 'priority' => 1, )) ); // Logo & Title $wp_customize->add_setting( 'bellini_logo_favicon_helper', array( 'type' => 'option', 'sanitize_callback' => 'sanitize_key', ) ); $wp_customize->add_control( new Bellini_UI_Helper_Title ( $wp_customize, 'bellini_logo_favicon_helper', array( 'type' => 'info', 'label' => esc_html__('Favicon','bellini'), 'section' => 'title_tagline', 'settings' => 'bellini_logo_favicon_helper', 'priority' => 4, )) ); /*-------------------------------------------------------------- ## Settings & Controls --------------------------------------------------------------*/ require_once(get_template_directory() . '/inc/customize/settings-bellini-pro.php'); // Pro Hooks require_once(get_template_directory() . '/inc/customize/settings-content.php'); // Default Image & Content require_once(get_template_directory() . '/inc/customize/settings-position.php'); // Position require_once(get_template_directory() . '/inc/customize/settings-typography.php'); // Typography require_once(get_template_directory() . '/inc/customize/settings-color.php'); // Color require_once(get_template_directory() . '/inc/customize/settings-front.php'); // Front Page Template require_once(get_template_directory() . '/inc/customize/settings-integrations.php'); // Integrations } add_action( 'customize_register', 'bellini_customize_register' ); function bellini_customizer_head_styles() { $website_width = esc_attr(get_option('bellini_website_width', '100')); $canvas_width = esc_attr(get_option('bellini_canvas_width', '1100px')); $bellini_menu_position = esc_attr(get_option('bellini_menu_position', 'center')); $page_title_position = esc_attr(get_option('page_title_position', 'center')); $bellini_body_font_size = esc_attr(get_option('bellini_body_font_size', '16')); $bellini_title_font_size = esc_attr(get_option('bellini_title_font_size', '29')); $bellini_menu_font_size = esc_attr(get_option('bellini_menu_font_size', '16')); $body_text_color = sanitize_hex_color(get_option('body_text_color', '#333333')); $bellini_primary_color = sanitize_hex_color(get_option('bellini_primary_color', '#2196F3')); $bellini_accent_color = sanitize_hex_color(get_option('bellini_accent_color', '#E3F2FD')); $title_text_color = sanitize_hex_color(get_option('title_text_color', '#000000')); $menu_text_color = sanitize_hex_color(get_option('menu_text_color', '#000000')); $logo_text_color = get_header_textcolor(); $button_text_color = sanitize_hex_color(get_option('button_text_color', '#ffffff')); $link_text_color = sanitize_hex_color(get_option('link_text_color', '#000000')); $link_hover_color = sanitize_hex_color(get_option('link_hover_color', '#000000')); $widget_background_color = sanitize_hex_color(get_option('widgets_background_color', '#ffffff')); $header_background_color = sanitize_hex_color(get_option('header_background_color', '#ffffff')); $footer_background_color = sanitize_hex_color(get_option('footer_background_color', '#eceef1')); $button_background_color = sanitize_hex_color(get_option('button_background_color', '#00B0FF')); $bellini_feature_block_background_color = sanitize_hex_color(get_option('bellini_feature_block_background_color')); $woo_category_background_color = sanitize_hex_color(get_option('woo_category_background_color', '#FFEB3B')); $woo_product_background_color = sanitize_hex_color(get_option('woo_product_background_color', '#eceef1')); $bellini_static_slider_button_background_one = sanitize_hex_color(get_option('bellini_static_slider_button_background_one', '#00B0FF')); $bellini_static_slider_button_background_two = sanitize_hex_color(get_option('bellini_static_slider_button_background_two', '#00B0FF')); $slider_background_color_mobile = sanitize_hex_color(get_option('slider_background_color_mobile', '#00B0FF')); $slider_text_color_mobile = sanitize_hex_color(get_option('slider_text_color_mobile', '#333')); $woo_featured_product_background_color = sanitize_hex_color(get_option('woo_featured_product_background_color', '#eceef1')); $bellini_hero_content_color = sanitize_hex_color(get_option('bellini_hero_content_color', '#ffffff')); $bellini_blogposts_background_color = sanitize_hex_color(get_option('bellini_blogposts_background_color', '#eceef1')); $bellini_frontpage_textarea_section_color = sanitize_hex_color(get_option('bellini_frontpage_textarea_section_color', '#eceef1')); $bellini_frontpage_textarea_section_image = esc_url(get_option('bellini_frontpage_textarea_section_image')); $font_preset = esc_attr(get_option('preset_font', 'planot')); $font_preset_title = bellini_font_preset_title($font_preset); $font_preset_body = bellini_font_preset_body($font_preset); $logo_font = esc_attr(get_option('bellini_logo_typography_font', 'logo-ope')); $logo_font_select = bellini_font_logo($logo_font); $element_title_capitalization = esc_attr(get_option('bellini_header_title_capitalization', 'none')); $bellini_widget_title_alignment = esc_attr(get_option('bellini_widget_title_alignment', 'left')); $bellini_custom_code_css = esc_attr(get_option('bellini_custom_css')); // CSS Classes $primary_color_text = ".scrollToTop"; $primary_color_background = ".page-numbers.current,.hamburger-inner,.hamburger-inner::before,.hamburger-inner::after,.hamburger__site-title,.main-navigation ul ul,.product-featured__title h1:after,.product-featured__title--l2 h1:after,.product-featured__title--l3 h1:after"; $bellini_meta_color_text = ".breadcrumb_last,.single.post-meta,.single.post-meta a,.post-meta__category a,.comment-reply-link,.comment__author,.blog-post__meta .post-meta__time,.post-meta__author,.comment-edit-link"; $bellini_meta_color_background = ".main-navigation li a:before,.menu-toggle,.post-meta__tag__item a"; $button_color_background = ".comment-form input[type=submit],.site-search form input[type=submit],.button--secondary"; $button_color_text = ".button--secondary a,.comment-form input[type=submit]"; ?>