PHP Class Twitter\WordPress\Admin\Settings\Embeds\Theme

Since: 1.0.0
Inheritance: implements Twitter\WordPress\Admin\Settings\SettingsSection
Afficher le fichier Open project: twitter/wordpress

Protected Properties

Свойство Type Description
$hook_suffix The hook suffix of the parent settings page

Méthodes publiques

Méthode Description
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

Method Details

addHelpTab() public static méthode

Display inline help content
Since: 1.0.0
public static addHelpTab ( WP_Screen $screen ) : void
$screen WP_Screen current screen
Résultat void

addToSettingsPage() public static méthode

Add site attribution option and settings section to an existing settings page
Since: 1.0.0
public static addToSettingsPage ( string $hook_suffix ) : boolean
$hook_suffix string hook suffix of an existing settings page
Résultat boolean site attribution settings loaded

defaultOptions() public static méthode

Default options if no options exist
Since: 1.0.0
public static defaultOptions ( ) : array
Résultat array associative array of option values

defineRestrictionsSection() public méthode

Add warnings settings section and fields
Since: 1.0.0
public defineRestrictionsSection ( ) : void
Résultat void

defineSection() public méthode

Add theme settings section and fields
Since: 1.0.0
public defineSection ( ) : void
Résultat void

defineWarningsSection() public méthode

Add warnings settings section and fields
Since: 1.0.0
public defineWarningsSection ( ) : void
Résultat void

displayBorderColor() public méthode

Choose a hex color value as the border color
Since: 1.0.0
public displayBorderColor ( ) : void
Résultat void

displayContentSecurityPolicy() public méthode

Suppress a Content Security Policy warning
Since: 1.0.0
public displayContentSecurityPolicy ( ) : void
Résultat void

displayDoNotTrack() public méthode

Do not track visitors for use in Twitter advertisers and site suggestions
Since: 1.0.0
public displayDoNotTrack ( ) : void
Résultat void

displayLinkColor() public méthode

Choose a hex color value as the link color
Since: 1.0.0
public displayLinkColor ( ) : void
Résultat void

displayTheme() public méthode

Choose a theme
Since: 1.0.0
public displayTheme ( ) : void
Résultat void

featureName() public static méthode

Reference the feature by name
Since: 1.0.0
public static featureName ( ) : string
Résultat string translated feature name

onload() public méthode

Store existing options. Set up page sections
Since: 1.0.0
public onload ( ) : void
Résultat void

restrictionsSectionHeader() public static méthode

Introduction to the Twitter restrictions section
Since: 1.0.0
public static restrictionsSectionHeader ( ) : void
Résultat void

sanitizeOptions() public static méthode

Sanitize theme options
Since: 1.0.0
public static sanitizeOptions ( array $options ) : array
$options array submitted options
Résultat array associative array of clean options

sectionHeader() public static méthode

Introduce the settings page
Since: 1.0.0
public static sectionHeader ( ) : void
Résultat void

themeChoices() public static méthode

Theme options and labels
Since: 1.0.0
public static themeChoices ( ) : array
Résultat array associative array of accepted values and the value's translated label

warningsSectionHeader() public static méthode

Introduce the warnings section
Since: 1.0.0
public static warningsSectionHeader ( ) : void
Résultat void

Property Details

$hook_suffix protected_oe property

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