Astra_Footer_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 ) { // Language Switcher footer defaults. $defaults['footer-language-switcher-type'] = 'custom'; $defaults['footer-language-switcher-layout'] = 'vertical'; $defaults['footer-language-switcher-show-flag'] = true; $defaults['footer-language-switcher-show-name'] = true; $defaults['footer-language-switcher-show-tname'] = false; $defaults['footer-language-switcher-show-code'] = false; $defaults['section-fb-language-switcher-flag-spacing'] = array( 'desktop' => '5', 'tablet' => '', 'mobile' => '', ); $defaults['section-fb-language-switcher-flag-size'] = array( 'desktop' => '20', 'tablet' => '', 'mobile' => '', ); $defaults['footer-language-switcher-options'] = array( 'items' => array( array( 'id' => 'gb', 'enabled' => true, 'url' => '', 'label' => __( 'English', 'astra-addon' ), ), ), ); $defaults['footer-language-switcher-alignment'] = array( 'desktop' => 'flex-start', 'tablet' => 'flex-start', 'mobile' => 'flex-start', ); $defaults['section-fb-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. |