\ReduxFramework_typography

Class and Function List: Function list: - __construct() - render() - enqueue() - makeGoogleWebfontLink() - makeGoogleWebfontString() - output() - getGoogleArray() - getGoogleFonts() - getSubsets() - getVariants() Classes list: - ReduxFramework_typography

Summary

Methods
Properties
Constants
__construct()
render()
enqueue()
makeGoogleWebfontLink()
makeGoogleWebfontString()
output()
getGoogleArray()
getGoogleFonts()
getSubsets()
getVariants()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$std_fonts
N/A

Properties

$std_fonts

$std_fonts

Methods

__construct()

__construct( $field,  $value,  $parent)

Field Constructor.

Required - must call the parent constructor, then assign field and value to vars, and obviously call the render field function

Parameters

$field
$value
$parent

render()

render()

Field Render Function.

Takes the vars and outputs the HTML for the field in the settings

enqueue()

enqueue()

Enqueue Function.

If this field requires any scripts, or css define this function and register/enqueue the scripts/css

makeGoogleWebfontLink()

makeGoogleWebfontLink( $fonts)

makeGoogleWebfontLink Function.

Creates the google fonts link.

Parameters

$fonts

makeGoogleWebfontString()

makeGoogleWebfontString( $fonts)

makeGoogleWebfontString Function.

Creates the google fonts link.

Parameters

$fonts

output()

output()

getGoogleArray()

getGoogleArray()

Construct the google array from the stored JSON/HTML

getGoogleFonts()

getGoogleFonts()

getGoogleFonts Function.

Used to retrieve Google Web Fonts from their API

getSubsets()

getSubsets( $var)

getGoogleFonts Function.

Clean up the Google Webfonts subsets to be human readable

Parameters

$var

getVariants()

getVariants( $var)

getGoogleFonts Function.

Clean up the Google Webfonts variants to be human readable

Parameters

$var