Astra_Header_Language_Switcher_Component_Loader::theme_defaults( array $defaults )
Default customizer configs.
Description
Parameters
- $defaults
-
(array) (Required) Astra options default value array.
Source
public function theme_defaults( $defaults ) { $defaults['header-language-switcher-type'] = 'custom'; $defaults['header-language-switcher-layout'] = 'horizontal'; $defaults['header-language-switcher-show-flag'] = true; $defaults['header-language-switcher-show-name'] = true; $defaults['header-language-switcher-show-tname'] = false; $defaults['header-language-switcher-show-code'] = false; $defaults['section-hb-language-switcher-flag-spacing'] = array( 'desktop' => '5', 'tablet' => '', 'mobile' => '', ); $defaults['section-hb-language-switcher-flag-size'] = array( 'desktop' => '20', 'tablet' => '', 'mobile' => '', ); $defaults['header-language-switcher-options'] = array( 'items' => array( array( 'id' => 'gb', 'enabled' => true, 'url' => '', 'label' => __( 'English', 'astra-addon' ), ), ), ); $defaults['section-hb-language-switcher-margin'] = astra_addon_builder_helper()->default_responsive_spacing; return $defaults; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |