AA-Template.php
1 year ago
other_config.php
1 year ago
save-button.php
1 year ago
staging.php
1 year ago
store_config.php
1 year ago
troubleshooting.php
1 year ago
what_backed_up.php
1 year ago
where_config.php
1 year ago
where_config.php
247 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 | $preorder = BMI_AUTHOR_URI; |
| 12 | $askMoreESText = sprintf( |
| 13 | __('Need another external storage option? Please %sTell us%s!', 'backup-backup'), |
| 14 | '<a href="mailto:' . BMI_SUPPORT_EMAIL .'?subject=Suggestion for new storage option&body=Please tell us which external storage option you need" target="_blank" class="secondary hoverable nodec">', |
| 15 | '</a>' |
| 16 | ); |
| 17 | |
| 18 | ?> |
| 19 | |
| 20 | <div class="mm mt mbl f20"> |
| 21 | <?php _e("Select all the storage options you want to use:", 'backup-backup'); ?> |
| 22 | </div> |
| 23 | |
| 24 | <div class="mm60"> |
| 25 | <div class="mm tilo"> |
| 26 | |
| 27 | <div class="tab2"> |
| 28 | |
| 29 | <!-- Locally start --> |
| 30 | <div class="tab2-item d-flex jst-sb ia-center activeList"> |
| 31 | <div class="d-flex ia-center"> |
| 32 | <img src="<?php echo $this->get_asset('images', '002-monitor-white.svg') ?>" alt="logo" class="tab2-img"> |
| 33 | <span class="ml25"> |
| 34 | <span class="title_whereStored"><?php _e("Locally", 'backup-backup'); ?></span> |
| 35 | <?php _e("(on this web server)", 'backup-backup'); ?> |
| 36 | </span> |
| 37 | </div> |
| 38 | <div class="ia-center"> |
| 39 | <!-- <div class="b2 bmi-switch"><input type="checkbox" checked class="checkbox storage-checkbox" data-toggle="storage-locally-row"> |
| 40 | <div class="bmi-knobs"><span></span></div> |
| 41 | <div class="bmi-layer_str"></div> |
| 42 | </div> --> |
| 43 | </div> |
| 44 | </div> |
| 45 | <div class="bg_grey" id="storage-locally-row"> |
| 46 | <div class="container-40 lh30 pt30 pb30"> |
| 47 | <div class="d-flex"> |
| 48 | <div class="w270" style="margin-top: 23px;"><span><?php _e("Backup directory path:", 'backup-backup'); ?></span></div> |
| 49 | <div> |
| 50 | <div class="w100 pos-r"><input type="text" id="bmi_path_storage_default" placeholder="<?php _e("Enter directory path", 'backup-backup'); ?>" class="input-locally_web_server" value="<?php echo sanitize_text_field(bmi_get_config('STORAGE::LOCAL::PATH')); ?>" autocomplete="off"> |
| 51 | <!----> |
| 52 | </div> |
| 53 | <div class="mt10"><span> |
| 54 | <?php _e("That’s where your local backups will be stored. If you picked external storage this folder will also be used (to store your backup temporarily, until it is uploaded to the external storage).", 'backup-backup'); ?> |
| 55 | </span></div> |
| 56 | </div> |
| 57 | </div> |
| 58 | <div class="d-flex"> |
| 59 | <div class="w270" style="margin-top: 23px;"><span><?php _e("Accessible via direct link?", 'backup-backup'); ?></span></div> |
| 60 | <div> |
| 61 | <div class="w100"> |
| 62 | <div class="d-flex mr60 ia-center" style="margin-top: 23px;"> |
| 63 | |
| 64 | <label class="container-radio"> |
| 65 | <?php _e("No", 'backup-backup'); ?> |
| 66 | <input type="radio" name="radioAccessViaLink" value="false"<?php echo (bmi_get_config('STORAGE::DIRECT::URL') === 'false')?' checked':'' ?>> |
| 67 | <span class="checkmark-radio"></span> |
| 68 | </label> |
| 69 | |
| 70 | <label class="container-radio ml25"> |
| 71 | <?php _e("Yes", 'backup-backup'); ?> |
| 72 | <input type="radio" name="radioAccessViaLink" value="true"<?php echo (bmi_get_config('STORAGE::DIRECT::URL') === 'true')?' checked':'' ?>> |
| 73 | <span class="checkmark-radio"></span> |
| 74 | </label> |
| 75 | |
| 76 | </div> |
| 77 | </div> |
| 78 | <div class="mt10"> |
| 79 | <span> |
| 80 | <?php _e('Select “Yes” if you want your (manually created) backups to be available via a direct link. This makes migration from one site to another super-fast.', 'backup-backup'); ?> |
| 81 | </span> |
| 82 | </div> |
| 83 | </div> |
| 84 | </div> |
| 85 | </div> |
| 86 | </div> |
| 87 | |
| 88 | <?php include BMI_INCLUDES . '/bodies/storage/backupbliss.php'; ?> |
| 89 | |
| 90 | <?php |
| 91 | if (has_action('bmi_pro_google_drive_template')) { |
| 92 | do_action('bmi_pro_google_drive_template'); |
| 93 | } else { |
| 94 | ?> |
| 95 | <div class="tab2-item"> |
| 96 | <div class="already_ready"></div> |
| 97 | <div class="bg_clock_day2"> |
| 98 | <img src="<?php echo $this->get_asset('images', 'premium.svg') ?>" alt="crown" class="crown_img" height="30px" width="30px"> |
| 99 | <?php echo BMI_ALREADY_IN_PRO; ?> |
| 100 | </div> |
| 101 | <div class="d-flex ia-center"> |
| 102 | <img src="<?php echo $this->get_asset('images', 'google-drive.svg') ?>" alt="logo" class="tab2-img"> <span class="ml25 title_whereStored">Google Drive</span> |
| 103 | <img src="<?php echo $this->get_asset('images', 'premium.svg') ?>" alt="logo" class="crown2"> |
| 104 | </div> |
| 105 | <div class="ia-center"> |
| 106 | <div class="b2 bmi-switch"><input type="checkbox" disabled="disabled" class="checkbox"> |
| 107 | <div class="bmi-knobs"><span></span></div> |
| 108 | <div class="bmi-layer_str"></div> |
| 109 | </div> |
| 110 | </div> |
| 111 | </div> |
| 112 | <?php } ?> |
| 113 | <?php |
| 114 | if (has_action('bmi_pro_dropbox_template')) { |
| 115 | do_action('bmi_pro_dropbox_template'); |
| 116 | } else { |
| 117 | ?> |
| 118 | <div class="tab2-item"> |
| 119 | <div class="already_ready"></div> |
| 120 | <div class="bg_clock_day2"> |
| 121 | <img src="<?php echo $this->get_asset('images', 'premium.svg') ?>" alt="crown" class="crown_img" height="30px" width="30px"> |
| 122 | <?php echo BMI_ALREADY_IN_PRO; ?> |
| 123 | </div> |
| 124 | <div class="d-flex ia-center"> |
| 125 | <img src="<?php echo $this->get_asset('images', 'dropbox.svg') ?>" alt="logo" class="tab2-img"> <span class="ml25 title_whereStored">Dropbox</span> |
| 126 | <img src="<?php echo $this->get_asset('images', 'premium.svg') ?>" alt="logo" class="crown2"> |
| 127 | </div> |
| 128 | <div class="ia-center"> |
| 129 | <div class="b2 bmi-switch"><input type="checkbox" disabled="disabled" class="checkbox"> |
| 130 | <div class="bmi-knobs"><span></span></div> |
| 131 | <div class="bmi-layer_str"></div> |
| 132 | </div> |
| 133 | </div> |
| 134 | </div> |
| 135 | <?php } ?> |
| 136 | |
| 137 | <?php |
| 138 | if (has_action('bmi_pro_one_drive_template')) { |
| 139 | do_action('bmi_pro_one_drive_template'); |
| 140 | } else { |
| 141 | ?> |
| 142 | <div class="tab2-item"> |
| 143 | <div class="already_ready"></div> |
| 144 | <div class="bg_clock_day2"> |
| 145 | <img src="<?php echo $this->get_asset('images', 'premium.svg') ?>" alt="crown" class="crown_img" height="30px" width="30px"> |
| 146 | <?php echo BMI_ALREADY_IN_PRO; ?> |
| 147 | </div> |
| 148 | <div class="d-flex ia-center"> |
| 149 | <img src="<?php echo $this->get_asset('images', 'one-drive.svg') ?>" alt="logo" class="tab2-img"> <span class="ml25 title_whereStored">OneDrive</span> |
| 150 | <img src="<?php echo $this->get_asset('images', 'premium.svg') ?>" alt="logo" class="crown2"> |
| 151 | </div> |
| 152 | <div class="ia-center"> |
| 153 | <div class="b2 bmi-switch"><input type="checkbox" disabled="disabled" class="checkbox"> |
| 154 | <div class="bmi-knobs"><span></span></div> |
| 155 | <div class="bmi-layer_str"></div> |
| 156 | </div> |
| 157 | </div> |
| 158 | </div> |
| 159 | <?php } ?> |
| 160 | |
| 161 | <?php |
| 162 | if (has_action('bmi_pro_sftp_template')) { |
| 163 | |
| 164 | do_action('bmi_pro_sftp_template'); |
| 165 | } else { |
| 166 | ?> |
| 167 | <div class="tab2-item"> |
| 168 | <div class="already_ready"></div> |
| 169 | <div class="bg_clock_day2"> |
| 170 | <img src="<?php echo $this->get_asset('images', 'premium.svg') ?>" alt="crown" class="crown_img" height="30px" width="30px"> |
| 171 | <?php echo BMI_ALREADY_IN_PRO; ?> |
| 172 | </div> |
| 173 | <div class="d-flex ia-center"> |
| 174 | <img src="<?php echo $this->get_asset('images', 'sftp-scp.svg') ?>" alt="logo" class="tab2-img"> <span class="ml25 title_whereStored">SFTP</span> |
| 175 | <img src="<?php echo $this->get_asset('images', 'premium.svg') ?>" alt="logo" class="crown2"> |
| 176 | </div> |
| 177 | <div class="ia-center"> |
| 178 | <div class="b2 bmi-switch"><input type="checkbox" disabled="disabled" class="checkbox"> |
| 179 | <div class="bmi-knobs"><span></span></div> |
| 180 | <div class="bmi-layer_str"></div> |
| 181 | </div> |
| 182 | </div> |
| 183 | </div> |
| 184 | <?php } ?> |
| 185 | |
| 186 | <?php |
| 187 | if (has_action('bmi_pro_ftp_template')) { |
| 188 | |
| 189 | do_action('bmi_pro_ftp_template'); |
| 190 | } else { |
| 191 | ?> |
| 192 | <div class="tab2-item"> |
| 193 | <div class="already_ready"></div> |
| 194 | <div class="bg_clock_day2"> |
| 195 | <img src="<?php echo $this->get_asset('images', 'premium.svg') ?>" alt="crown" class="crown_img" height="30px" width="30px"> |
| 196 | <?php echo BMI_ALREADY_IN_PRO; ?> |
| 197 | </div> |
| 198 | <div class="d-flex ia-center"> |
| 199 | <img src="<?php echo $this->get_asset('images', 'ftp.svg') ?>" alt="logo" class="tab2-img"> <span class="ml25 title_whereStored">FTP</span> |
| 200 | <img src="<?php echo $this->get_asset('images', 'premium.svg') ?>" alt="logo" class="crown2"> |
| 201 | </div> |
| 202 | <div class="ia-center"> |
| 203 | <div class="b2 bmi-switch"><input type="checkbox" disabled="disabled" class="checkbox"> |
| 204 | <div class="bmi-knobs"><span></span></div> |
| 205 | <div class="bmi-layer_str"></div> |
| 206 | </div> |
| 207 | </div> |
| 208 | </div> |
| 209 | <?php } ?> |
| 210 | |
| 211 | <?php |
| 212 | if (has_action('bmi_pro_aws_s3_template')) { |
| 213 | do_action('bmi_pro_aws_s3_template'); |
| 214 | } else { |
| 215 | ?> |
| 216 | <div class="tab2-item"> |
| 217 | <div class="already_ready"></div> |
| 218 | <div class="bg_clock_day2"> |
| 219 | <img src="<?php echo $this->get_asset('images', 'premium.svg') ?>" alt="crown" class="crown_img" height="30px" width="30px"> |
| 220 | <?php echo BMI_ALREADY_IN_PRO; ?> |
| 221 | </div> |
| 222 | <div class="d-flex ia-center"> |
| 223 | <img src="<?php echo $this->get_asset('images', 'Amazon.svg') ?>" alt="logo" class="tab2-img"> <span class="ml25 title_whereStored">Amazon S3</span> |
| 224 | <img src="<?php echo $this->get_asset('images', 'premium.svg') ?>" alt="logo" class="crown2"> |
| 225 | </div> |
| 226 | <div class="ia-center"> |
| 227 | <div class="b2 bmi-switch"><input type="checkbox" disabled="disabled" class="checkbox"> |
| 228 | <div class="bmi-knobs"><span></span></div> |
| 229 | <div class="bmi-layer_str"></div> |
| 230 | </div> |
| 231 | </div> |
| 232 | </div> |
| 233 | <?php } ?> |
| 234 | <?php |
| 235 | if (has_action('bmi_pro_wasabi_template')) { |
| 236 | do_action('bmi_pro_wasabi_template'); |
| 237 | } |
| 238 | ?> |
| 239 | </div> |
| 240 | <div class="center f16" style="margin-top: 10px;"> |
| 241 | <span><?php echo $askMoreESText; ?></span> |
| 242 | </div> |
| 243 | </div> |
| 244 | </div> |
| 245 | |
| 246 | <?php include BMI_INCLUDES . '/dashboard/chapter/save-button.php'; ?> |
| 247 |