get_class_name()
get_class_name() : object
Method get_class_name()
Get Class Name.
Class MainWP_UI
select_sites_box(string $type = 'checkbox', boolean $show_group = true, boolean $show_select_all = true, string $class_style = '', string $style = '', array $selected_websites = array(), array $selected_groups = array(), boolean $enableOfflineSites = false, integer $postId)
Method select_sites_box()
Select sites box.
string | $type | Input type, radio. |
boolean | $show_group | Whether or not to show group, Default: true. |
boolean | $show_select_all | Whether to show select all. |
string | $class_style | Default = ''. |
string | $style | Default = ''. |
array | $selected_websites | Selected Child Sites. |
array | $selected_groups | Selected Groups. |
boolean | $enableOfflineSites | (bool) True, if offline sites is enabled. False if not. |
integer | $postId | Post Meta ID. |
select_sites_box_body(array $selected_websites = array(), array $selected_groups = array(), string $type = 'checkbox', boolean $show_group = true, boolean $show_select_all = true, boolean $updateQty = false, boolean $enableOfflineSites = false, integer $postId)
Method select_sites_box_body()
Select sites box Body.
array | $selected_websites | Child Site that are selected. |
array | $selected_groups | Group that are selected. |
string | $type | Selector type. |
boolean | $show_group | Whether or not to show group, Default: true. |
boolean | $show_select_all | Whether or not to show select all, Default: true. |
boolean | $updateQty | Whether or not to update quantity, Default = false. |
boolean | $enableOfflineSites | Whether or not to enable offline sites, Default: true. |
integer | $postId | Post ID. |
None found |
render_select_sites_header(integer $tab_id, boolean $staging_enabled, array $selectedby, boolean $show_group = true, boolean $show_client = false)
Method render_select_sites_header()
Render selected sites header.
integer | $tab_id | Datatab ID. |
boolean | $staging_enabled | True, if in the active plugins list. False, not in the list. |
array | $selectedby | Selected by. |
boolean | $show_group | Whether or not to show group, Default: true. |
boolean | $show_client | Whether or not to show client, Default: true. |
todo |
Move to view folder. |
---|
render_select_sites(object $websites, string $type, mixed $selected_websites, boolean $enableOfflineSites, mixed $edit_site_id, boolean $show_select_all, mixed $add_edit_client_id = false, boolean $show_select_all_disc = false) : void
Method render_select_sites()
object | $websites | Object containing child sites info. |
string | $type | Selector type. |
mixed | $selected_websites | Selected Child Sites. |
boolean | $enableOfflineSites | (bool) True, if offline sites is enabled. False if not. |
mixed | $edit_site_id | Child Site ID to edit. |
boolean | $show_select_all | Whether or not to show select all, Default: true. |
mixed | $add_edit_client_id | Show enable sites for client. Default: false, 0: add new client, 0 <: edit client. |
boolean | $show_select_all_disc | Whether or not to show select all disconnect sites, Default: false. |
None found |
render_select_sites_staging(mixed $selected_websites, mixed $edit_site_id, string $type = 'checkbox') : void
Method render_select_sites_staging()
Render selected staging sites.
mixed | $selected_websites | Selected Child Sites. |
mixed | $edit_site_id | Child Site ID to edit. |
string | $type | Selector type. |
None found |
render_select_sites_group(array $groups, mixed $selected_groups, string $type = 'checkbox') : void
Method render_select_sites_group()
Render selected sites group.
array | $groups | Array of groups. |
mixed | $selected_groups | Selected groups. |
string | $type | Selector type. |
None found |
render_top_header(array $params = array())
Method render_top_header()
Render top header.
array | $params | Page parameters. |
None found |
render_showhide_columns_settings(array $cols, array $show_columns, string $what)
Method render_showhide_columns_settings()
Render show/hide columns settings.
array | $cols | Columns. |
array | $show_columns | Show Columns. |
string | $what | what. |
None found |
render_second_top_header(string $which = '') : void
Method render_second_top_header()
Render second top header.
string | $which | Current page. |
None found |
gen_groups_sites_selection() : void
Method gen_groups_sites_selection()
Generate group sites selection box.
None found |
render_header_actions() : mixed
Method render_header_actions()
Render header action buttons, (Sync|Add|Options|Community|User|Updates).
$output Render header action buttons html.
None found |
render_page_navigation(array $subitems = array(), null $name_caller = null)
Method render_page_navigation()
Render page navigation.
array | $subitems | [access, active, style]. |
null | $name_caller | Menu Name. |
None found |
render_header(string $title = '') : void
Method render_header()
Render page title.
string | $title | Page title. |
None found |
None found |
add_widget_box(mixed $id, mixed $callback, null $screen = null, array $layout = array())
Method add_widget_box()
Customize WordPress add_meta_box() function.
mixed | $id | Widget ID parameter. |
mixed | $callback | Callback function. |
null | $screen | Current page. |
array | $layout | widget layout. |
None found |
do_widget_boxes(mixed $screen_id, array ...$args) : void
Method do_widget_boxes()
Customize WordPress do_meta_boxes() function.
mixed | $screen_id | Current page ID. |
array | $args variadic | Widget callback args. |
None found |
render_empty_bulk_actions()
Method render_empty_bulk_actions()
Render empty bulk actions when drop down is disabled.
None found |
render_modal_install_plugin_theme(string $what = 'plugin')
Method render_modal_install_plugin_theme()
Render modal window for installing plugins & themes.
string | $what | Which window to render, plugin|theme. |
None found |
render_modal_upload_icon()
Method render_modal_upload_icon()
Render modal window for upload plugins & themes icon.
None found |
render_show_all_updates_button() : void
Method render_show_all_updates_button()
Render show all updates button.
None found |
render_sorting_icons() : void
Method render_sorting_icons()
Render sorting up & down icons.
None found |
render_modal_edit_notes(string $what = 'site') : void
Method render_modal_edit_notes()
Render modal window for edit notes.
string | $what | What modal window to render. Default = site. |
None found |
render_modal_no_sites_note() : void
No Sites Modal
Renders modal window for notification when there are no connected sites.
None found |
render_screen_options(boolean $setting_page = true) : void
Method render_screen_options()
Render modal window for Page Settings.
boolean | $setting_page | Default: True. Widgets that you want to hide in the MainWP Overview page. |
None found |
render_select_mainwp_themes_modal() : void
Method render_select_mainwp_themes_modal()
Render modal window for mainwp themes selection.
None found |
render_install_extensions_promo_modal()
Method render_install_extensions_promo_modal()
None found |
render_empty_element_placeholder(string $placeholder = '')
Method render_empty_element_placeholder()
Renders the content for empty elements.
string | $placeholder | Placelolder text. |
None found |