astra_get_font_family( string $value = '' )
Get Font family
Description
Syntax:
astra_get_font_family( VALUE, DEFAULT );
E.g. astra_get_font_family( VALUE, ” );
Parameters
- $value
-
(string) (Optional) CSS value.
Default value: ''
Return
(mixed) CSS value depends on $unit
Source
File: inc/core/common-functions.php
function astra_get_font_family( $value = '' ) { $system_fonts = Astra_Font_Families::get_system_fonts(); if ( isset( $system_fonts[ $value ] ) && isset( $system_fonts[ $value ]['fallback'] ) ) { $value .= ',' . $system_fonts[ $value ]['fallback']; } return $value; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.0.19 | Introduced. |