PHP Class TitanFrameworkCustomizer

Afficher le fichier Open project: gambitph/titan-framework Class Usage Examples

Méthodes publiques

Свойство Type Description
$options
$owner
$settings

Méthodes publiques

Méthode Description
__construct ( $settings, $owner )
ajaxGenerateCustomizerCSS ( ) : void Ajax handler for generating CSS based on the existing options with values changed to match the customizer modified values.
createOption ( $settings )
getID ( )
initLocalStorage ( ) : void Prints the script that clears the JS local storage when customizer loads, this ensures we start fresh.
livePreview ( ) : void Prints the script PER option that handles customizer option changes for live previews
livePreviewMainScript ( ) : void Prints the script that uses ajax to adjust the live customizer CSS.
loadUploaderScript ( )
printPreviewCSS ( ) : void Prints out CSS styles for the current namespace refresh previewing
register ( $wp_customize )
useCustomizerModifiedValue ( mixed $value, integer $postID, TitanFrameworkOption $option ) : mixed Override the getOption value with the customizer value which comes from the $_POST array

Method Details

__construct() public méthode

public __construct ( $settings, $owner )

ajaxGenerateCustomizerCSS() public méthode

Ajax handler for generating CSS based on the existing options with values changed to match the customizer modified values.
Since: 1.9.2
public ajaxGenerateCustomizerCSS ( ) : void
Résultat void

createOption() public méthode

public createOption ( $settings )

getID() public méthode

public getID ( )

initLocalStorage() public méthode

Use localStorage so we can still use values when the customizer refreshes.
Since: 1.9.2
public initLocalStorage ( ) : void
Résultat void

livePreview() public méthode

Prints the script PER option that handles customizer option changes for live previews
Since: 1.0
public livePreview ( ) : void
Résultat void

livePreviewMainScript() public méthode

Use localStorage so we can still use values when the customizer refreshes.
Since: 1.9.2
public livePreviewMainScript ( ) : void
Résultat void

loadUploaderScript() public méthode

public loadUploaderScript ( )

printPreviewCSS() public méthode

Prints out CSS styles for the current namespace refresh previewing
See also: self::$namespacesWithPrintedPreviewCSS
Since: 1.3
public printPreviewCSS ( ) : void
Résultat void

register() public méthode

public register ( $wp_customize )

useCustomizerModifiedValue() public méthode

Override the getOption value with the customizer value which comes from the $_POST array
Since: 1.9.2
public useCustomizerModifiedValue ( mixed $value, integer $postID, TitanFrameworkOption $option ) : mixed
$value mixed The value of the option.
$postID integer The post ID if there is one (always null in this case).
$option TitanFrameworkOption The option being parsed.
Résultat mixed The new value

Property Details

$options public_oe property

public $options

$owner public_oe property

public $owner

$settings public_oe property

public $settings