PHP Class TitanFrameworkOptionFile

Inheritance: extends TitanFrameworkOption
Mostrar archivo Open project: gambitph/titan-framework Class Usage Examples

Public Properties

Property Type Description
$defaultSecondarySettings

Public Methods

Method Description
__construct ( $settings, $owner ) : void Constructor.
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.
registerCustomizerControl ( $wp_customize, $section, $priority = 1 ) * Display for theme customizer.

Method Details

__construct() public method

Constructor.
Since: 1.5
public __construct ( $settings, $owner ) : void
return void

createUploaderScript() public static method

public static createUploaderScript ( )

display() public method

* Display for options and meta.
public display ( )

generateCSS() public method

Generates CSS for the font, this is used in TitanFrameworkCSS.
Since: 1.5
public generateCSS ( String $css, TitanFrameworkOption $option ) : String
$css String The CSS generated.
$option TitanFrameworkOption The current option being processed.
return String The CSS generated.

postLivePreview() public method

Closes the Javascript code created in preLivePreview().
See also: preLivePreview()
Since: 1.9
public postLivePreview ( $optionID, $optionType, $option )

preLivePreview() public method

the upload URL from an ID easily. Use a specially created Ajax Handler for just getting the URL.
See also: tf_file_upload_option_customizer_get_value()
Since: 1.9
public preLivePreview ( $optionID, $optionType, $option )

registerCustomizerControl() public method

* Display for theme customizer.
public registerCustomizerControl ( $wp_customize, $section, $priority = 1 )

Property Details

$defaultSecondarySettings public_oe property

public $defaultSecondarySettings