Astra_Ext_Sticky_Header_Loader::theme_defaults( array $defaults )
Set Options Default Values
Description
Parameters
- $defaults
-
(array) (Required) Astra options default value array.
Return
(array)
Source
File: addons/sticky-header/classes/class-astra-ext-sticky-header-loader.php
public function theme_defaults( $defaults ) { $defaults['header-main-shrink'] = 1; $defaults['different-sticky-logo'] = 0; $defaults['different-sticky-retina-logo'] = 0; $defaults['header-main-stick'] = 0; $defaults['header-above-stick'] = 0; $defaults['header-below-stick'] = 0; $defaults['sticky-header-bg-opc'] = 1; $defaults['sticky-hide-on-scroll'] = 0; $defaults['sticky-header-on-devices'] = 'desktop'; $defaults['sticky-header-style'] = 'none'; $defaults['sticky-header-logo'] = ''; $defaults['sticky-header-retina-logo'] = ''; $defaults['sticky-header-logo-width'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); /** * Sticky Header */ $defaults['sticky-header-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-header-color-site-title-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-header-builder-site-title-color'] = ''; $defaults['sticky-header-builder-site-title-h-color'] = ''; $defaults['sticky-header-builder-site-tagline-color'] = ''; $component_limit = astra_addon_builder_helper()->component_limit; for ( $index = 1; $index <= $component_limit; $index++ ) { /** * Sticky Header > Menu color configs. */ $defaults[ 'sticky-header-menu' . $index . '-color-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'sticky-header-menu' . $index . '-bg-obj-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'sticky-header-menu' . $index . '-h-color-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'sticky-header-menu' . $index . '-h-bg-color-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'sticky-header-menu' . $index . '-a-color-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'sticky-header-menu' . $index . '-a-bg-color-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'sticky-header-menu' . $index . '-submenu-color-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'sticky-header-menu' . $index . '-submenu-bg-color-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'sticky-header-menu' . $index . '-submenu-h-color-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'sticky-header-menu' . $index . '-submenu-h-bg-color-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'sticky-header-menu' . $index . '-submenu-a-color-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'sticky-header-menu' . $index . '-submenu-a-bg-color-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'sticky-header-menu' . $index . '-header-megamenu-heading-color' ] = ''; $defaults[ 'sticky-header-menu' . $index . '-header-megamenu-heading-h-color' ] = ''; } $defaults['sticky-header-color-site-tagline-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-header-color-h-site-title-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); // Primary Menu. $defaults['sticky-header-menu-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-header-menu-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-header-menu-h-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-header-menu-h-a-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); // Primary Submenu. $defaults['sticky-header-submenu-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-header-submenu-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-header-submenu-h-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-header-submenu-h-a-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); // Outside menu item. $defaults['sticky-header-content-section-text-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-header-content-section-link-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-header-content-section-link-h-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); /** * Sticky Above Header */ $defaults['sticky-above-header-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); // Above Header Menu. $defaults['sticky-above-header-menu-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-above-header-menu-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-above-header-menu-h-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-above-header-menu-h-a-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); // Abvoe Header Submenu. $defaults['sticky-above-header-submenu-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-above-header-submenu-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-above-header-submenu-h-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-above-header-submenu-h-a-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); // Sticky Above Header Content Section. $defaults['sticky-above-header-content-section-text-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-above-header-content-section-link-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-above-header-content-section-link-h-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); /** * Sticky below Header */ $defaults['sticky-below-header-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); // below Header Menu. $defaults['sticky-below-header-menu-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-below-header-menu-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-below-header-menu-h-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-below-header-menu-h-a-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); // Abvoe Header Submenu. $defaults['sticky-below-header-submenu-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-below-header-submenu-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-below-header-submenu-h-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-below-header-submenu-h-a-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); // Sticky Below Header Content Section. $defaults['sticky-below-header-content-section-text-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-below-header-content-section-link-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-below-header-content-section-link-h-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-header-language-switcher-color'] = ''; return $defaults; }
Expand full source code Collapse full source code View on Trac