PHP 클래스 TitanFrameworkOptionCode

부터: 1.3
상속: extends TitanFrameworkOption
파일 보기 프로젝트 열기: gambitph/titan-framework

공개 프로퍼티들

프로퍼티 타입 설명
$defaultSecondarySettings array Default settings specific for this container

공개 메소드들

메소드 설명
__construct ( $settings, $owner ) Constructor
cleanValueForGetting ( string $value ) : mixes Cleans the value for getOption
display ( ) : void Displays the option for admin pages and meta boxes
generateCSSCode ( string $css, TitanFrameworkOption $option ) : void Generates CSS to be included in our dynamically generated CSS file in TitanFrameworkCSS, using tf_generate_css_code
loadAdminScripts ( ) : void Loads the ACE library for displaying our syntax highlighted code editor
printCSSForPagesAndPosts ( ) : void Prints CSS styles in the header for meta options using wp_print_scripts
printJS ( ) : void Prints javascript code in the header using wp_print_scripts
printJSForPagesAndPosts ( ) : void Prints javascript code in the header for meta options using wp_print_scripts
registerCustomizerControl ( $wp_customize, TitanFrameworkCustomizerSection $section, integer $priority = 1 ) : void Registers the theme customizer control, for displaying the option

메소드 상세

__construct() 공개 메소드

Constructor
부터: 1.3
public __construct ( $settings, $owner )

cleanValueForGetting() 공개 메소드

Cleans the value for getOption
부터: 1.3
public cleanValueForGetting ( string $value ) : mixes
$value string The raw value of the option
리턴 mixes The cleaned value

display() 공개 메소드

Displays the option for admin pages and meta boxes
부터: 1.3
public display ( ) : void
리턴 void

generateCSSCode() 공개 메소드

Generates CSS to be included in our dynamically generated CSS file in TitanFrameworkCSS, using tf_generate_css_code
부터: 1.3
public generateCSSCode ( string $css, TitanFrameworkOption $option ) : void
$css string The CSS to output
$option TitanFrameworkOption The option object being generated
리턴 void

loadAdminScripts() 공개 메소드

Loads the ACE library for displaying our syntax highlighted code editor
부터: 1.3
public loadAdminScripts ( ) : void
리턴 void

printCSSForPagesAndPosts() 공개 메소드

Prints CSS styles in the header for meta options using wp_print_scripts
부터: 1.3
public printCSSForPagesAndPosts ( ) : void
리턴 void

printJS() 공개 메소드

Prints javascript code in the header using wp_print_scripts
부터: 1.3
public printJS ( ) : void
리턴 void

printJSForPagesAndPosts() 공개 메소드

Prints javascript code in the header for meta options using wp_print_scripts
부터: 1.3
public printJSForPagesAndPosts ( ) : void
리턴 void

registerCustomizerControl() 공개 메소드

Registers the theme customizer control, for displaying the option
부터: 1.3
public registerCustomizerControl ( $wp_customize, TitanFrameworkCustomizerSection $section, integer $priority = 1 ) : void
$section TitanFrameworkCustomizerSection The section where this option will be placed
$priority integer The order of this control in the section
리턴 void

프로퍼티 상세

$defaultSecondarySettings 공개적으로 프로퍼티

Default settings specific for this container
public array $defaultSecondarySettings
리턴 array