$panel, 'title' => esc_html__( 'Global Header Area Replacement', 'absolute-weaver' ), 'description' => esc_html__( 'Replace Weaver Header Area with Page Builder page.', 'absolute-weaver' ), 'options' => array( 'pb-hdr1' => aweaver_cz_group_title( __( 'Header Replacement Page', 'absolute-weaver' ), __( 'You can replace the entire Weaver Header area with the content from a page builder page. None of the standard theme header elements except the menu bars will be displayed. You can also specify a Header Replacement as a Per Page option.', 'absolute-weaver' ) ), 'pb_header_hide_menus' => array( 'setting' => array(), 'control' => array( 'label' => __( 'Hide Weaver Menus', 'absolute-weaver' ) . AWEAVER_REFRESH_ICON, 'description' => __( 'Check to hide the Weaver Primary Menu normally displayed below the replacement page.', 'absolute-weaver' ), 'type' => 'checkbox', ), ), ), ); if ( defined( 'ELEMENTOR_VERSION' ) ) { // only provide if elementor is active $pb_sections['pb-header-replace']['options']['elementor_header_replacement'] = aweaver_cz_select( __( 'Elementor Header Replacement', 'absolute-weaver' ), __( 'Select an Elementor Page or Post to replace the Header Area.', 'absolute-weaver' ), 'aweaver_cz_choices_elementor_pages', 'none', 'refresh' ); } if ( defined( 'SITEORIGIN_PANELS_VERSION' ) ) { // only provide if siteorigins is active $pb_sections['pb-header-replace']['options']['siteorigin_header_replacement'] = aweaver_cz_select( __( 'SiteOrigin Header Replacement', 'absolute-weaver' ), __( 'Select an SiteOrigin Page or Post to replace the Header Area.', 'absolute-weaver' ), 'aweaver_cz_choices_siteorigin_pages', 'none', 'refresh' ); } if ( ! defined( 'ELEMENTOR_VERSION' ) && ! defined( 'SITEORIGIN_PANELS_VERSION' ) ) { $pb_sections['pb-header-replace']['options']['no-pb1'] = aweaver_cz_group_title( __( 'No Page Builder Detected', 'absolute-weaver' ), __( 'Sorry, Weaver can only show a list of page builder pages from Elementor or SiteOrigin Page Builder, but you can still provide a page/post ID. Please install and activate one of those plugins.', 'absolute-weaver' ) ); } $pb_sections['pb-header-replace']['options']['pb_header_replace_page_id'] = aweaver_cz_textarea( __( 'Page or Post ID Header Replacement', 'absolute-weaver' ), __( 'Provide any page or post ID to serve as header replacement. Overrides list selection above. Does not have to be from a page builder.', 'absolute-weaver' ), 1, '', 'refresh', false, 'aweaver_cz_sanitize_int' ); $pb_sections['footer-pb-replace'] = array( 'panel' => $panel, 'title' => esc_html__( 'Global Footer Area Replacement', 'absolute-weaver' ), 'description' => esc_html__( 'Replace Weaver Footer Area with Page Builder page.', 'absolute-weaver' ), 'options' => array( 'pb-ftr1' => aweaver_cz_group_title( __( 'Footer Replacement', 'absolute-weaver' ), __( 'You can replace the entire Weaver Footer area with the content from a page builder page. None of the standard theme footer elements will be displayed. You can also specify a Footer Replacement as a Per Page option.', 'absolute-weaver' ) ), ), ); if ( defined( 'ELEMENTOR_VERSION' ) ) { // only provide if elementor is active $pb_sections['footer-pb-replace']['options']['elementor_footer_replacement'] = aweaver_cz_select( __( 'Elementor Footer Replacement', 'absolute-weaver' ), __( 'Select an Elementor Page or Post to replace the Footer Area.', 'absolute-weaver' ), 'aweaver_cz_choices_elementor_pages', 'none', 'refresh' ); } if ( defined( 'SITEORIGIN_PANELS_VERSION' ) ) { // only provide if siteorigins is active $pb_sections['footer-pb-replace']['options']['siteorigin_footer_replacement'] = aweaver_cz_select( __( 'SiteOrigin Footer Replacement', 'absolute-weaver' ), __( 'Select an SiteOrigin Page or Post to replace the Footer Area.', 'absolute-weaver' ), 'aweaver_cz_choices_siteorigin_pages', 'none', 'refresh' ); } if ( ! defined( 'ELEMENTOR_VERSION' ) && ! defined( 'SITEORIGIN_PANELS_VERSION' ) ) { $pb_sections['footer-pb-replace']['options']['no-pb2'] = aweaver_cz_group_title( __( 'No Page Builder Detected', 'absolute-weaver' ), __( 'Sorry, Weaver can only show a list of page builder pages from Elementor or SiteOrigin Page Builder, but you can still provide a page/post ID. Please install and activate one of those plugins.', 'absolute-weaver' ) ); } $pb_sections['footer-pb-replace']['options']['pb_footer_replace_page_id'] = aweaver_cz_textarea( __( 'Page or Post ID Footer Replacement', 'absolute-weaver' ), __( 'Provide any page or post ID to serve as footer replacement. Overrides list selection above. Does not have to be from a page builder', 'absolute-weaver' ), 1, '', 'refresh', false, 'aweaver_cz_sanitize_int' ); $pb_sections['pb-elementor'] = array( 'panel' => $panel, 'title' => esc_html__( 'Elementor', 'absolute-weaver' ), 'description' => esc_html__( 'Weaver theme overrides for Elementor Page Builder.', 'absolute-weaver' ), 'options' => array( 'pb-title1' => aweaver_cz_group_title( __( 'Elementor Default Colors (Global)', 'absolute-weaver' ), __( 'You can override the Elementor per Page/Post Default Color Palette values ( Primary, Secondary, Text, and Accent ) globally by setting as many of the following color values you wish. These colors will be used for ALL Elementor Pages or Posts, whether or not you have chosen a Color Palette, or have disabled the Default Colors in the Elementor:Settings admin menu. The goal is to allow you to match your Weaver theme settings with your Elementor designs. You do not need to set all four colors. Any you don\'t specify will show the default Elementor color.', 'absolute-weaver' ) ), 'elementor_primary_color' => array( 'setting' => array( 'sanitize_callback' => AWEAVER_CZ_SANITIZE_COLOR, 'transport' => 'refresh', 'default' => '', ), 'control' => array( 'control_type' => AWEAVER_COLOR_CONTROL, 'label' => __( 'Elementor Primary Color', 'absolute-weaver' ), 'description' => __( 'The Primary color is used for Elementor Titles and other elements.', 'absolute-weaver' ), ), ), 'elementor_secondary_color' => array( 'setting' => array( 'sanitize_callback' => AWEAVER_CZ_SANITIZE_COLOR, 'transport' => 'refresh', 'default' => '', ), 'control' => array( 'control_type' => AWEAVER_COLOR_CONTROL, 'label' => __( 'Elementor Secondary Color', 'absolute-weaver' ), 'description' => __( 'The Secondary color is used in just a few Elementor elements.', 'absolute-weaver' ), ), ), 'elementor_text_color' => array( 'setting' => array( 'sanitize_callback' => AWEAVER_CZ_SANITIZE_COLOR, 'transport' => 'refresh', 'default' => '', ), 'control' => array( 'control_type' => AWEAVER_COLOR_CONTROL, 'label' => __( 'Elementor Text Color', 'absolute-weaver' ), 'description' => __( 'The Text color is used as the main text color in most of the Elementor elements.', 'absolute-weaver' ), ), ), 'elementor_accent_color' => array( 'setting' => array( 'sanitize_callback' => AWEAVER_CZ_SANITIZE_COLOR, 'transport' => 'refresh', 'default' => '', ), 'control' => array( 'control_type' => AWEAVER_COLOR_CONTROL, 'label' => __( 'Elementor Accent Color', 'absolute-weaver' ), 'description' => __( 'The Accent color is used as ta highlight color in some Elementor elements such as the TAB element.', 'absolute-weaver' ), ), ), ), ); return $pb_sections; } endif;