add_section( 'blograzzi-colours-top-bar', array( 'title' => __( 'Top Bar', 'blograzzi' ), 'panel' => 'blograzzi-colours', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'blograzzi_settings[top_bar_bg]', array( 'section' => 'blograzzi-colours-top-bar', 'label' => __( 'Background', 'blograzzi' ), ) ) ); /* =Primary Menu --------------------------------------------------------------------------------------*/ $wp_customize->add_section( 'blograzzi-colours-menu-primary', array( 'title' => __( 'Primary Menu', 'blograzzi' ), 'panel' => 'blograzzi-colours', ) ); $options = array( 'type' => 'colour', 'section' => 'blograzzi-colours-menu-primary', 'options' => array( 'menu_primary_bg' => array( 'label' => __( 'Background (default state)', 'blograzzi' ) ), 'menu_primary_item' => array( 'label' => __( 'Text (default state)', 'blograzzi' ) ), 'menu_primary_active_bg' => array( 'label' => __( 'Background (active state)', 'blograzzi' ) ), 'menu_primary_active_item' => array( 'label' => __( 'Text (active state)', 'blograzzi' ) ), 'menu_primary_dd_item' => array( 'label' => __( 'Dropdown menu text (default state)', 'blograzzi' ) ), 'menu_primary_dd_active_item' => array( 'label' => __( 'Dropdown menu text (active state)', 'blograzzi' ) ), ) ); blograzzi_add_customizer_options( $options, $wp_customize ); /* =Secondary Menu --------------------------------------------------------------------------------------*/ $wp_customize->add_section( 'blograzzi-colours-menu-secondary', array( 'title' => __( 'Secondary Menu', 'blograzzi' ), 'panel' => 'blograzzi-colours', ) ); $options = array( 'type' => 'colour', 'section' => 'blograzzi-colours-menu-secondary', 'options' => array( 'menu_sec_border' => array( 'label' => __( 'Top border', 'blograzzi' ) ), 'menu_sec_bg' => array( 'label' => __( 'Background (default state)', 'blograzzi' ) ), 'menu_sec_item' => array( 'label' => __( 'Text (default state)', 'blograzzi' ) ), 'menu_sec_active_bg' => array( 'label' => __( 'Background (active state)', 'blograzzi' ) ), 'menu_sec_active_item' => array( 'label' => __( 'Text (active state)', 'blograzzi' ) ), 'menu_sec_dd_item' => array( 'label' => __( 'Dropdown menu text (default state)', 'blograzzi' ) ), 'menu_sec_dd_active_item' => array( 'label' => __( 'Dropdown menu text (active state)', 'blograzzi' ) ), ) ); blograzzi_add_customizer_options( $options, $wp_customize ); /* =Slider --------------------------------------------------------------------------------------*/ $wp_customize->add_section( 'blograzzi-colours-slider', array( 'title' => __( 'Slider', 'blograzzi' ), 'panel' => 'blograzzi-colours', ) ); $wp_customize->add_control( new Customize_Alpha_Color_Control( $wp_customize, 'blograzzi_settings[slider_caption_bg]', array( 'label' => __( 'Slider caption background', 'blograzzi' ), 'section' => 'blograzzi-colours-slider', 'show_opacity' => true, ) ) ); $options = array( 'type' => 'colour', 'section' => 'blograzzi-colours-slider', 'options' => array( 'slider_caption_text' => array( 'label' => __( 'Slider caption text', 'blograzzi' ) ), ) ); blograzzi_add_customizer_options( $options, $wp_customize ); /* =Content Area --------------------------------------------------------------------------------------*/ $wp_customize->add_section( 'blograzzi-colours-content-area', array( 'title' => __( 'Content Area', 'blograzzi' ), 'panel' => 'blograzzi-colours', ) ); $options = array( 'type' => 'colour', 'section' => 'blograzzi-colours-content-area', 'options' => array( 'content_wrapper_bg' => array( 'label' => __( 'Main content wrapper background', 'blograzzi' ) ), 'content_bg' => array( 'label' => __( 'Post and pages content background', 'blograzzi' ) ), 'meta_border' => array( 'label' => __( 'Post meta and footer border', 'blograzzi' ) ), 'content_font_colour' => array( 'label' => __( 'Content text', 'blograzzi' ) ), 'title_font_colour' => array( 'label' => __( 'Title text', 'blograzzi' ) ), 'link_colour_normal' => array( 'label' => __( 'Links', 'blograzzi' ) ), 'link_colour_hover' => array( 'label' => __( 'Links (hover)', 'blograzzi' ) ), 'sticky_border' => array( 'label' => __( 'Sticky posts border', 'blograzzi' ) ), 'child_page_content_bg' => array( 'label' => __( 'Child pages content background', 'blograzzi' ) ), ) ); blograzzi_add_customizer_options( $options, $wp_customize ); /* =Widgets --------------------------------------------------------------------------------------*/ $wp_customize->add_section( 'blograzzi-colours-widgets', array( 'title' => __( 'Widgets', 'blograzzi' ), 'panel' => 'blograzzi-colours', ) ); $options = array( 'type' => 'colour', 'section' => 'blograzzi-colours-widgets', 'options' => array( 'widget_item_bg' => array( 'label' => __( 'Widget item background', 'blograzzi' ) ), 'widget_list' => array( 'label' => __( 'Widget item list border', 'blograzzi' ) ), 'widget_header_border' => array( 'label' => __( 'Widget header border', 'blograzzi' ) ), ) ); blograzzi_add_customizer_options( $options, $wp_customize ); /* =Buttons and Labels --------------------------------------------------------------------------------------*/ $wp_customize->add_section( 'blograzzi-colours-buttons-labels', array( 'title' => __( 'Buttons and Labels', 'blograzzi' ), 'panel' => 'blograzzi-colours', ) ); $options = array( 'type' => 'colour', 'section' => 'blograzzi-colours-buttons-labels', 'options' => array( 'button_bg' => array( 'label' => __( 'Button background', 'blograzzi' ) ), 'button_label' => array( 'label' => __( 'Button text', 'blograzzi' ) ), 'label_bg' => array( 'label' => __( 'Label background', 'blograzzi' ) ), 'label_text' => array( 'label' => __( 'Label text', 'blograzzi' ) ), ) ); blograzzi_add_customizer_options( $options, $wp_customize ); /* =Archives --------------------------------------------------------------------------------------*/ $wp_customize->add_section( 'blograzzi-colours-archives', array( 'title' => __( 'Archives', 'blograzzi' ), 'panel' => 'blograzzi-colours', ) ); $options = array( 'type' => 'colour', 'section' => 'blograzzi-colours-archives', 'options' => array( 'archive_bg' => array( 'label' => __( 'Archive label background', 'blograzzi' ) ), 'archive_border' => array( 'label' => __( 'Archive label border', 'blograzzi' ) ), 'archive_label' => array( 'label' => __( 'Archive label label colour', 'blograzzi' ) ), 'archive_text' => array( 'label' => __( 'Archive label text colour', 'blograzzi' ) ), ) ); blograzzi_add_customizer_options( $options, $wp_customize ); /* =Comments Area --------------------------------------------------------------------------------------*/ $wp_customize->add_section( 'blograzzi-colours-comments', array( 'title' => __( 'Comments', 'blograzzi' ), 'panel' => 'blograzzi-colours', ) ); $options = array( 'type' => 'colour', 'section' => 'blograzzi-colours-comments', 'options' => array( 'comments_bg' => array( 'label' => __( 'Comments background', 'blograzzi' ) ), 'comments_border' => array( 'label' => __( 'Comments border', 'blograzzi' ) ), 'comments_box_shadow' => array( 'label' => __( 'Comments box shadow', 'blograzzi' ) ), 'comments_text' => array( 'label' => __( 'Comments text', 'blograzzi' ) ), 'author_comments_border' => array( 'label' => __( 'Author comments border', 'blograzzi' ) ), ) ); blograzzi_add_customizer_options( $options, $wp_customize ); /* =Footer --------------------------------------------------------------------------------------*/ $wp_customize->add_section( 'blograzzi-colours-footer', array( 'title' => __( 'Footer', 'blograzzi' ), 'panel' => 'blograzzi-colours', ) ); $options = array( 'type' => 'colour', 'section' => 'blograzzi-colours-footer', 'options' => array( 'footer_bg' => array( 'label' => __( 'Background', 'blograzzi' ) ), 'footer_text' => array( 'label' => __( 'Normal text', 'blograzzi' ) ), 'footer_link' => array( 'label' => __( 'Link text', 'blograzzi' ) ), ) ); blograzzi_add_customizer_options( $options, $wp_customize ); }