PHP 클래스 TitanFrameworkCustomizer

파일 보기 프로젝트 열기: gambitph/titan-framework 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$options
$owner
$settings

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

public __construct ( $settings, $owner )

ajaxGenerateCustomizerCSS() 공개 메소드

Ajax handler for generating CSS based on the existing options with values changed to match the customizer modified values.
부터: 1.9.2
public ajaxGenerateCustomizerCSS ( ) : void
리턴 void

createOption() 공개 메소드

public createOption ( $settings )

getID() 공개 메소드

public getID ( )

initLocalStorage() 공개 메소드

Use localStorage so we can still use values when the customizer refreshes.
부터: 1.9.2
public initLocalStorage ( ) : void
리턴 void

livePreview() 공개 메소드

Prints the script PER option that handles customizer option changes for live previews
부터: 1.0
public livePreview ( ) : void
리턴 void

livePreviewMainScript() 공개 메소드

Use localStorage so we can still use values when the customizer refreshes.
부터: 1.9.2
public livePreviewMainScript ( ) : void
리턴 void

loadUploaderScript() 공개 메소드

public loadUploaderScript ( )

printPreviewCSS() 공개 메소드

Prints out CSS styles for the current namespace refresh previewing
또한 보기: self::$namespacesWithPrintedPreviewCSS
부터: 1.3
public printPreviewCSS ( ) : void
리턴 void

register() 공개 메소드

public register ( $wp_customize )

useCustomizerModifiedValue() 공개 메소드

Override the getOption value with the customizer value which comes from the $_POST array
부터: 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.
리턴 mixed The new value

프로퍼티 상세

$options 공개적으로 프로퍼티

public $options

$owner 공개적으로 프로퍼티

public $owner

$settings 공개적으로 프로퍼티

public $settings