Properties

$subPages

$subPages : array

Subpages array.

Type

array — Array of SubPages.

Methods

get_class_name()

get_class_name() : string

Get Class Name

Returns

string —

CLASS

init()

init() 

Fire on the initialization of WordPress.

init_menu()

init_menu() 

Method init_menu()

Initiate the MainWP Themes SubMenu page.

init_subpages_menu()

init_subpages_menu() 

Method init_subpages_menu()

Themes Subpage Menu HTML Content.

init_left_menu()

init_left_menu(array  $subPages = array()) 

Method init_left_menu()

Build arrays for each SubPage Menu Block.

Parameters

array $subPages

Array of SubPages.

render_header()

render_header(string  $shownPage = '') 

Method render_header()

Render Themes SubPage Header.

Parameters

string $shownPage

The page slug shown at this moment.

render_footer()

render_footer() 

Method render_footer()

Close the page container.

render_search_options()

render_search_options() 

Render the Search Options Meta Box.

render_table()

render_table(string  $keyword, string  $status, array  $groups, array  $sites, mixed  $not_criteria, mixed  $clients = '') : mixed

Method render_table()

Render the Child Sites Bulk action & Sidebar Meta boxes.

Parameters

string $keyword

Search keyword parameter.

string $status

Search status parameter.

array $groups

Selected groups of child sites.

array $sites

Selected child sites.

mixed $not_criteria

Show not criteria result.

mixed $clients

Selected Clients.

Returns

mixed —

$result Errors|HTML.

render_manage_per_site_table()

render_manage_per_site_table(array  $sites, array  $themesName = array(), array  $siteThemes = array(), string  $themesSlug = array(), array  $themesNameSites = array(), string  $themesRealVersion = array()) 

Method render_manage_per_site_table()

Render the Manage Themes table

Parameters

array $sites

List of sites.

array $themesName

List of themes.

array $siteThemes

List of themes for the site.

string $themesSlug

List of theme slugs.

array $themesNameSites

Installed theme version.

string $themesRealVersion

Current theme version.

render_manage_table()

render_manage_table(array  $sites, array  $themesName, array  $siteThemes, string  $themesSlug, array  $themesNameSites, string  $themesRealVersion) 

Method render_manage_table()

Render the Manage Themes table

Parameters

array $sites

List of sites.

array $themesName

List of themes.

array $siteThemes

List of themes for the site.

string $themesSlug

List of theme slugs.

array $themesNameSites

Installed theme version.

string $themesRealVersion

Current theme version.

render_bulk_actions()

render_bulk_actions(mixed  $status) : mixed

Render the bulk actions UI.

Parameters

mixed $status

Theme status.

Returns

mixed —

$bulkActions

render_install()

render_install() 

Render the Install Themes Tab.

render_themes_table()

render_themes_table() 

Render the Themes table for the Install Themes Tab.

render_auto_update()

render_auto_update() 

Render the Themes Auto Update Tab.

render_all_themes_html()

render_all_themes_html(mixed  $themes, mixed  $search_status, mixed  $trustedThemes, mixed  $trustedThemesNotes, mixed  $decodedIgnoredThemes) 

Render all themes html.

Parameters

mixed $themes

Themes list.

mixed $search_status

Search status.

mixed $trustedThemes

Trusted themes.

mixed $trustedThemesNotes

Trusted themes notes.

mixed $decodedIgnoredThemes

Decoded ignored themes.

render_global_ignored()

render_global_ignored(mixed  $ignoredThemes, mixed  $decodedIgnoredThemes) 

Render globally Ignored themes.

Parameters

mixed $ignoredThemes

Encoded ignored themes.

mixed $decodedIgnoredThemes

Decoded ignored themes.

render_sites_ignored()

render_sites_ignored(integer  $cnt, object  $websites) 

Method render_sites_ignored()

Render ignored sites.

Parameters

integer $cnt

Count of items.

object $websites

The websits object.

render_global_ignored_abandoned()

render_global_ignored_abandoned(mixed  $ignoredThemes, mixed  $decodedIgnoredThemes) 

Render the global ignored themes list.

Parameters

mixed $ignoredThemes

Encoded ignored themes list.

mixed $decodedIgnoredThemes

Decoded ignored themes list.

render_sites_ignored_abandoned()

render_sites_ignored_abandoned(integer  $cnt, object  $websites) 

Method render_sites_ignored_abandoned()

Render ignored items per site list.

Parameters

integer $cnt

Count of items.

object $websites

The websits object.

mainwp_help_content()

mainwp_help_content() 

Hooks the section help content to the Help Sidebar element.