PHP 클래스 Twitter\WordPress\Admin\Settings\Embeds\Theme

부터: 1.0.0
상속: implements Twitter\WordPress\Admin\Settings\SettingsSection
파일 보기 프로젝트 열기: twitter/wordpress

보호된 프로퍼티들

프로퍼티 타입 설명
$hook_suffix The hook suffix of the parent settings page

공개 메소드들

메소드 설명
addHelpTab ( WP_Screen $screen ) : void Display inline help content
addToSettingsPage ( string $hook_suffix ) : boolean Add site attribution option and settings section to an existing settings page
defaultOptions ( ) : array Default options if no options exist
defineRestrictionsSection ( ) : void Add warnings settings section and fields
defineSection ( ) : void Add theme settings section and fields
defineWarningsSection ( ) : void Add warnings settings section and fields
displayBorderColor ( ) : void Choose a hex color value as the border color
displayContentSecurityPolicy ( ) : void Suppress a Content Security Policy warning
displayDoNotTrack ( ) : void Do not track visitors for use in Twitter advertisers and site suggestions
displayLinkColor ( ) : void Choose a hex color value as the link color
displayTheme ( ) : void Choose a theme
featureName ( ) : string Reference the feature by name
onload ( ) : void Store existing options. Set up page sections
restrictionsSectionHeader ( ) : void Introduction to the Twitter restrictions section
sanitizeOptions ( array $options ) : array Sanitize theme options
sectionHeader ( ) : void Introduce the settings page
themeChoices ( ) : array Theme options and labels
warningsSectionHeader ( ) : void Introduce the warnings section

메소드 상세

addHelpTab() 공개 정적인 메소드

Display inline help content
부터: 1.0.0
public static addHelpTab ( WP_Screen $screen ) : void
$screen WP_Screen current screen
리턴 void

addToSettingsPage() 공개 정적인 메소드

Add site attribution option and settings section to an existing settings page
부터: 1.0.0
public static addToSettingsPage ( string $hook_suffix ) : boolean
$hook_suffix string hook suffix of an existing settings page
리턴 boolean site attribution settings loaded

defaultOptions() 공개 정적인 메소드

Default options if no options exist
부터: 1.0.0
public static defaultOptions ( ) : array
리턴 array associative array of option values

defineRestrictionsSection() 공개 메소드

Add warnings settings section and fields
부터: 1.0.0
public defineRestrictionsSection ( ) : void
리턴 void

defineSection() 공개 메소드

Add theme settings section and fields
부터: 1.0.0
public defineSection ( ) : void
리턴 void

defineWarningsSection() 공개 메소드

Add warnings settings section and fields
부터: 1.0.0
public defineWarningsSection ( ) : void
리턴 void

displayBorderColor() 공개 메소드

Choose a hex color value as the border color
부터: 1.0.0
public displayBorderColor ( ) : void
리턴 void

displayContentSecurityPolicy() 공개 메소드

Suppress a Content Security Policy warning
부터: 1.0.0
public displayContentSecurityPolicy ( ) : void
리턴 void

displayDoNotTrack() 공개 메소드

Do not track visitors for use in Twitter advertisers and site suggestions
부터: 1.0.0
public displayDoNotTrack ( ) : void
리턴 void

displayLinkColor() 공개 메소드

Choose a hex color value as the link color
부터: 1.0.0
public displayLinkColor ( ) : void
리턴 void

displayTheme() 공개 메소드

Choose a theme
부터: 1.0.0
public displayTheme ( ) : void
리턴 void

featureName() 공개 정적인 메소드

Reference the feature by name
부터: 1.0.0
public static featureName ( ) : string
리턴 string translated feature name

onload() 공개 메소드

Store existing options. Set up page sections
부터: 1.0.0
public onload ( ) : void
리턴 void

restrictionsSectionHeader() 공개 정적인 메소드

Introduction to the Twitter restrictions section
부터: 1.0.0
public static restrictionsSectionHeader ( ) : void
리턴 void

sanitizeOptions() 공개 정적인 메소드

Sanitize theme options
부터: 1.0.0
public static sanitizeOptions ( array $options ) : array
$options array submitted options
리턴 array associative array of clean options

sectionHeader() 공개 정적인 메소드

Introduce the settings page
부터: 1.0.0
public static sectionHeader ( ) : void
리턴 void

themeChoices() 공개 정적인 메소드

Theme options and labels
부터: 1.0.0
public static themeChoices ( ) : array
리턴 array associative array of accepted values and the value's translated label

warningsSectionHeader() 공개 정적인 메소드

Introduce the warnings section
부터: 1.0.0
public static warningsSectionHeader ( ) : void
리턴 void

프로퍼티 상세

$hook_suffix 보호되어 있는 프로퍼티

The hook suffix of the parent settings page
부터: 1.0.0
protected $hook_suffix