AA-Modal-Template.php
2 years ago
after-logs-sent.php
2 years ago
backup-error-modal.php
2 years ago
backup-progress-modal.php
2 years ago
backup-success-modal.php
2 years ago
bfs-modal.php
2 years ago
delete-confirm-modal.php
2 years ago
freeze-loading.php
2 years ago
logs-sharing-ask.php
2 years ago
pre-restore-modal.php
2 years ago
prenotice-modal.php
2 years ago
reset-confirm-modal.php
2 years ago
restore-error-modal.php
2 years ago
restore-progress-modal.php
2 years ago
restore-success-modal.php
2 years ago
staging-delete-confirm-modal.php
2 years ago
staging-error-modal.php
2 years ago
staging-prenotice-modal.php
2 years ago
staging-progress-modal.php
2 years ago
staging-rename-modal.php
2 years ago
staging-success-modal.php
2 years ago
upload-exist-file-modal.php
2 years ago
upload-invalid-manifest-modal.php
2 years ago
upload-success-modal.php
2 years ago
upload-wrong-file-modal.php
2 years ago
after-logs-sent.php
81 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 | $bmiSupportForumUrl = "https://wordpress.org/support/plugin/backup-backup/"; |
| 12 | $bmiSupportEmail = "support" . "@" . "backupbliss" . "." . "com"; |
| 13 | $bmiSupportMessage = __('Now open a new thread in the %s1support forum%s2, and share there your debug code.', 'backup-backup'); |
| 14 | $bmiSupportMessage = str_replace('%s1', '<a href="' . $bmiSupportForumUrl . '" class="secondary hoverable" target="_blank">', $bmiSupportMessage); |
| 15 | $bmiSupportMessage = str_replace('%s2', '</a>', $bmiSupportMessage); |
| 16 | |
| 17 | $bmiSupportMessage2 = __('Please email us the code to %s1, so that we can start investigating. Thank you!', 'backup-backup'); |
| 18 | $bmiSupportMessage2 = str_replace('%s1', '<a href="mailto:' . $bmiSupportEmail . '" class="secondary hoverable" target="_blank">' . $bmiSupportEmail . '</a>', $bmiSupportMessage2); |
| 19 | |
| 20 | $bmiSupportMessage3 = __('Please also provide some details like, my migration/backup failed at x%.', 'backup-backup'); |
| 21 | $bmiSupportMessage4 = __('Otherwise forum moderators may remove the topic.', 'backup-backup'); |
| 22 | ?> |
| 23 | |
| 24 | <div class="bmi-modal bmi-modal-no-close" id="after-logs-sent-modal" data-error-source="manual"> |
| 25 | |
| 26 | <div class="bmi-modal-wrapper no-hpad no-vpad" style="max-width: 900px; max-width: min(900px, 80vw)"> |
| 27 | <a href="#" class="bmi-modal-close">×</a> |
| 28 | <div class="bmi-modal-content"> |
| 29 | |
| 30 | <div class="mm60 f26 bold black center mbl mt lh28"> |
| 31 | <?php _e('We received the debug infos!'); ?><br> |
| 32 | </div> |
| 33 | |
| 34 | <div class="mm60 mbll f18 medium"> |
| 35 | <?php _e('Your debug code:'); ?> |
| 36 | </div> |
| 37 | |
| 38 | <div class="mm60 mbl"> |
| 39 | <div class="bmi-support-code-section relative"> |
| 40 | <span id="bmi-support-code-generated">BMI_PLACEHOLDER</span> |
| 41 | <div class="mm60 right-align" style="position: absolute; top: 5px; right: -50px;"> |
| 42 | <a href="#" class="btn inline btn-with-img btn-img-low-pad btn-pad bmi-copper" data-copy="bmi-support-code-generated"> |
| 43 | <div class="text"> |
| 44 | <img src="<?php echo $this->get_asset('images', 'copy-icon.png'); ?>" alt="copy-img"> |
| 45 | <div class="f18 semibold"><?php _e('Copy', 'backup-backup') ?></div> |
| 46 | </div> |
| 47 | </a> |
| 48 | </div> |
| 49 | </div> |
| 50 | </div> |
| 51 | |
| 52 | <?php if (!defined('BMI_BACKUP_PRO')): ?> |
| 53 | <div class="mm60 f18 mbl"> |
| 54 | <?php echo $bmiSupportMessage; ?><br /><br /> |
| 55 | <?php echo $bmiSupportMessage3; ?><br /> |
| 56 | <?php echo $bmiSupportMessage4; ?> |
| 57 | |
| 58 | <div class="center mbll mtl"> |
| 59 | <a class="btn inline semibold mm60 f16" href="https://wordpress.org/support/plugin/backup-backup/" target="_blank"> |
| 60 | <?php _e('Go to Support Forum', 'backup-backup') ?> |
| 61 | </a> |
| 62 | </div> |
| 63 | <div class="center f16 tooltip-html info-cursor" tooltip="<?php _e("Your account on Wordpress.org (where you open a new support thread) is different to the one you login to your WordPress dashboard (where you are now). If you don't have a WordPress.org account yet, please sign up at the top right on here. It only takes a minute :) Thank you!", 'backup-backup') ?>"> |
| 64 | <?php _e('Trouble logging in there?', 'backup-backup') ?> |
| 65 | </div> |
| 66 | </div> |
| 67 | <?php else: ?> |
| 68 | <div class="mm60 mb f18 lh28"> |
| 69 | <?php echo $bmiSupportMessage2; ?> |
| 70 | </div> |
| 71 | <?php endif; ?> |
| 72 | |
| 73 | <div class="mm60 f18 center mb"> |
| 74 | <a href="#" class="bmi-modal-closer text-muted" data-close="after-logs-sent-modal"><?php _e('Close window', 'backup-backup') ?></a> |
| 75 | </div> |
| 76 | |
| 77 | </div> |
| 78 | </div> |
| 79 | |
| 80 | </div> |
| 81 |