PHP 클래스 TitanFrameworkOptionUpload

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

공개 프로퍼티들

프로퍼티 타입 설명
$defaultSecondarySettings

공개 메소드들

메소드 설명
__construct ( $settings, $owner ) : void Constructor.
allow_svg_uploads ( array $mimes ) : array Allow SVG mime types to be uploaded to WP.
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 the upload URL from an ID easily. Use a specially created Ajax Handler for just getting the URL.
registerCustomizerControl ( $wp_customize, $section, $priority = 1 ) * Display for theme customizer.

메소드 상세

__construct() 공개 메소드

Constructor.
부터: 1.5
public __construct ( $settings, $owner ) : void
리턴 void

allow_svg_uploads() 공개 메소드

Allow SVG mime types to be uploaded to WP.
부터: 2.9
public allow_svg_uploads ( array $mimes ) : array
$mimes array The allowed mime types.
리턴 array $mimes The modified mime types.

createUploaderScript() 공개 정적인 메소드

public static createUploaderScript ( )

display() 공개 메소드

* Display for options and meta.
public display ( )

generateCSS() 공개 메소드

Generates CSS for the font, this is used in TitanFrameworkCSS
부터: 1.5
public generateCSS ( string $css, TitanFrameworkOption $option ) : string
$css string The CSS generated
$option TitanFrameworkOption The current option being processed.
리턴 string The CSS generated

postLivePreview() 공개 메소드

Closes the Javascript code created in preLivePreview().
또한 보기: preLivePreview()
부터: 1.9
public postLivePreview ( $optionID, $optionType, $option )

preLivePreview() 공개 메소드

The upload option gives out an attachment ID. Live previews will not work since we cannot get the upload URL from an ID easily. Use a specially created Ajax Handler for just getting the URL.
또한 보기: tf_upload_option_customizer_get_value()
부터: 1.9
public preLivePreview ( $optionID, $optionType, $option )

registerCustomizerControl() 공개 메소드

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

프로퍼티 상세

$defaultSecondarySettings 공개적으로 프로퍼티

public $defaultSecondarySettings