Design_Page implements Standard_Service, Registerable, Conditional
This class handles our plugin settings page in the admin.
Tags
Interfaces, Classes and Traits
- Standard_Service
- Registerable
- Conditional
Table of Contents
- MENU_SLUG = 'posts_table_design'
- OPTION_GROUP = 'posts_table_pro_design'
- $plugin : mixed
- $services : mixed
- __construct() : mixed
- Constructor.
- add_design_page() : mixed
- Add the design page.
- add_settings_sections() : mixed
- Add the settings sections.
- add_table_builder_wizard_link() : array<string|int, mixed>
- Add the table builder wizard link to the help links.
- backwards_compatibility() : void
- Add backwards compatibility for specific settings.
- display_design_page() : mixed
- Display the design page.
- is_required() : bool
- Whether this service is required.
- register() : mixed
- {@inheritdoc}
- register_settings() : mixed
- Register the settings.
- sanitize_misc_settings() : mixed
- Sanitize misc settings.
- support_links() : void
- Support links for the settings page.
- check_hex_color() : bool
- Check if given value is a valid HEX color.
- get_border_style_fields() : array<string|int, mixed>
- Get the border style fields.
- get_button_background_fields() : array<string|int, mixed>
- Get button background fields.
- get_checkboxes_fields() : array<string|int, mixed>
- Get checkboxes fields.
- get_dropdowns_fields() : array<string|int, mixed>
- Get dropdown fields.
- get_font_style_fields() : array<string|int, mixed>
- Get font style fields.
- get_icon() : string
- Get icon.
- get_row_and_cell_fields() : array<string|int, mixed>
- Get row and cell fields.
- get_table_background_fields() : array<string|int, mixed>
- Get the table background fields.
- get_table_design_settings() : mixed
- Get the table design settings.
- get_template_field() : array<string|int, mixed>
- Get the template field.
- get_text_fields() : array<string|int, mixed>
- Get text fields.
Constants
MENU_SLUG
public
mixed
MENU_SLUG
= 'posts_table_design'
Tags
OPTION_GROUP
public
mixed
OPTION_GROUP
= 'posts_table_pro_design'
Tags
Properties
$plugin
private
mixed
$plugin
Tags
$services
private
mixed
$services
Tags
Methods
__construct()
Constructor.
public
__construct(Licensed_Plugin $plugin) : mixed
Parameters
- $plugin : Licensed_Plugin
Tags
Return values
mixed —add_design_page()
Add the design page.
public
add_design_page() : mixed
Tags
Return values
mixed —add_settings_sections()
Add the settings sections.
public
add_settings_sections() : mixed
Tags
Return values
mixed —add_table_builder_wizard_link()
Add the table builder wizard link to the help links.
public
add_table_builder_wizard_link(mixed $links, Licensed_Plugin $plugin) : array<string|int, mixed>
Parameters
- $links : mixed
- $plugin : Licensed_Plugin
Tags
Return values
array<string|int, mixed> —backwards_compatibility()
Add backwards compatibility for specific settings.
public
backwards_compatibility() : void
Tags
Return values
void —display_design_page()
Display the design page.
public
display_design_page() : mixed
Tags
Return values
mixed —is_required()
Whether this service is required.
public
is_required() : bool
Tags
Return values
bool —register()
{@inheritdoc}
public
register() : mixed
Tags
Return values
mixed —register_settings()
Register the settings.
public
register_settings() : mixed
Tags
Return values
mixed —sanitize_misc_settings()
Sanitize misc settings.
public
sanitize_misc_settings(array<string|int, mixed> $settings) : mixed
Parameters
- $settings : array<string|int, mixed>
-
The settings to sanitize.
Tags
Return values
mixed —support_links()
Support links for the settings page.
public
support_links() : void
Tags
Return values
void —check_hex_color()
Check if given value is a valid HEX color.
private
check_hex_color(string $value) : bool
Parameters
- $value : string
-
The color value to check.
Tags
Return values
bool —true if valid.
get_border_style_fields()
Get the border style fields.
private
get_border_style_fields() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —get_button_background_fields()
Get button background fields.
private
get_button_background_fields() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —get_checkboxes_fields()
Get checkboxes fields.
private
get_checkboxes_fields() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —get_dropdowns_fields()
Get dropdown fields.
private
get_dropdowns_fields() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —get_font_style_fields()
Get font style fields.
private
get_font_style_fields() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —get_icon()
Get icon.
private
get_icon(mixed $icon[, string $alt_text = '' ]) : string
Parameters
- $icon : mixed
- $alt_text : string = ''
Tags
Return values
string —get_row_and_cell_fields()
Get row and cell fields.
private
get_row_and_cell_fields() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —get_table_background_fields()
Get the table background fields.
private
get_table_background_fields() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —get_table_design_settings()
Get the table design settings.
private
get_table_design_settings() : mixed
Tags
Return values
mixed —get_template_field()
Get the template field.
private
get_template_field() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —get_text_fields()
Get text fields.
private
get_text_fields() : array<string|int, mixed>