PHP Class TitanFrameworkCustomizer

Datei anzeigen Open project: gambitph/titan-framework Class Usage Examples

Public Properties

Property Type Description
$options
$owner
$settings

Public Methods

Method 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 method

public __construct ( $settings, $owner )

ajaxGenerateCustomizerCSS() public method

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
return void

createOption() public method

public createOption ( $settings )

getID() public method

public getID ( )

initLocalStorage() public method

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

livePreview() public method

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

livePreviewMainScript() public method

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

loadUploaderScript() public method

public loadUploaderScript ( )

printPreviewCSS() public method

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

register() public method

public register ( $wp_customize )

useCustomizerModifiedValue() public method

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.
return mixed The new value

Property Details

$options public_oe property

public $options

$owner public_oe property

public $owner

$settings public_oe property

public $settings