PHP Класс Twitter\WordPress\Admin\Settings\Embeds\Theme

С версии: 1.0.0
Наследование: implements Twitter\WordPress\Admin\Settings\SettingsSection
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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