????
| Current Path : /home2/morganrand/www/wp-content/plugins/duplicator/views/tools/ |
| Current File : /home2/morganrand/www/wp-content/plugins/duplicator/views/tools/controller.php |
<?php
require_once(DUPLICATOR_PLUGIN_PATH . '/classes/ui/class.ui.dialog.php');
require_once(DUPLICATOR_PLUGIN_PATH . '/assets/js/javascript.php');
require_once(DUPLICATOR_PLUGIN_PATH . '/views/inc.header.php');
global $wpdb;
global $wp_version;
DUP_Util::hasCapability('manage_options');
$current_tab = isset($_REQUEST['tab']) ? esc_html($_REQUEST['tab']) : 'diagnostics';
?>
<div class="wrap">
<?php duplicator_header(__("Tools", 'duplicator')) ?>
<h2 class="nav-tab-wrapper">
<a href="?page=duplicator-tools&tab=diagnostics" class="nav-tab <?php echo ($current_tab == 'diagnostics') ? 'nav-tab-active' : '' ?>"> <?php esc_html_e('Diagnostics', 'duplicator'); ?></a>
<a href="?page=duplicator-tools&tab=templates" class="nav-tab <?php echo ($current_tab == 'templates') ? 'nav-tab-active' : '' ?>"> <?php esc_html_e('Templates', 'duplicator'); ?></a>
</h2>
<?php
switch ($current_tab) {
case 'diagnostics': include('diagnostics/main.php');
break;
case 'templates': include('templates.php');
break;
}
?>
</div>