Astra_Addon_Header_Menu_Component_Loader::theme_defaults( array $defaults )
Default customizer configs.
Description
Parameters
- $defaults
-
(array) (Required) Astra options default value array.
Source
File: classes/builder/type/header/menu/classes/class-astra-addon-header-menu-component-loader.php
public function theme_defaults( $defaults ) { // Menu - Box Shadow defaults. $component_limit = astra_addon_builder_helper()->component_limit; for ( $index = 1; $index <= $component_limit; $index++ ) { $_prefix = 'menu' . $index; $defaults[ 'header-' . $_prefix . '-box-shadow-control' ] = array( 'x' => '0', 'y' => '4', 'blur' => '10', 'spread' => '-2', ); $defaults[ 'header-' . $_prefix . '-box-shadow-color' ] = 'rgba(0,0,0,0.1)'; $defaults[ 'header-' . $_prefix . '-box-shadow-position' ] = 'outline'; } return $defaults; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |