| 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 _e('UpdraftCentral is a JavaScript application. 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 $sites_container_classes;?>"> |
| 24 |
<div id="updraftcentral_dashboard_existingsites"> |
| 25 |
<?php echo $this->user->get_sites_html(); ?> |
| 26 |
</div> |
| 27 |
</div> |
| 28 |
<div id="updraftcentral_dashboard_loading"><?php _e('Loading...', 'updraftcentral');?><span class="updraftcentral_spinner updraftcentral_loading_spinner"></span></div> |
| 29 |
|
| 30 |
<?php |
| 31 |
|
| 32 |
} |
| 33 |
} |
| 34 |
|