\GE_Settings_Page

GE_Settings renders settings page with all themes

Summary

Methods
Properties
Constants
add_menu()
load_script()
render()
render_card()
render_card_setting()
theme_info()
activation_button()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$theme_id
$theme_slug
$theme_settings
$theme_terms
N/A

Properties

$theme_id

$theme_id : 

Type

$theme_slug

$theme_slug : 

Type

$theme_settings

$theme_settings : 

Type

$theme_terms

$theme_terms : 

Type

Methods

add_menu()

add_menu() : void

Adds submenu page to Layouts in WP Admin It shows render()

load_script()

load_script() : void

Adds script specific for this page

render()

render() : void

renders whole settings page to wordpress

render_card()

render_card(string  $card_title, string  $card_slug, array  $card_content) : void

One single card used to show all settings options for one Theme section Sections like Layouts, Basic settings, Advanced Settings, Default styles, .

..

Parameters

string $card_title

Title of that card

string $card_slug

Slug, basic version of name

array $card_content

All options that this card (section) will offer

render_card_setting()

render_card_setting(string  $setting_key, array  $setting_data, integer  $setting_value) : void

Renders one specific setting for setting card

Parameters

string $setting_key

Setting key (name that will be saved)

array $setting_data

All data about this setting

integer $setting_value

Setted value

theme_info()

theme_info() : array

Builds important theme info

Returns

array —

Theme info

activation_button()

activation_button(string  $theme_is_active) : string

Button for theme activation

Parameters

string $theme_is_active

If is theme active

Returns

string —

Button HTML code