PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backup, Restore, Migration & Clone / 3.8.2
WP STAGING – WordPress Backup, Restore, Migration & Clone v3.8.2
4.9.2 4.9.1 4.9.0 4.8.1 trunk 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.10.0 3.2.0 3.3.1 3.3.2 3.3.3 3.4.1 3.4.3 3.5.0 3.6.0 3.7.1 3.8.0 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.8.6 3.8.7 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4 4.0.0 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.2.0 4.2.1 4.3.0 4.3.1 4.3.2 4.4.0 4.5.0 4.6.0 4.7.0 4.7.1 4.7.2 4.7.3 4.8.0
wp-staging / Backend / views / settings / main-settings.php
wp-staging / Backend / views / settings Last commit date
tabs 1 year ago main-settings.php 2 years ago
main-settings.php
66 lines
1 <?php
2
3 use WPStaging\Framework\Facades\Sanitize;
4
5 settings_errors(); ?>
6 <div class="wpstg_admin" id="wpstg-clonepage-wrapper">
7 <?php
8 require_once(WPSTG_PLUGIN_DIR . 'Backend/views/_main/header.php');
9
10 $isActiveSettingsPage = true;
11 require_once(WPSTG_PLUGIN_DIR . 'Backend/views/_main/main-navigation.php');
12 ?>
13 <div class="wpstg-loading-bar-container">
14 <div class="wpstg-loading-bar"></div>
15 </div>
16 <div class="wpstg-tabs-container" id="wpstg-settings">
17
18 <ul class="wpstg-nav-tab-wrapper">
19
20 <?php
21 $tabs = \WPStaging\Core\WPStaging::getInstance()->get("tabs")->get();
22 $activeTab = (isset($_GET["tab"]) && array_key_exists($_GET["tab"], $tabs)) ? Sanitize::sanitizeString($_GET["tab"]) : "general";
23
24 # Loop through tabs
25 foreach ($tabs as $id => $name) :
26 $url = esc_url(
27 add_query_arg(
28 [
29 "settings-updated" => false,
30 "tab" => $id
31 ]
32 )
33 );
34
35 $activeClass = ($activeTab === $id) ? " wpstg-nav-tab-active" : '';
36 ?>
37 <li>
38 <a href="<?php
39 echo esc_url($url) ?>" title="<?php
40 echo esc_attr($name) ?>" class="wpstg-nav-tab<?php
41 echo esc_attr($activeClass) ?>">
42 <?php
43 echo esc_html($name) ?>
44 </a>
45 </li>
46 <?php
47 unset($url, $activeClass);
48 endforeach;
49 ?>
50 </ul>
51
52 <div class="wpstg-metabox-holder">
53 <?php
54 if ($activeTab === 'general') {
55 $numberOfLoadingBars = 57;
56 include(WPSTG_PLUGIN_DIR . 'Backend/views/_main/loading-placeholder.php');
57 }
58
59 require_once $this->path . "views/settings/tabs/" . $activeTab . ".php";
60 ?>
61 </div>
62 </div>
63 </div>
64 <?php
65 require_once $this->path . "views/_main/footer.php" ?>
66