\MainWP\DashboardMainWP_Extensions_View

Class MainWP_Extensions_View

Summary

Methods
Properties
Constants
get_class_name()
init_menu()
render_header()
render_footer()
render()
render_incompatible_notice()
render_intro_notice()
render_search_box()
render_extension_card()
render_inactive_extension_card()
render_purchase_notice()
render_side_box()
get_extension_groups()
get_available_extensions()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

get_class_name()

get_class_name() : string

Get Class name.

Returns

string —

CLASS.

init_menu()

init_menu() : \MainWP\Dashboard\$page

Method init_menu()

Add MainWP > Extensions Submenu

Returns

\MainWP\Dashboard\$page

render_header()

render_header(string  $shownPage = '') 

Method render_header()

Render page header.

Parameters

string $shownPage

The page slug shown at this moment.

render_footer()

render_footer() 

Method render_footer()

Render page footer.

render_incompatible_notice()

render_incompatible_notice() 

Method render_incompatible_notice()

Render Incompatability Notice.

render_intro_notice()

render_intro_notice() 

Method render_intro_notice()

Render Intro Notice.

render_search_box()

render_search_box() 

Method render_search_box()

Render Search Box.

render_extension_card()

render_extension_card(mixed  $extension, mixed  $extension_update, mixed  $img_url, mixed  $disabled = false, boolean  $simple = false) 

Method render_extension_card()

Render the MainWP Extension Cards.

Parameters

mixed $extension

Extention to render.

mixed $extension_update

Extension update.

mixed $img_url

Extension image.

mixed $disabled

Disabled extension.

boolean $simple

Simple info.

render_inactive_extension_card()

render_inactive_extension_card(mixed  $extension, mixed  $img_url, boolean  $installed = false) 

Method render_inactive_extension_card()

Render the MainWP Extension Cards.

Parameters

mixed $extension

Extention to render.

mixed $img_url

Extension image.

boolean $installed

Extension installed.

render_purchase_notice()

render_purchase_notice() 

Method render_purchase_notice()

Render Purchase Notice.

render_side_box()

render_side_box(string  $mainwp_api_key) 

Render the Sidebar.

Parameters

string $mainwp_api_key

MainWP.com api key.

get_extension_groups()

get_extension_groups() : array

Metod get_extension_groups()

Grab current MainWP Extension Groups.

Returns

array —

$groups

get_available_extensions()

get_available_extensions(mixed  $types = array('free', 'pro'), array  $ext_grouped = array()) 

Method get_available_extensions()

Static Arrays of all Available Extensions.

Parameters

mixed $types

Extensions type. Default: array( 'free', 'pro' ).

array $ext_grouped

Extensions grouped. Default: array().