Astra_Ext_Typography_Loader::prepare_button_defaults( array $defaults, integer $index )
Prepare Button Defaults.
Description
Parameters
- $defaults
-
(array) (Required) defaults.
- $index
-
(integer) (Required) index.
Return
(array)
Source
File: addons/typography/classes/class-astra-ext-typography-loader.php
public function prepare_button_defaults( $defaults, $index ) { $defaults[ 'header-button' . $index . '-font-family' ] = 'inherit'; $defaults[ 'header-button' . $index . '-font-weight' ] = 'inherit'; $defaults[ 'header-button' . $index . '-text-transform' ] = ''; $defaults[ 'header-button' . $index . '-line-height' ] = ''; $defaults[ 'header-button' . $index . '-letter-spacing' ] = ''; $defaults[ 'footer-button' . $index . '-font-family' ] = 'inherit'; $defaults[ 'footer-button' . $index . '-font-weight' ] = 'inherit'; $defaults[ 'footer-button' . $index . '-text-transform' ] = ''; $defaults[ 'footer-button' . $index . '-line-height' ] = ''; $defaults[ 'footer-button' . $index . '-letter-spacing' ] = ''; return $defaults; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |