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 |