AA-Template.php
11 months ago
other_config.php
11 months ago
save-button.php
11 months ago
staging.php
11 months ago
store_config.php
11 months ago
troubleshooting.php
11 months ago
what_backed_up.php
11 months ago
where_config.php
11 months ago
store_config.php
182 lines
| 1 | <?php |
| 2 | |
| 3 | // Namespace |
| 4 | namespace BMI\Plugin\Dashboard; |
| 5 | |
| 6 | // Exit on direct access |
| 7 | if (!defined('ABSPATH')) exit; |
| 8 | |
| 9 | $urlparts = parse_url(home_url()); |
| 10 | $domain = $urlparts['host']; |
| 11 | |
| 12 | $backupTypeBase = __('%sThis feature is available in our premium extension!%s', 'backup-backup'); |
| 13 | $backupType = $backupTypeBase . __('%sUpgrade to %sPremium%s today%s%s%sWe made it really affordable!%s', 'backup-backup'); |
| 14 | $backupType = sprintf($backupType, '<div class="bmi-center-text">', '<br>', '<a href="' . BMI_AUTHOR_URI . '" target="_blank">', '<span class="bmi-premium-bg-stars">', '</span>', '</a>', '<br>', '<b>', '</b>', '</div>'); |
| 15 | |
| 16 | ?> |
| 17 | |
| 18 | <div class="mm mt mbl"> |
| 19 | |
| 20 | <div class="lh30 mbll"> |
| 21 | <div class="fo-title semibold"><?php _e("File name", 'backup-backup'); ?></div> |
| 22 | <div class="f20"><?php _e("Your backup(s) will be given the following file name(s):", 'backup-backup'); ?></div> |
| 23 | </div> |
| 24 | |
| 25 | <div class="mm mm-border"> |
| 26 | <div class="center f18"> |
| 27 | <div class=""> |
| 28 | <input type="text" autocomplete="off" id="backup_filename" class="bmi-text-input" value="<?php echo sanitize_text_field(bmi_get_config('BACKUP:NAME')); ?>"> |
| 29 | <!-- <span class="oll mrr">.zip </span> --> |
| 30 | <a href="#" id="show-format-tip" class="nodec secondary hoverable"><?php _e("Huh? Explain this please", 'backup-backup'); ?></a> |
| 31 | </div> |
| 32 | </div> |
| 33 | </div> |
| 34 | |
| 35 | </div> |
| 36 | |
| 37 | <div class="mm lh30 f16 bg-second mtl mbl" id="format-tip-wrp" style="display: none;"> |
| 38 | |
| 39 | <div class="lh30 f18"> |
| 40 | <?php _e("We’re giving you maximum flexibility to automatically name your backup files in the way you want. Simply use below keys:", 'backup-backup'); ?> |
| 41 | </div> |
| 42 | <div class="mm mtl"> |
| 43 | <div class="format-entry"><b>%Y</b> = <?php _e("A full numeric representation of a year, 4 digits", 'backup-backup'); ?></div> |
| 44 | <div class="format-entry"><b>%M</b> = <?php _e("A short textual representation of a month, three letters", 'backup-backup'); ?></div> |
| 45 | <div class="format-entry"><b>%D</b> = <?php _e("A textual representation of a day, three letters", 'backup-backup'); ?></div> |
| 46 | <div class="format-entry"><b>%d</b> = <?php _e("Day of the month, 2 digits with leading zeros", 'backup-backup'); ?></div> |
| 47 | <div class="format-entry"><b>%j</b> = <?php _e("Day of the month without leading zeros", 'backup-backup'); ?></div> |
| 48 | <div class="format-entry"><b>%m</b> = <?php _e("Numeric representation of a month, with leading zeros", 'backup-backup'); ?></div> |
| 49 | <div class="format-entry"><b>%n</b> = <?php _e("Numeric representation of a month, without leading zeros", 'backup-backup'); ?></div> |
| 50 | <div class="format-entry"><b>%Y</b> = <?php _e("A full numeric representation of a year, 4 digits", 'backup-backup'); ?></div> |
| 51 | <div class="format-entry"><b>%y</b> = <?php _e("A two digit representation of a year", 'backup-backup'); ?></div> |
| 52 | <div class="format-entry"><b>%a</b> = <?php _e("Lowercase Ante meridiem and Post meridiem", 'backup-backup'); ?></div> |
| 53 | <div class="format-entry"><b>%A</b> = <?php _e("Uppercase Ante meridiem and Post meridiem", 'backup-backup'); ?></div> |
| 54 | <div class="format-entry"><b>%B</b> = <?php _e("Swatch Internet time", 'backup-backup'); ?></div> |
| 55 | <div class="format-entry"><b>%g</b> = <?php _e("12-hour format of an hour without leading zeros", 'backup-backup'); ?></div> |
| 56 | <div class="format-entry"><b>%G</b> = <?php _e("24-hour format of an hour without leading zeros", 'backup-backup'); ?></div> |
| 57 | <div class="format-entry"><b>%h</b> = <?php _e("12-hour format of an hour with leading zeros", 'backup-backup'); ?></div> |
| 58 | <div class="format-entry"><b>%H</b> = <?php _e("24-hour format of an hour with leading zeros", 'backup-backup'); ?></div> |
| 59 | <div class="format-entry"><b>%i</b> = <?php _e("Minutes with leading zeros", 'backup-backup'); ?></div> |
| 60 | <div class="format-entry"><b>%s</b> = <?php _e("Seconds with leading zeros", 'backup-backup'); ?></div> |
| 61 | <div class="format-entry"><b>%hash</b> = <?php _e("16 character random hash", 'backup-backup'); ?></div> |
| 62 | <div class="format-entry"><b>%domain</b> = <?php _e("Current domain name of the website.", 'backup-backup'); ?><?php echo " (" . str_replace('.', '-', sanitize_text_field($domain)) . ") "; ?></div> |
| 63 | |
| 64 | </div> |
| 65 | <div class="lh30 f18 mtl"> |
| 66 | <?php _e("Extension will be automatically appended to the name during backup creation.", 'backup-backup'); ?> |
| 67 | </div> |
| 68 | <div class="right-align"> |
| 69 | <a href="#" class="hoverable nodec secondary" id="hide-format-tip"><?php _e("Hide", 'backup-backup'); ?></a> |
| 70 | </div> |
| 71 | |
| 72 | </div> |
| 73 | |
| 74 | <hr> |
| 75 | |
| 76 | <div class="mm mbl mtl"> |
| 77 | |
| 78 | <div class="lh30 mbll"> |
| 79 | <div class="fo-title semibold"><?php _e("Zipping", 'backup-backup'); ?></div> |
| 80 | <div class="f20"><?php _e("Please select the compression method of your backup files:", 'backup-backup'); ?></div> |
| 81 | </div> |
| 82 | |
| 83 | <div class="mm mm-border"> |
| 84 | <table class="f20"> |
| 85 | <tbody> |
| 86 | <tr> |
| 87 | |
| 88 | <td> |
| 89 | <?php if (has_action('bmip_zipping_methods')) { ?> |
| 90 | <?php do_action('bmip_zipping_methods'); ?> |
| 91 | <?php } else { ?> |
| 92 | <div class="lh30"> |
| 93 | |
| 94 | <div class="mbll"> |
| 95 | <label class="container-radio"> |
| 96 | Zip |
| 97 | <input type="radio" name="free_version_backup_type" value=".zip" checked> |
| 98 | <span class="checkmark-radio"></span> |
| 99 | </label> |
| 100 | </div> |
| 101 | |
| 102 | <div class="mbll"> |
| 103 | <span class="cf premium-wrapper" tooltip="<?php echo esc_attr($backupType); ?>"> |
| 104 | <label class="left container-radio ml25 not-allowed"> |
| 105 | Tar |
| 106 | <input type="radio" disabled name="free_version_backup_type" value=".tar"> |
| 107 | <span class="checkmark-radio"></span> |
| 108 | </label> |
| 109 | <span class="left premium premium-img premium-nt5"></span> |
| 110 | </span> |
| 111 | </div> |
| 112 | |
| 113 | <div class="" style="width: 185px;"> |
| 114 | <span class="cf premium-wrapper" tooltip="<?php echo esc_attr($backupType); ?>"> |
| 115 | <label class="left container-radio ml25 not-allowed"> |
| 116 | Tar GZip |
| 117 | <input type="radio" disabled name="free_version_backup_type" value=".tar.gz"> |
| 118 | <span class="checkmark-radio"></span> |
| 119 | </label> |
| 120 | <span class="left premium premium-img premium-nt5"></span> |
| 121 | </span> |
| 122 | </div> |
| 123 | |
| 124 | </div> |
| 125 | <?php } ?> |
| 126 | </td> |
| 127 | |
| 128 | <td> |
| 129 | <div class="f16 mw850 bol lh30"> |
| 130 | <i><?php _e('"ZIP" is the standard choice (compression level 1). Use "Tar" (compression level 2) or "Tar.gz" (compression level 5) if you want greater compression (i.e., smaller file sizes). However, this will also put more load on the backup process.', 'backup-backup'); ?> <?php _e('It will have no effect if the server does not support particular extensions.', 'backup-backup'); ?></i> |
| 131 | </div> |
| 132 | </td> |
| 133 | |
| 134 | </tr> |
| 135 | </tbody> |
| 136 | </table> |
| 137 | </div> |
| 138 | </div> |
| 139 | |
| 140 | <hr> |
| 141 | |
| 142 | <div class="mm mtl mbl overlayed"> |
| 143 | |
| 144 | <?php include BMI_INCLUDES . '/dashboard/templates/premium-overlay.php'; ?> |
| 145 | |
| 146 | <div class=""> |
| 147 | <div class="lh30 mbll"> |
| 148 | <div class="fo-title semibold"> |
| 149 | <span class="cf premium-wrapper"> |
| 150 | <div class="left"><?php _e("Encryption", 'backup-backup'); ?></div> |
| 151 | <span class="left premium premium-img"></span> |
| 152 | </span> |
| 153 | </div> |
| 154 | <div class="f20"><?php _e("Do you want to encrypt and password protect your files?", 'backup-backup'); ?></div> |
| 155 | </div> |
| 156 | |
| 157 | <div class="mm mm-border"> |
| 158 | <div class="d-flex mr60 ia-center"> |
| 159 | <label class="container-radio"> |
| 160 | <?php _e("No", 'backup-backup'); ?> |
| 161 | <input type="radio" name="" value="false" checked> |
| 162 | <span class="checkmark-radio"></span> |
| 163 | </label> |
| 164 | <label class="container-radio ml25 not-allowed"> |
| 165 | <?php _e("Yes", 'backup-backup'); ?> |
| 166 | <input type="radio" disabled name="" value="true"> |
| 167 | <span class="checkmark-radio"></span> |
| 168 | </label> |
| 169 | </div> |
| 170 | </div> |
| 171 | </div> |
| 172 | |
| 173 | </div> |
| 174 | |
| 175 | <hr> |
| 176 | |
| 177 | <div class="mm f16 mtl mbl"> |
| 178 | <i><?php _e("For other security settings, e.g. who can access your backup directories, please go to the", 'backup-backup'); ?> <a href="#" class="hoverable secondary nodec collapser-openner" data-el="#other-options"><?php _e("Other options", 'backup-backup'); ?></a> <?php _e("chapter.", 'backup-backup'); ?></i> |
| 179 | </div> |
| 180 | |
| 181 | <?php include BMI_INCLUDES . '/dashboard/chapter/save-button.php'; ?> |
| 182 |