Свойство | Type | Description | |
---|---|---|---|
$defaultSecondarySettings |
Méthode | Description | |
---|---|---|
__construct ( $settings, $owner ) : void | Constructor. | |
allow_svg_uploads ( array $mimes ) : array | Allow SVG mime types to be uploaded to WP. | |
createUploaderScript ( ) | ||
display ( ) | * Display for options and meta. | |
generateCSS ( string $css, TitanFrameworkOption $option ) : string | Generates CSS for the font, this is used in TitanFrameworkCSS | |
postLivePreview ( $optionID, $optionType, $option ) | Closes the Javascript code created in preLivePreview(). | |
preLivePreview ( $optionID, $optionType, $option ) | The upload option gives out an attachment ID. Live previews will not work since we cannot get the upload URL from an ID easily. Use a specially created Ajax Handler for just getting the URL. | |
registerCustomizerControl ( $wp_customize, $section, $priority = 1 ) | * Display for theme customizer. |
public __construct ( $settings, $owner ) : void | ||
Résultat | void |
public allow_svg_uploads ( array $mimes ) : array | ||
$mimes | array | The allowed mime types. |
Résultat | array | $mimes The modified mime types. |
public generateCSS ( string $css, TitanFrameworkOption $option ) : string | ||
$css | string | The CSS generated |
$option | TitanFrameworkOption | The current option being processed. |
Résultat | string | The CSS generated |
public postLivePreview ( $optionID, $optionType, $option ) |
public preLivePreview ( $optionID, $optionType, $option ) |
public registerCustomizerControl ( $wp_customize, $section, $priority = 1 ) |