chapter
11 months ago
modals
11 months ago
modules
11 months ago
templates
11 months ago
settings.php
11 months ago
translations.php
11 months ago
settings.php
267 lines
| 1 | <?php |
| 2 | |
| 3 | // Namespace |
| 4 | namespace BMI\Plugin\Dashboard; |
| 5 | |
| 6 | // Exit on direct access |
| 7 | if (!defined('ABSPATH')) { |
| 8 | exit; |
| 9 | } |
| 10 | |
| 11 | // Configuration sets tooltip |
| 12 | if (defined('BMI_PREMIUM_TOOLTIP')) { |
| 13 | $configu_sets = str_replace('"', "'", BMI_PREMIUM_TOOLTIP); |
| 14 | } else $configu_sets = ''; |
| 15 | |
| 16 | // Presets |
| 17 | if (!has_action('bmi_premium_other_options')) { |
| 18 | bmi_set_config('OTHER:PROMOTIONAL:DISPLAY', false); |
| 19 | } |
| 20 | |
| 21 | ?> |
| 22 | <script type="text/javascript"> |
| 23 | if (document.querySelector('#modal-css')) document.querySelector('#modal-css').remove(); |
| 24 | </script> |
| 25 | <style> |
| 26 | #wpfooter { display: none !important; } |
| 27 | #wpfooter #footer-left { display: none; } |
| 28 | #wpfooter #footer-upgrade { display: none; } |
| 29 | #wp-auth-check-wrap { display: none !important; } |
| 30 | .bmi-modal { transform: translateY(0%) !important; } |
| 31 | </style> |
| 32 | <div id="bmi-preload"> |
| 33 | <div class="progress"> |
| 34 | <div class="indeterminate"></div> |
| 35 | </div> |
| 36 | </div> |
| 37 | |
| 38 | <div id="bmi" style="display: none;"> |
| 39 | |
| 40 | <!-- Translations for JS --> |
| 41 | <?php require_once 'translations.php'; ?> |
| 42 | <!-- Plugin Title --> |
| 43 | <div class="heading f30 semibold"> |
| 44 | Backup Migration <small class="regular f20">by <a href="https://backupbliss.com" class="secondary" target="_blank">BackupBliss</a></small> |
| 45 | </div> |
| 46 | |
| 47 | <!-- TABS --> |
| 48 | <div class="bmi-tabs cf shadow rbb"> |
| 49 | <div class="bmi-tab left semibold f22 active pointer transition" data-point="create-backup-wrapper"> |
| 50 | <?php _e('Create backup(s)', 'backup-backup') ?> |
| 51 | </div> |
| 52 | <div id="stgng" class="bmi-tab left semibold f22 pointer transition" data-point="staging-sites-wrapper"> |
| 53 | <span class="bmi-stg-wrap"> |
| 54 | <?php _e('Create a staging site', 'backup-backup') ?> |
| 55 | <span id="bmi-stg-new"></span> |
| 56 | <i>NEW</i> |
| 57 | </span> |
| 58 | </div> |
| 59 | <div id="marbs" class="bmi-tab left semibold f22 pointer transition" data-point="manage-restore-wrapper"> |
| 60 | <?php _e('Manage & Restore Backup(s)', 'backup-backup') ?> |
| 61 | </div> |
| 62 | </div> |
| 63 | |
| 64 | <!-- Error handling --> |
| 65 | <?php require_once 'modules/email-errors.php'; ?> |
| 66 | <?php require_once 'modules/security-plugins-warning.php'; ?> |
| 67 | <?php require_once 'modules/quota-errors.php'; ?> |
| 68 | <?php has_action('bmi_premium_errors') ? do_action('bmi_premium_errors') : ''; ?> |
| 69 | <?php has_action('bmi_external_errors') ? do_action('bmi_external_errors') : ''; ?> |
| 70 | <?php require_once 'modules/before-update-backup-errors.php'; ?> |
| 71 | |
| 72 | <!-- @@TAB@@ Create backups(s) --> |
| 73 | <div class="bmi-tab-wrapper" id="create-backup-wrapper"> |
| 74 | |
| 75 | <!-- BACKUP BTNS --> |
| 76 | <?php require_once 'modules/backup_controller.php'; ?> |
| 77 | |
| 78 | <!-- CONFIGURATION HEADER --> |
| 79 | <div class="cf section-bmi lh30"> |
| 80 | <div class="left f20"> |
| 81 | <?php _e('Configuration options', 'backup-backup') ?> |
| 82 | </div> |
| 83 | <div class="right f18 secondary premium-wrapper" tooltip="<?php echo $configu_sets; ?>"> |
| 84 | <div class="premium premium-img"> |
| 85 | <?php _e('+ Add / manage configuration set(s)', 'backup-backup') ?> |
| 86 | </div> |
| 87 | </div> |
| 88 | </div> |
| 89 | |
| 90 | <!-- CONFIGURATION SECTION 1 --> |
| 91 | <div class="collapser section-bmi shadow" id="exlucde-parts" group="configuration"> |
| 92 | <div class="header f20 pointer transition"> |
| 93 | <span class="bold"><?php _e('What', 'backup-backup') ?></span> <?php _e('will be backed up?', 'backup-backup') ?> |
| 94 | </div> |
| 95 | <div class="content save-action f20" data-save="save-file-config"> |
| 96 | |
| 97 | <?php require_once 'chapter/what_backed_up.php'; ?> |
| 98 | |
| 99 | </div> |
| 100 | </div> |
| 101 | |
| 102 | <!-- CONFIGURATION SECTION 2 --> |
| 103 | <div class="collapser section-bmi shadow" id="storage-options" group="configuration"> |
| 104 | <div class="header f20 pointer transition" id="bmi-external-storage-options"> |
| 105 | <span class="bold"><?php _e('Where', 'backup-backup') ?></span> <?php _e('shall the backup(s) be stored?', 'backup-backup') ?> |
| 106 | </div> |
| 107 | <div class="content save-action" data-save="save-storage"> |
| 108 | |
| 109 | <?php require_once 'chapter/where_config.php'; ?> |
| 110 | |
| 111 | </div> |
| 112 | </div> |
| 113 | |
| 114 | <!-- CONFIGURATION SECTION 3 --> |
| 115 | <div class="collapser section-bmi shadow" group="configuration"> |
| 116 | <div class="header f20 pointer transition"> |
| 117 | <span class="bold"><?php _e('How', 'backup-backup') ?></span> <?php _e('should the backup(s) be stored?', 'backup-backup') ?> |
| 118 | </div> |
| 119 | <div class="content save-action" data-save="store-config"> |
| 120 | |
| 121 | <?php require_once 'chapter/store_config.php'; ?> |
| 122 | |
| 123 | </div> |
| 124 | </div> |
| 125 | |
| 126 | <!-- SECTION DIVIDER --> |
| 127 | <hr class="section-bmi"> |
| 128 | |
| 129 | <!-- GLOBAL CONFIGURATION --> |
| 130 | <div class="collapser section-bmi shadow" id="other-options" group="configuration"> |
| 131 | <div class="header f20 pointer transition"><span class="bold"><?php _e('Other options', 'backup-backup') ?></span></div> |
| 132 | <div class="content save-action" data-save="save-other-options"> |
| 133 | |
| 134 | <?php require_once 'chapter/other_config.php'; ?> |
| 135 | |
| 136 | </div> |
| 137 | </div> |
| 138 | |
| 139 | <!-- TROUBLESHOOTING --> |
| 140 | <div class="collapser section-bmi shadow" id="troubleshooting-chapter" group="configuration"> |
| 141 | <div class="header f20 pointer transition"><span class="bold"><?php _e('Troubleshooting', 'backup-backup') ?></span></div> |
| 142 | <div class="content"> |
| 143 | |
| 144 | <?php require_once 'chapter/troubleshooting.php'; ?> |
| 145 | |
| 146 | </div> |
| 147 | </div> |
| 148 | |
| 149 | </div> |
| 150 | |
| 151 | <!-- @@TAB@@ Create staging site(s) --> |
| 152 | <div class="bmi-tab-wrapper rbb mbl" id="staging-sites-wrapper" style="display: none;"> |
| 153 | |
| 154 | <?php require_once 'chapter/staging.php'; ?> |
| 155 | |
| 156 | </div> |
| 157 | |
| 158 | <!-- @@TAB@@ Manage backups(s) --> |
| 159 | <div class="bmi-tab-wrapper rbb mbl" id="manage-restore-wrapper" style="display: none;"> |
| 160 | |
| 161 | <!-- Super Quick Migration --> |
| 162 | <?php require_once 'modules/super-quick-migration.php'; ?> |
| 163 | |
| 164 | <div class="restore-wrapper shadow fullwidth rbb rbt"> |
| 165 | <div class="f22 regular m mbl"><?php _e("Your saved backups:", 'backup-backup'); ?></div> |
| 166 | |
| 167 | <!-- Super Quick Migration --> |
| 168 | <div class="quick-migration m"> |
| 169 | |
| 170 | <!-- Templates --> |
| 171 | <div style="display: none; visibility: none;" class="hide"> |
| 172 | |
| 173 | <!-- Backup Row Template --> |
| 174 | <?php require_once 'templates/backup-row-template.php'; ?> |
| 175 | |
| 176 | <!-- Staging Row Template --> |
| 177 | <?php require_once 'templates/staging-row-template.php'; ?> |
| 178 | |
| 179 | <!-- Exclusion Rule Row Template --> |
| 180 | <?php require_once 'templates/exclusion-rule-template.php'; ?> |
| 181 | |
| 182 | <!-- Dropdown Template --> |
| 183 | <?php require_once 'templates/dropdown-template.php'; ?> |
| 184 | |
| 185 | <!-- Dropdown Option Template --> |
| 186 | <?php require_once 'templates/option-template.php'; ?> |
| 187 | |
| 188 | </div> |
| 189 | |
| 190 | <!-- Backups TABLE --> |
| 191 | <div class=""> |
| 192 | |
| 193 | <div class="table-wrapper"> |
| 194 | <table> |
| 195 | <thead> |
| 196 | |
| 197 | <!-- Table Header --> |
| 198 | <?php require_once 'modules/backups-table-header.php'; ?> |
| 199 | |
| 200 | </thead> |
| 201 | <tbody id="bmi_restore_tbody" data-empty="<?php _e('You have not created any backups yet.', 'backup-backup'); ?>"> |
| 202 | <tr> |
| 203 | <td colspan="100%"><?php _e('You have not created any backups yet.', 'backup-backup'); ?></td> |
| 204 | </tr> |
| 205 | </tbody> |
| 206 | </table> |
| 207 | </div> |
| 208 | |
| 209 | <!-- Backup options --> |
| 210 | <?php require_once 'modules/backups-under-table.php'; ?> |
| 211 | |
| 212 | </div> |
| 213 | |
| 214 | <!-- Upload Backup --> |
| 215 | <?php require_once 'modules/upload-backup.php'; ?> |
| 216 | |
| 217 | </div> |
| 218 | |
| 219 | </div> |
| 220 | </div> |
| 221 | |
| 222 | <!-- Premium status --> |
| 223 | <?php do_action('bmi_premium_status'); ?> |
| 224 | |
| 225 | <!-- Modals --> |
| 226 | <?php require_once 'modals/upload-invalid-manifest-modal.php'; ?> |
| 227 | <?php require_once 'modals/backup-progress-modal.php'; ?> |
| 228 | <?php require_once 'modals/backup-success-modal.php'; ?> |
| 229 | <?php require_once 'modals/prenotice-modal.php'; ?> |
| 230 | <?php require_once 'modals/pre-restore-modal.php'; ?> |
| 231 | <?php require_once 'modals/restore-parts-modal.php'; ?> |
| 232 | <?php require_once 'modals/error-modal.php'; ?> |
| 233 | <?php require_once 'modals/restore-progress-modal.php'; ?> |
| 234 | <?php require_once 'modals/restore-success-modal.php'; ?> |
| 235 | <?php require_once 'modals/upload-wrong-file-modal.php'; ?> |
| 236 | <?php require_once 'modals/upload-exist-file-modal.php'; ?> |
| 237 | <?php require_once 'modals/upload-success-modal.php'; ?> |
| 238 | <?php require_once 'modals/staging-progress-modal.php'; ?> |
| 239 | <?php require_once 'modals/staging-success-modal.php'; ?> |
| 240 | <?php require_once 'modals/staging-error-modal.php'; ?> |
| 241 | <?php require_once 'modals/staging-prenotice-modal.php'; ?> |
| 242 | <?php require_once 'modals/delete-confirm-modal.php'; ?> |
| 243 | <?php require_once 'modals/staging-delete-confirm-modal.php'; ?> |
| 244 | <?php require_once 'modals/staging-rename-modal.php'; ?> |
| 245 | <?php require_once 'modals/reset-confirm-modal.php'; ?> |
| 246 | <?php require_once 'modals/bfs-modal.php'; ?> |
| 247 | <?php require_once 'modals/after-logs-sent.php'; ?> |
| 248 | <?php require_once 'modals/freeze-loading.php'; ?> |
| 249 | <?php require_once 'modals/logs-modal.php'; ?> |
| 250 | <?php require_once 'modals/bb-disconnect-modal.php'; ?> |
| 251 | <?php //require_once 'modals/logs-sharing-ask.php'; ?> |
| 252 | <?php require_once 'modals/supportive-restore-success-cont.php'; ?> |
| 253 | <?php require_once 'modals/supportive-restore-success-modal.php'; ?> |
| 254 | <?php do_action('bmi_load_premium_modals'); ?> |
| 255 | |
| 256 | <!-- Other modules --> |
| 257 | <?php require_once 'modules/backup-ongoing.php'; ?> |
| 258 | <?php require_once 'modules/support-chat.php'; ?> |
| 259 | |
| 260 | </div> |
| 261 | |
| 262 | <?php if (bmi_get_config('OTHER:PROMOTIONAL:DISPLAY') != 'true') { ?> |
| 263 | <!-- Carrousel --> |
| 264 | <div id="bmi_carrousel" style="display: none;"> |
| 265 | <?php do_action('ins_global_print_carrousel'); ?> |
| 266 | </div> |
| 267 | <?php } ?> |