'Facebook', 'twitter' => 'Twitter', 'linkedin' => 'Linkedin', 'instagram' => 'Instagram', 'pinterest' => 'Pinterest', 'behance' => 'Behance', 'dribbble' => 'Dribbble', 'youtube' => 'Youtube', 'soundcloud' => 'SoundCloud', ); /** * Supported theme mod locations */ function bastet_get_avilable_locations() { return array( 'home', 'category', 'author', 'search', 'archive', 'single', 'page', ); } /** * Changing default mods transparent to PostMessage * * @param object $wp_customize Customize object. */ function bastet_customize_register( $wp_customize ) { $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; } add_action( 'customize_register', 'bastet_customize_register' ); /** * Create theme mods for supported locations * * @param string $location Mod location. */ function bastet_generate_layout_mods( $location = 'home' ) { $locations = bastet_get_avilable_locations(); $single = array_search( 'single', $locations, true ); $page = array_search( 'page', $locations, true ); unset( $locations[ $single ] ); unset( $locations[ $page ] ); $layout_stylies = array( 'grid' => esc_html__( 'Grid', 'bastet' ), 'grid-simple' => esc_html__( 'Grid Simple', 'bastet' ), 'list' => esc_html__( 'List', 'bastet' ), 'card' => esc_html__( 'Card', 'bastet' ), ); foreach ( $locations as $location ) { Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'radio', 'settings' => 'bastet_layout_' . esc_attr( $location ) . '', 'label' => esc_html__( 'Posts Layout', 'bastet' ), 'default' => 'card', 'section' => 'bastet_' . esc_attr( $location ) . '_layout', 'choices' => $layout_stylies, ) ); } } add_action( 'init', 'bastet_generate_layout_mods' ); /** * Generate theme mods for sidebar settings * * @param string $location Sidebar location. */ function bastet_generate_sidebar_mods( $location = 'home' ) { $locations = bastet_get_avilable_locations(); $sidebar_choices = array( 'right-sidebar' => esc_html__( 'Right Sidebar', 'bastet' ), 'left-sidebar' => esc_html__( 'Left Sidebar', 'bastet' ), 'no-sidebar' => esc_html__( 'Disable Sidebar', 'bastet' ), ); foreach ( $locations as $location ) { Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'radio', 'settings' => 'bastet_sidebar_' . esc_attr( $location ) . '', 'label' => esc_html__( 'Sidebar Position', 'bastet' ), 'default' => 'right-sidebar', 'section' => 'bastet_' . esc_attr( $location ) . '_layout', 'choices' => $sidebar_choices, ) ); } } add_action( 'init', 'bastet_generate_sidebar_mods' ); /** * Create theme mods for supported theme meta * * @param string $location Meta location. */ function bastet_generate_meta_mods( $location = 'home' ) { $x = 0; $mets = array( 'category', 'author', 'date', 'share' ); $labels = array( esc_html__( 'Category', 'bastet' ), esc_html__( 'Author', 'bastet' ), esc_html__( 'Date', 'bastet' ), esc_html__( 'Share', 'bastet' ), ); foreach ( $mets as $meta ) { $slug = 'bastet_' . $meta . '_' . $location; Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'switch', 'settings' => esc_attr( $slug ), 'label' => sprintf( /* translators: 1: meta label */ esc_html__( 'Show %1$s Meta', 'bastet' ), esc_html( $labels[ $x ] ) ), 'default' => 'on', 'section' => 'bastet_' . esc_attr( $location ) . '_layout', 'choices' => array( 'on' => esc_html__( 'On', 'bastet' ), 'off' => esc_html__( 'Off', 'bastet' ), ), ) ); $x++; } } /** * Theme post meta mods */ function bastet_add_meta_mods() { $locations = bastet_get_avilable_locations(); $page = array_search( 'page', $locations, true ); unset( $locations[ $page ] ); foreach ( $locations as $location ) { bastet_generate_meta_mods( $location ); } } add_action( 'init', 'bastet_add_meta_mods' ); /** * Single post styles */ function bastet_single_layout_mods() { return array( 'large-header' => esc_html__( 'Large Header', 'bastet' ), 'classic' => esc_html__( 'Classic Blog', 'bastet' ), 'classic-alt' => esc_html__( 'Classic Blog Alt', 'bastet' ), ); } Bastet_Kirki::add_config( 'bastet_theme_mods', array( 'capability' => 'edit_theme_options', 'option_type' => 'theme_mod', ) ); /************************************************************************************************* /***************************************** Customize Panels ***************************************** */ Bastet_Kirki::add_panel( 'bastet_logo', array( 'priority' => 38, 'title' => esc_html__( 'Logo', 'bastet' ), 'icon' => 'dashicons-vault', ) ); Bastet_Kirki::add_panel( 'bastet_layout', array( 'priority' => 40, 'title' => esc_html__( 'Layout', 'bastet' ), 'icon' => 'dashicons-screenoptions', ) ); Bastet_Kirki::add_panel( 'bastet_typo', array( 'priority' => 40, 'title' => esc_html__( 'Typography', 'bastet' ), 'icon' => 'dashicons-editor-textcolor', ) ); Bastet_Kirki::add_panel( 'bastet_colors', array( 'priority' => 40, 'title' => esc_html__( 'Colors', 'bastet' ), 'icon' => 'dashicons-admin-customizer', ) ); /************************************************************************************************* /***************************************** Logo ***************************************** */ Bastet_Kirki::add_section( 'bastet_logo_image', array( 'title' => esc_html__( 'Image Logo', 'bastet' ), 'panel' => 'bastet_logo', 'priority' => 160, ) ); Bastet_Kirki::add_section( 'bastet_logo_text', array( 'title' => esc_html__( 'Typography Logo', 'bastet' ), 'panel' => 'bastet_logo', 'priority' => 160, ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'typography', 'settings' => 'logo_typography_setting', 'label' => esc_html__( 'Logo Typography', 'bastet' ), 'section' => 'bastet_logo_text', 'default' => array( 'font-family' => 'Poppins', 'variant' => '700', 'font-size' => '28px', 'line-height' => '1', 'letter-spacing' => '-0.5px', 'color' => '#000', 'text-transform' => 'none', 'text-align' => 'left', ), 'choices' => array( 'fonts' => array( 'google' => $bastet_allowed_google_fonts, 'standard' => array( 'serif', 'sans-serif' ), ), ), 'priority' => 10, 'transport' => 'auto', 'output' => array( array( 'element' => '.site-header .navbar-brand', ), array( 'element' => '.offcanvas-logo', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'generic', 'settings' => 'bastet_logo_help', 'label' => esc_html__( 'Upload Logo Image', 'bastet' ), 'description' => esc_html__( 'To upload the logo image please go to Site Identity section', 'bastet' ), 'default' => '', 'section' => 'bastet_logo_image', 'choices' => array( 'element' => 'p', ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'slider', 'settings' => 'bastet_logo_height', 'label' => esc_html__( 'Logo Image Max Height', 'bastet' ), 'description' => esc_html__( 'Width will be adapted depends on the height value', 'bastet' ), 'default' => 42, 'section' => 'bastet_logo_image', 'transport' => 'postMessage', 'js_vars' => array( array( 'element' => '.site-header .site-logo', 'function' => 'css', 'property' => 'max-height', 'units' => 'px', ), ), 'choices' => array( 'min' => 0, 'max' => 150, 'step' => 0.5, ), 'output' => array( array( 'element' => '.site-header .site-logo', 'property' => 'max-height', 'units' => 'px', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'slider', 'settings' => 'bastet_header_height', 'label' => esc_html__( 'Header Spacing', 'bastet' ), 'description' => esc_html__( 'Increase height on top and bottom of site logo', 'bastet' ), 'default' => 94, 'section' => 'bastet_logo_image', 'transport' => 'postMessage', 'js_vars' => array( array( 'element' => '.header-logo .header-logo-wrap', 'function' => 'css', 'property' => 'min-height', 'units' => 'px', ), ), 'choices' => array( 'min' => 0, 'max' => 350, 'step' => 1, ), 'output' => array( array( 'element' => '.header-logo .header-logo-wrap', 'property' => 'min-height', 'units' => 'px', ), ), ) ); /************************************************************************************************* /***************************************** Header ***************************************** */ Bastet_Kirki::add_section( 'bastet_header', array( 'priority' => 39, 'title' => esc_html__( 'Header', 'bastet' ), 'icon' => 'dashicons-schedule', ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'radio-image', 'settings' => 'header_style', 'label' => esc_html__( 'Header Style', 'bastet' ), 'description' => esc_html__( 'Some features are available for certain header styles only', 'bastet' ), 'default' => 'light', 'section' => 'bastet_header', 'choices' => array( 'solid' => get_template_directory_uri() . '/images/customizer/header1.jpg', 'transparent' => get_template_directory_uri() . '/images/customizer/header-transparent.png', 'light' => get_template_directory_uri() . '/images/customizer/header-light.png', ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'switch', 'settings' => 'top_header', 'label' => esc_html__( 'Enable Top Header', 'bastet' ), 'description' => esc_html__( 'If you enabled header social icons they will be shown on top header', 'bastet' ), 'default' => 'off', 'section' => 'bastet_header', 'choices' => array( 'on' => esc_html__( 'On', 'bastet' ), 'off' => esc_html__( 'Off', 'bastet' ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'switch', 'settings' => 'header_archive_dark', 'label' => esc_html__( 'Add Dark Background on Archive', 'bastet' ), 'description' => esc_html__( 'To improve reliability on archive and single pages', 'bastet' ), 'default' => 'on', 'section' => 'bastet_header', 'choices' => array( 'on' => esc_html__( 'On', 'bastet' ), 'off' => esc_html__( 'Off', 'bastet' ), ), 'active_callback' => array( array( 'setting' => 'header_style', 'operator' => '==', 'value' => 'transparent', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'switch', 'settings' => 'header_search', 'label' => esc_html__( 'Show Search Icon', 'bastet' ), 'description' => esc_html__( 'This will add search off canvas sidebar at your site footer', 'bastet' ), 'default' => 'off', 'section' => 'bastet_header', 'choices' => array( 'on' => esc_html__( 'On', 'bastet' ), 'off' => esc_html__( 'Off', 'bastet' ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'switch', 'settings' => 'header_fixed', 'label' => esc_html__( 'Fixed Mode', 'bastet' ), 'description' => esc_html__( 'Keep the header always on top while scroll to bottom', 'bastet' ), 'default' => 'off', 'section' => 'bastet_header', 'choices' => array( 'on' => esc_html__( 'On', 'bastet' ), 'off' => esc_html__( 'Off', 'bastet' ), ), 'active_callback' => array( array( 'setting' => 'header_shy', 'operator' => '==', 'value' => false, ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'switch', 'settings' => 'header_shy', 'label' => esc_html__( 'Shy Mode', 'bastet' ), 'description' => esc_html__( 'ShyMode will show the header on scroll to top and hide it when scroll to bottom', 'bastet' ), 'default' => 'off', 'section' => 'bastet_header', 'choices' => array( 'on' => esc_html__( 'On', 'bastet' ), 'off' => esc_html__( 'Off', 'bastet' ), ), 'active_callback' => array( array( 'setting' => 'header_fixed', 'operator' => '==', 'value' => false, ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'switch', 'settings' => 'header_social', 'label' => esc_html__( 'Show Social Icons', 'bastet' ), 'description' => esc_html__( 'You need to add your social links one by one next', 'bastet' ), 'default' => 'off', 'section' => 'bastet_header', 'choices' => array( 'on' => esc_html__( 'On', 'bastet' ), 'off' => esc_html__( 'Off', 'bastet' ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'repeater', 'label' => esc_html__( 'Social Icons', 'bastet' ), 'section' => 'bastet_header', 'priority' => 10, 'row_label' => array( 'type' => 'text', 'value' => esc_html__( 'Social Icon', 'bastet' ), ), 'button_label' => esc_html__( 'Add New Social Icon', 'bastet' ), 'settings' => 'header_social_icons', 'default' => array( array( 'provider' => 'facebook', 'url' => '#', ), ), 'fields' => array( 'provider' => array( 'type' => 'select', 'label' => esc_html__( 'Social', 'bastet' ), 'default' => '', 'choices' => $bastet_social_icons, ), 'url' => array( 'type' => 'text', 'label' => esc_html__( 'Social URL', 'bastet' ), 'default' => '', ), ), 'active_callback' => array( array( 'setting' => 'header_social', 'operator' => '==', 'value' => true, ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'image', 'settings' => 'header_scroll_logo', 'label' => esc_html__( 'Header Scroll Logo', 'bastet' ), 'description' => esc_html__( 'This logo will be shown for fixed and shy mode only', 'bastet' ), 'default' => '', 'section' => 'bastet_header', 'choices' => array( 'save_as' => 'id', ), ) ); /************************************************************************************************* /***************************************** Layout ***************************************** */ Bastet_Kirki::add_section( 'bastet_home_layout', array( 'title' => esc_html__( 'Home Layout', 'bastet' ), 'panel' => 'bastet_layout', 'priority' => 160, ) ); Bastet_Kirki::add_section( 'bastet_category_layout', array( 'title' => esc_html__( 'Category Layout', 'bastet' ), 'panel' => 'bastet_layout', 'priority' => 160, ) ); Bastet_Kirki::add_section( 'bastet_author_layout', array( 'title' => esc_html__( 'Author Layout', 'bastet' ), 'panel' => 'bastet_layout', 'priority' => 160, ) ); Bastet_Kirki::add_section( 'bastet_search_layout', array( 'title' => esc_html__( 'Search Layout', 'bastet' ), 'panel' => 'bastet_layout', 'priority' => 160, ) ); Bastet_Kirki::add_section( 'bastet_archive_layout', array( 'title' => esc_html__( 'Archive Layout', 'bastet' ), 'panel' => 'bastet_layout', 'priority' => 160, ) ); /************************************************************************************************* /****************************************** Single */ Bastet_Kirki::add_section( 'bastet_single_layout', array( 'priority' => 40, 'title' => esc_html__( 'Single Post', 'bastet' ), 'icon' => 'dashicons-format-aside', ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'radio', 'settings' => 'bastet_layout_single', 'label' => esc_html__( 'Post Layout', 'bastet' ), 'default' => 'large-header', 'section' => 'bastet_single_layout', 'choices' => bastet_single_layout_mods(), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'switch', 'settings' => 'single_author_box', 'label' => esc_html__( 'Enable Author Box', 'bastet' ), 'default' => 'off', 'section' => 'bastet_single_layout', 'choices' => array( 'on' => esc_html__( 'On', 'bastet' ), 'off' => esc_html__( 'Off', 'bastet' ), ), ) ); /************************************************************************************************* /***************************************** Page ***************************************** */ Bastet_Kirki::add_section( 'bastet_page_layout', array( 'priority' => 40, 'title' => esc_html__( 'Single Page', 'bastet' ), 'icon' => 'dashicons-format-aside', ) ); /************************************************************************************************* /***************************************** Footer ***************************************** */ Bastet_Kirki::add_section( 'bastet_footer', array( 'priority' => 40, 'title' => esc_html__( 'Footer', 'bastet' ), 'icon' => 'dashicons-align-full-width', ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'switch', 'settings' => 'footer_widgets', 'label' => esc_html__( 'Footer Widgets Area', 'bastet' ), 'default' => 'off', 'section' => 'bastet_footer', 'choices' => array( 'on' => esc_html__( 'On', 'bastet' ), 'off' => esc_html__( 'Off', 'bastet' ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'radio-image', 'settings' => 'footer_columns', 'label' => esc_html__( 'Footer Widgets Columns', 'bastet' ), 'description' => esc_html__( 'It\'s recommended to use only one widget for each footer column ', 'bastet' ), 'default' => 'footer-1', 'section' => 'bastet_footer', 'choices' => array( 'footer-1' => get_template_directory_uri() . '/images/customizer/footer-layout-01.svg', 'footer-2' => get_template_directory_uri() . '/images/customizer/footer-layout-02.svg', 'footer-3' => get_template_directory_uri() . '/images/customizer/footer-layout-03.svg', 'footer-4' => get_template_directory_uri() . '/images/customizer/footer-layout-04.svg', 'footer-62' => get_template_directory_uri() . '/images/customizer/footer-layout-62.svg', 'footer-26' => get_template_directory_uri() . '/images/customizer/footer-layout-26.svg', 'footer-36' => get_template_directory_uri() . '/images/customizer/footer-layout-26.svg', ), 'active_callback' => array( array( 'setting' => 'footer_widgets', 'operator' => '==', 'value' => true, ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'select', 'settings' => 'footer_widget_align', 'label' => esc_html__( 'Text Align', 'bastet' ), 'default' => 'center', 'section' => 'bastet_footer', 'choices' => array( 'left' => esc_html__( 'Left', 'bastet' ), 'center' => esc_html__( 'Center', 'bastet' ), 'right' => esc_html__( 'Right', 'bastet' ), ), 'output' => array( array( 'element' => '.footer-widgets', 'property' => 'text-align', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'select', 'settings' => 'footer_copyright_type', 'label' => esc_html__( 'Copyright Text Type', 'bastet' ), 'description' => esc_html__( 'Dynamic type will show your site title with current year, Custom type will allow you to add your own text or shortcode', 'bastet' ), 'default' => 'dynamic', 'section' => 'bastet_footer', 'choices' => array( 'dynamic' => esc_html__( 'Dynamic', 'bastet' ), 'custom' => esc_html__( 'Custom', 'bastet' ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'textarea', 'settings' => 'footer_copyright_custom', 'label' => esc_html__( 'Copyright Custom Text', 'bastet' ), 'description' => esc_html__( 'Shortcodes are supported ', 'bastet' ), 'default' => '', 'section' => 'bastet_footer', 'active_callback' => array( array( 'setting' => 'footer_copyright_type', 'operator' => '==', 'value' => 'custom', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'switch', 'settings' => 'footer_social', 'label' => esc_html__( 'Show Social Icons', 'bastet' ), 'default' => 'off', 'section' => 'bastet_footer', 'choices' => array( 'on' => esc_html__( 'On', 'bastet' ), 'off' => esc_html__( 'Off', 'bastet' ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'repeater', 'label' => esc_html__( 'Social Icons', 'bastet' ), 'section' => 'bastet_footer', 'priority' => 10, 'row_label' => array( 'type' => 'text', 'value' => esc_html__( 'Social Icon', 'bastet' ), ), 'button_label' => esc_html__( 'Add New Social Icon', 'bastet' ), 'settings' => 'footer_social_icons', 'default' => array( array( 'provider' => 'facebook', 'url' => '#', ), ), 'fields' => array( 'provider' => array( 'type' => 'select', 'label' => esc_html__( 'Social', 'bastet' ), 'default' => '', 'choices' => $bastet_social_icons, ), 'url' => array( 'type' => 'text', 'label' => esc_html__( 'Social URL', 'bastet' ), 'default' => '', ), ), 'active_callback' => array( array( 'setting' => 'footer_social', 'operator' => '==', 'value' => true, ), ), ) ); /************************************************************************************************* /****************************************** Typography ****************************************** */ Bastet_Kirki::add_section( 'bastet_typo_body', array( 'title' => esc_html__( 'Body Typography', 'bastet' ), 'panel' => 'bastet_typo', 'priority' => 160, ) ); Bastet_Kirki::add_section( 'bastet_typo_heading', array( 'title' => esc_html__( 'Heading Typography', 'bastet' ), 'panel' => 'bastet_typo', 'priority' => 160, ) ); Bastet_Kirki::add_section( 'bastet_typo_parg', array( 'title' => esc_html__( 'Paragraph Typography', 'bastet' ), 'panel' => 'bastet_typo', 'priority' => 160, ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'typography', 'settings' => 'body_typography_body', 'label' => esc_html__( 'Body Typography', 'bastet' ), 'section' => 'bastet_typo_body', 'default' => array( 'font-family' => 'Poppins', 'variant' => '400', 'font-size' => '1rem', 'line-height' => '1.5', 'text-align' => 'left', ), 'choices' => array( 'fonts' => array( 'google' => $bastet_allowed_google_fonts, 'standard' => array( 'serif', 'sans-serif' ), ), ), 'priority' => 10, 'transport' => 'auto', 'output' => array( array( 'element' => 'body', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'typography', 'settings' => 'body_typography_parg', 'label' => esc_html__( 'Paragraph Typography', 'bastet' ), 'section' => 'bastet_typo_parg', 'default' => array( 'font-family' => 'Roboto Slab', 'variant' => '400', 'font-size' => '1.05em', 'line-height' => '1.749em', ), 'choices' => array( 'fonts' => array( 'google' => $bastet_allowed_google_fonts, 'standard' => array( 'serif', 'sans-serif' ), ), ), 'priority' => 10, 'transport' => 'auto', 'output' => array( array( 'element' => 'p', ), array( 'element' => '.copy-font', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'typography', 'settings' => 'body_typography_heading', 'label' => esc_html__( 'Heading Typography', 'bastet' ), 'section' => 'bastet_typo_heading', 'default' => array( 'font-family' => 'Poppins', 'variant' => '700', ), 'choices' => array( 'fonts' => array( 'google' => $bastet_allowed_google_fonts, 'standard' => array( 'serif', 'sans-serif' ), ), 'variant' => array( 'regular', 'italic', '600', '600italic', '700', '700italic', ), ), 'priority' => 10, 'transport' => 'auto', 'output' => array( array( 'element' => 'h1', ), array( 'element' => 'h2', ), array( 'element' => 'h3', ), array( 'element' => 'h4', ), array( 'element' => 'h5', ), array( 'element' => 'h6', ), array( 'element' => '.heading-font', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'typography', 'settings' => 'h1_typography', 'label' => esc_html__( 'H1 Typography', 'bastet' ), 'section' => 'bastet_typo_heading', 'default' => array( 'font-size' => '2.125em', 'line-height' => '1.14352941em', ), 'priority' => 10, 'transport' => 'auto', 'output' => array( array( 'element' => 'h1', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'typography', 'settings' => 'h2_typography', 'label' => esc_html__( 'H2 Typography', 'bastet' ), 'section' => 'bastet_typo_heading', 'default' => array( 'font-size' => '1.875em', 'line-height' => '1.296em', 'letter-spacing' => '0px', ), 'priority' => 10, 'transport' => 'auto', 'output' => array( array( 'element' => 'h2', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'typography', 'settings' => 'h3_typography', 'label' => esc_html__( 'H3 Typography', 'bastet' ), 'section' => 'bastet_typo_heading', 'default' => array( 'font-size' => '1.625em', 'line-height' => '1.21846154em', ), 'priority' => 10, 'transport' => 'auto', 'output' => array( array( 'element' => 'h3', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'typography', 'settings' => 'h4_typography', 'label' => esc_html__( 'H4 Typography', 'bastet' ), 'section' => 'bastet_typo_heading', 'default' => array( 'font-size' => '1.375em', 'line-height' => '1.28727273em', ), 'priority' => 10, 'transport' => 'auto', 'output' => array( array( 'element' => 'h4', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'typography', 'settings' => 'h5_typography', 'label' => esc_html__( 'H5 Typography', 'bastet' ), 'section' => 'bastet_typo_heading', 'default' => array( 'font-size' => '1.125em', 'line-height' => '1.33333333em', ), 'priority' => 10, 'transport' => 'auto', 'output' => array( array( 'element' => 'h5', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'typography', 'settings' => 'h6_typography', 'label' => esc_html__( 'H6 Typography', 'bastet' ), 'section' => 'bastet_typo_heading', 'default' => array( 'font-size' => '1em', 'line-height' => '1.5em', ), 'priority' => 10, 'transport' => 'auto', 'output' => array( array( 'element' => 'h6', ), ), ) ); /************************************************************************************************* /***************************************** Colors ***************************************** */ Bastet_Kirki::add_section( 'bastet_general_colors', array( 'title' => esc_html__( 'General Colors', 'bastet' ), 'panel' => 'bastet_colors', 'priority' => 160, ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'body_color', 'label' => esc_html__( 'Body Color', 'bastet' ), 'section' => 'bastet_general_colors', 'default' => '#545454', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => 'body', 'property' => 'color', ), array( 'element' => ':root', 'property' => '--body-color', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'heading_color', 'label' => esc_html__( 'Heading Color', 'bastet' ), 'section' => 'bastet_general_colors', 'default' => '#0a0a0a', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => 'h1', 'property' => 'color', ), array( 'element' => 'h2', 'property' => 'color', ), array( 'element' => 'h3', 'property' => 'color', ), array( 'element' => 'h4', 'property' => 'color', ), array( 'element' => 'h5', 'property' => 'color', ), array( 'element' => 'h6', 'property' => 'color', ), array( 'element' => ':root', 'property' => '--heading-color', ), ), ) ); Bastet_Kirki::add_section( 'bastet_theme_colors', array( 'title' => esc_html__( 'Theme Palette', 'bastet' ), 'panel' => 'bastet_colors', 'priority' => 160, ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'primary_color', 'label' => esc_html__( 'Primary Color', 'bastet' ), 'section' => 'bastet_theme_colors', 'default' => '#fa192f', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => ':root', 'property' => '--primary-color', ), array( 'element' => ':root', 'property' => '--swiper-theme-color', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'sec_color', 'label' => esc_html__( 'Secondary Color', 'bastet' ), 'section' => 'bastet_theme_colors', 'default' => '#5d92d1', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => ':root', 'property' => '--secondary-color', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'sec_alt_color', 'label' => esc_html__( 'Alternative Color', 'bastet' ), 'section' => 'bastet_theme_colors', 'default' => '#f2f2f1', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => ':root', 'property' => '--secondary-alt-color', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'shadow_color', 'label' => esc_html__( 'Shadow Color', 'bastet' ), 'section' => 'bastet_theme_colors', 'default' => 'rgba(0,0,0,0.06)', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => ':root', 'property' => '--global-shadow-color', ), ), ) ); Bastet_Kirki::add_section( 'bastet_header_colors', array( 'title' => esc_html__( 'Header Colors', 'bastet' ), 'panel' => 'bastet_colors', 'priority' => 160, ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'background', 'settings' => 'header_background_setting', 'label' => esc_html__( 'Background Control', 'bastet' ), 'section' => 'bastet_header_colors', 'default' => array( 'background-color' => '#fff', 'background-image' => '', 'background-repeat' => 'no-repeat', 'background-position' => 'center center', 'background-size' => 'cover', 'background-attachment' => 'scroll', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.site-header', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'header_overlay_color', 'label' => esc_html__( 'Overlay Background Color', 'bastet' ), 'section' => 'bastet_header_colors', 'default' => 'rgba(0,0,0,0)', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '.site-header .header-wrap:after', 'property' => 'background-color', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'header_border_color', 'label' => esc_html__( 'Border Bottom Color', 'bastet' ), 'section' => 'bastet_header_colors', 'default' => 'rgba(0,0,0,0.06)', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '.site-header', 'property' => 'border-color', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'header_color', 'label' => esc_html__( 'Links Color', 'bastet' ), 'section' => 'bastet_header_colors', 'default' => '#363533', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '.site-header .navbar .navbar-nav li a', 'property' => 'color', ), array( 'element' => '.site-header .bastet-header-social a', 'property' => 'color', ), array( 'element' => '.site-header .navbar-toggler', 'property' => 'color', ), array( 'element' => '.site-header .search_icon', 'property' => 'color', 'suffix' => ' !important', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'header_color_hover', 'label' => esc_html__( 'Links Color Hover', 'bastet' ), 'section' => 'bastet_header_colors', 'default' => '#1e1817', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '.site-header .navbar .navbar-nav li a:hover', 'property' => 'color', ), array( 'element' => '.site-header .navbar .navbar-nav li a:active', 'property' => 'color', ), array( 'element' => '.site-header .navbar .navbar-nav li a:focus', 'property' => 'color', ), array( 'element' => '.site-header .navbar-brand a:hover', 'property' => 'color', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'header_submenu_bg', 'label' => esc_html__( 'Sub Menu Backgroun', 'bastet' ), 'section' => 'bastet_header_colors', 'default' => '#fff', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '.site-header .dropdown-menu', 'property' => 'background-color', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'header_submenu_color', 'label' => esc_html__( 'Sub Menu Color', 'bastet' ), 'section' => 'bastet_header_colors', 'default' => '#333', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '.site-header .navbar .navbar-nav li .dropdown-menu li a', 'property' => 'color', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'header_submenu_border', 'label' => esc_html__( 'Sub Menu Border Color', 'bastet' ), 'section' => 'bastet_header_colors', 'default' => 'rgba(0, 0, 0, 0.15)', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '.site-header .dropdown-menu', 'property' => 'border-color', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'header_social_color', 'label' => esc_html__( 'Social Icons Color', 'bastet' ), 'section' => 'bastet_header_colors', 'default' => '', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '.bastet-header-social a', 'property' => 'color', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'header_scroll_bg', 'label' => esc_html__( 'Scroll Header:: Background', 'bastet' ), 'section' => 'bastet_header_colors', 'default' => 'rgba( 250, 250, 250, 0.8)', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '.site-header.show .header-logo', 'property' => 'background-color', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'header_scroll_border_color', 'label' => esc_html__( 'Scroll Header:: Border Bottom Color', 'bastet' ), 'section' => 'bastet_header_colors', 'default' => 'rgba( 0, 0, 0, 0.18)', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '.site-header.show .header-logo', 'property' => 'border-color', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'header_scroll_color', 'label' => esc_html__( 'Scroll Header:: Links Color', 'bastet' ), 'section' => 'bastet_header_colors', 'default' => '#231815', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '.site-header.show .navbar .navbar-nav li a', 'property' => 'color', ), array( 'element' => '.site-header.show .navbar .navbar-nav li.search-menu', 'property' => 'color', ), array( 'element' => '.site-header.show .search_icon', 'property' => 'color', ), array( 'element' => '.site-header.show .navbar-brand a', 'property' => 'color', ), array( 'element' => '.site-header.show .bastet-header-social a', 'property' => 'color', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'header_scroll_color_hover', 'label' => esc_html__( 'Scroll Header:: Links Color Hover', 'bastet' ), 'section' => 'bastet_header_colors', 'default' => '#1e1817', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '.site-header.show .navbar .navbar-nav li a:hover', 'property' => 'color', ), array( 'element' => '.site-header.show .navbar .navbar-nav li a:active', 'property' => 'color', ), array( 'element' => '.site-header.show .navbar .navbar-nav li a:focus', 'property' => 'color', ), array( 'element' => '.site-header.show .navbar-brand a:hover', 'property' => 'color', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'header_scroll_submenu_bg', 'label' => esc_html__( 'Scroll Header:: Sub Menu Backgroun', 'bastet' ), 'section' => 'bastet_header_colors', 'default' => '#fff', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '.site-header .dropdown-menu', 'property' => 'background-color', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'header_scroll_submenu_color', 'label' => esc_html__( 'Scroll Header:: Sub Menu Color', 'bastet' ), 'section' => 'bastet_header_colors', 'default' => '#333', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '.site-header.show .navbar .navbar-nav li .dropdown-menu li a', 'property' => 'color', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'header_scroll_submenu_border', 'label' => esc_html__( 'Scroll Header:: Sub Menu Border Color', 'bastet' ), 'section' => 'bastet_header_colors', 'default' => 'rgba(0, 0, 0, 0.15)', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '.site-header.show .dropdown-menu', 'property' => 'border-color', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'background', 'settings' => 'top_header_background_setting', 'label' => esc_html__( 'Top Header:: Background', 'bastet' ), 'section' => 'bastet_header_colors', 'default' => array( 'background-color' => '#fff', 'background-image' => '', 'background-repeat' => 'no-repeat', 'background-position' => 'center center', 'background-size' => 'cover', 'background-attachment' => 'scroll', ), 'transport' => 'auto', 'output' => array( array( 'element' => '.site-header .top-header', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'top_header_color', 'label' => esc_html__( 'Top Header:: Color', 'bastet' ), 'section' => 'bastet_header_colors', 'default' => '#363533', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '.site-header .top-header', 'property' => 'color', ), array( 'element' => '.site-header .top-header .navbar .navbar-nav li a', 'property' => 'color', ), array( 'element' => '.top-header .bastet-header-social a', 'property' => 'color', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'top_header_color_hover', 'label' => esc_html__( 'Top Header:: Color Hover', 'bastet' ), 'section' => 'bastet_header_colors', 'default' => '#1e1817', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '.site-header .top-header:hover', 'property' => 'color', ), array( 'element' => '.site-header .top-header .navbar .navbar-nav li a:hover', 'property' => 'color', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'top_header_scroll_border_color', 'label' => esc_html__( 'Top Header:: Border Bottom Color', 'bastet' ), 'section' => 'bastet_header_colors', 'default' => 'rgba( 0, 0, 0, 0.18)', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '.site-header .top-header', 'property' => 'border-color', ), ), ) ); Bastet_Kirki::add_section( 'bastet_footer_colors', array( 'title' => esc_html__( 'Footer Colors', 'bastet' ), 'panel' => 'bastet_colors', 'priority' => 160, ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'footer_widgets_bg', 'label' => esc_html__( 'Footer Widgets Background', 'bastet' ), 'section' => 'bastet_footer_colors', 'default' => '#ededed', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '.footer-widgets', 'property' => 'background-color', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'footer_widgets_color', 'label' => esc_html__( 'Footer Widgets Color', 'bastet' ), 'section' => 'bastet_footer_colors', 'default' => '#292828', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '.footer-widgets', 'property' => 'color', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'footer_bottom_bg', 'label' => esc_html__( 'Bottom Footer Background', 'bastet' ), 'section' => 'bastet_footer_colors', 'default' => '#ededed', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '.site-info', 'property' => 'background-color', ), ), ) ); Bastet_Kirki::add_field( 'bastet_theme_mods', array( 'type' => 'color', 'settings' => 'footer_bottom_color', 'label' => esc_html__( 'Bottom Footer Color', 'bastet' ), 'section' => 'bastet_footer_colors', 'default' => '#292828', 'transport' => 'auto', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '.site-info', 'property' => 'color', ), ), ) );