PluginProbe ʕ •ᴥ•ʔ
JetBackup – Backup, Restore & Migrate / 1.6.12
JetBackup – Backup, Restore & Migrate v1.6.12
3.1.22.3 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.8.1 1.4.9 1.5.0 1.5.1 1.5.1.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.6.0 1.6.10 1.6.11 1.6.12 1.6.13 1.6.15 1.6.5.1 1.6.8.8 1.6.9 1.6.9.1 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7.5 2.0.8.7 2.0.9.11 2.0.9.14 2.0.9.15 2.0.9.6 2.0.9.7 2.0.9.9 3.1.10.7 3.1.11.1 3.1.12.3 3.1.13.4 3.1.14.17 3.1.15.4 3.1.16.1 3.1.17.5 3.1.18.10 3.1.18.8 3.1.18.9 3.1.19.8 3.1.20.3 3.1.21.3 3.1.7.9 3.1.9.2 trunk 1.1.90 1.1.91 1.2.0 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2
backup / public / include / sidebar.php
backup / public / include Last commit date
footer-new.php 3 years ago footer.php 3 years ago functions.php 3 years ago header-new.php 3 years ago header.php 3 years ago modal.php 10 years ago sidebar.php 3 years ago uninstallSurveyPopup.php 5 years ago
sidebar.php
131 lines
1 <?php
2 $extensionAdapter = SGExtension::getInstance();
3 $page = $_GET['page'];
4
5 $isDisabelAdsEnabled = SGConfig::get('SG_DISABLE_ADS');
6 $showUpgradeButton = SGBoot::isFeatureAvailable('SHOW_UPGRADE_PAGE');
7 $buttonText = 'Buy now!';
8 $upgradeText = 'Website migration, Backup to cloud, automation, mail notifications, and more in our PRO package!';
9 $buttonUrl = SG_BACKUP_SITE_URL;
10
11 $pluginCapabilities = backupGuardGetCapabilities();
12
13 if ($pluginCapabilities != BACKUP_GUARD_CAPABILITIES_FREE) {
14 $buttonText = 'Upgrade to ';
15 $buttonUrl = SG_BACKUP_PRODUCTS_URL;
16
17 $upgradeTo = "";
18 if ($pluginCapabilities == BACKUP_GUARD_CAPABILITIES_GOLD) {
19 $upgradeTo = 'Platinum';
20 } elseif ($pluginCapabilities == BACKUP_GUARD_CAPABILITIES_SILVER) {
21 $upgradeTo = 'Gold';
22 }
23
24 $upgradeText = $buttonText . $upgradeTo . ' by paying only difference between plans.';
25 $buttonText = $buttonText . $upgradeTo;
26 }
27
28 $supportUrl = network_admin_url('admin.php?page=backup_guard_support');
29 $openContent = 1;
30 if ($pluginCapabilities == BACKUP_GUARD_CAPABILITIES_FREE) {
31 $openContent = 0;
32 $supportUrl = BACKUP_GUARD_WORDPRESS_SUPPORT_URL;
33 }
34 ?>
35 <div id="sg-sidebar-wrapper" class="metro">
36 <a class="sg-site-url" href="<?php echo network_admin_url('admin.php?page=backup_guard_backups'); ?>">
37 <div class="title">
38 <span class="sg-action-menu-arrow"></span>
39 </div>
40 </a>
41 <nav class="sidebar dark sg-backup-sidebar-nav" id="sg-main-sidebar">
42 <ul>
43 <li class="<?php echo strpos($page, 'backups') ? 'active' : '' ?>">
44 <a href="<?php echo network_admin_url('admin.php?page=backup_guard_backups'); ?>"
45 data-page-key="backups">
46 <span class="glyphicon glyphicon-hdd"></span><?php _backupGuardT('Backups') ?>
47 </a>
48 <span class="sg-action-menu-arrow"></span>
49 </li>
50 <li class="<?php echo strpos($page, 'cloud') ? 'active' : '' ?>">
51 <a href="<?php echo network_admin_url('admin.php?page=backup_guard_cloud'); ?>" data-page-key="cloud">
52 <span class="glyphicon glyphicon-cloud" aria-hidden="true"></span><?php _backupGuardT('Cloud') ?>
53 </a>
54 <span class="sg-action-menu-arrow"></span>
55 </li>
56 <?php if (SGBoot::isFeatureAvailable('SCHEDULE')) : ?>
57 <li class="<?php echo strpos($page, 'schedule') ? 'active' : '' ?>">
58 <a href="<?php echo network_admin_url('admin.php?page=backup_guard_schedule'); ?>"
59 data-page-key="schedule">
60 <span class="glyphicon glyphicon-time"
61 aria-hidden="true"></span><?php _backupGuardT('Schedule') ?>
62 </a>
63 <span class="sg-action-menu-arrow"></span>
64 </li>
65 <?php endif; ?>
66 <li class="<?php echo strpos($page, 'settings') ? 'active' : '' ?>">
67 <a href="<?php echo network_admin_url('admin.php?page=backup_guard_settings'); ?>"
68 data-page-key="settings">
69 <span class="glyphicon glyphicon-cog" aria-hidden="true"></span><?php _backupGuardT('Settings') ?>
70 </a>
71 <span class="sg-action-menu-arrow"></span>
72 </li>
73 <li class="<?php echo strpos($page, 'system_info') ? 'active' : '' ?>">
74 <a href="<?php echo network_admin_url('admin.php?page=backup_guard_system_info'); ?>"
75 data-page-key="system_info">
76 <span class="glyphicon glyphicon-equalizer"
77 aria-hidden="true"></span><?php _backupGuardT('System Info.') ?>
78 </a>
79 <span class="sg-action-menu-arrow"></span>
80 </li>
81 <li class="<?php echo strpos($page, 'videoTutorials') ? 'active' : '' ?>">
82 <a href="<?php echo esc_url($supportUrl); ?>" data-page-key="videoTutorials">
83 <span class="sg-backup-menu-video"
84 aria-hidden="true"></span><?php _backupGuardT('Video Tutorials') ?>
85 </a>
86 <span class="sg-action-menu-arrow"></span>
87 </li>
88 <li class="<?php echo strpos($page, 'support') ? 'active' : '' ?>">
89 <a href="<?php echo esc_url($supportUrl); ?>" data-page-key="support"
90 data-open-content="<?php echo esc_attr($openContent); ?>">
91 <span class="glyphicon glyphicon-envelope"
92 aria-hidden="true"></span><?php _backupGuardT('Support') ?>
93 </a>
94 <span class="sg-action-menu-arrow"></span>
95 </li>
96 <?php if (SGBoot::isFeatureAvailable('SHOW_UPGRADE_PAGE')) : ?>
97 <li class="<?php echo strpos($page, 'pro_features') ? 'active' : '' ?>">
98 <a href="<?php echo network_admin_url('admin.php?page=backup_guard_pro_features'); ?>"
99 data-page-key="pro_features">
100 <span class="glyphicon glyphicon-refresh"
101 aria-hidden="true"></span><?php _backupGuardT('Why upgrade?') ?>
102 </a>
103 <span class="sg-action-menu-arrow"></span>
104 </li>
105 <?php endif; ?>
106 <!-- Will be added in the future release -->
107 <!-- <?php if ($extensionAdapter->isExtensionActive(SG_BACKUP_GUARD_SECURITY_EXTENSION)) : ?>
108 <li class="<?php echo strpos($page, 'security') ? 'active' : '' ?>">
109 <a href="<?php echo network_admin_url('admin.php?page=backup_guard_security'); ?>">
110 <span class="glyphicon glyphicon-lock" aria-hidden="true"></span>Security
111 <span class="badge badge-info">New</span>
112 </a>
113 </li>
114 <?php endif; ?> -->
115 </ul>
116 </nav>
117 <?php if ($showUpgradeButton && !$isDisabelAdsEnabled) : ?>
118 <div class="sg-alert-pro">
119 <p class="sg-upgrade-text">
120 <?php _backupGuardT($upgradeText); ?>
121 </p>
122 <p>
123 <a class="btn btn-success" target="_blank"
124 href="<?php echo $buttonUrl . '?utm_source=plugin&utm_medium=Left_cta&utm_campaign=BuyNow_plugin'; ?>">
125 <?php _backupGuardT($buttonText); ?>
126 </a>
127 </p>
128 </div>
129 <?php endif; ?>
130 </div>
131