astra_addon_get_font_extras( array $config, string $setting, mixed $unit = false )
Function which will return CSS for font-extras control.
Description
It includes – line-height, letter-spacing, text-decoration, font-style.
Parameters
- $config
-
(array) (Required) contains extra font settings.
- $setting
-
(string) (Required) basis on this setting will return.
- $unit
-
(mixed) (Optional) Unit.
Default value: false
Source
File: classes/astra-common-functions.php
function astra_addon_get_font_extras( $config, $setting, $unit = false ) { $css = isset( $config[ $setting ] ) ? $config[ $setting ] : ''; if ( $unit && $css ) { $css .= isset( $config[ $unit ] ) ? $config[ $unit ] : ''; } return $css; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |