PluginProbe
UpdraftCentral Dashboard / 0.8.32
UpdraftCentral Dashboard v0.8.32
0.8.33 0.7.2 0.7.3 0.7.4 0.8.0 0.8.1 0.8.10 0.8.11 0.8.12 0.8.13 0.8.14 0.8.15 0.8.16 0.8.17 0.8.18 0.8.19 0.8.2 0.8.20 0.8.21 0.8.22 0.8.23 0.8.24 0.8.25 0.8.26 0.8.27 All 51 releases
updraftcentral / actions / showmain.php

showmain.php in UpdraftCentral Dashboard 0.8.32, at actions/showmain.php

34 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if (!defined('UD_CENTRAL_DIR')) die('Security check');
3
4 /**
5 * Shows default dashboard. List of sites to manage, if available
6 */
7 class UpdraftRC_Action_showmain extends UpdraftRC_Action {
8
9 // No nonce required to show the dashboard
10 public $check_nonce = false;
11
12 public function render() {
13
14 // Show the table of existing sites
15 $sites_container_classes = apply_filters('updraftcentral_sites_container_classes', 'updraftcentral-show-in-other-tabs updraftcentral-hide-in-tab-notices');
16
17 ?>
18
19 <noscript>
20 <p><?php echo __('UpdraftCentral is a JavaScript application.', 'updraftcentral').' '.__('You will need to have JavaScript enabled in order to use it.', 'updraftcentral');?></p>
21 </noscript>
22
23 <div id="updraftcentral_dashboard_existingsites_container" class="<?php echo esc_attr($sites_container_classes);?>">
24 <div id="updraftcentral_dashboard_existingsites">
25 <?php echo wp_kses($this->user->get_sites_html(), wp_kses_allowed_html('post'));?>
26 </div>
27 </div>
28 <div id="updraftcentral_dashboard_loading"><?php esc_html_e('Loading...', 'updraftcentral');?><span class="updraftcentral_spinner updraftcentral_loading_spinner"></span></div>
29
30 <?php
31
32 }
33 }
34