PluginProbe ʕ •ᴥ•ʔ
Backup Migration / 2.1.2
Backup Migration v2.1.2
2.1.6 2.1.5.2 trunk 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.6.1 1.4.7 1.4.8 1.4.9 1.4.9.1 2.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.5.1
backup-backup / includes / bodies / storage / backupbliss.php
backup-backup / includes / bodies / storage Last commit date
aws.php 4 months ago backupbliss.php 4 months ago dropbox.php 4 months ago ftp.php 4 months ago gdrive.php 4 months ago wasabi.php 4 months ago
backupbliss.php
151 lines
1 <?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
2 <!-- BackupBliss Storage -->
3 <div class="tab2-item d-flex jst-sb ia-center backupbliss-storage">
4 <div class="d-flex ia-center">
5 <img src="<?php echo esc_url( $this->get_asset('images', 'logo-white.svg') ); ?>" alt="logo" class="tab2-img">
6 <span class="ml25">
7 <span class="title_whereStored"><?php esc_html_e("BackupBliss", 'backup-backup'); ?></span>
8 </span>
9 </div>
10 <div class="ia-center">
11 </div>
12 </div>
13
14 <div class="bg_grey" id="storage-backupbliss-row">
15 <div class="container-40 lh30 pt30 pb30">
16 <p class="f18 bb-storage-info">
17 <?php echo wp_kses_post( __( "Keep a copy of your backups in an external storage facility so that <b>you're safe no matter what happens to your site or domain.</b>", 'backup-backup' ) ); ?>
18 </p>
19 <!-- How it work section -->
20 <!-- When connected add style="display: none;" -->
21 <div class="how-it-works" <?php echo(get_option("bmi_pro_backupbliss_key", false) !== false ? "style='display: none'" : "") ?>>
22 <span class="bold f22"><?php esc_html_e("How it works (it's easy!):", 'backup-backup'); ?></span>
23 <ol class="setup-steps">
24 <li class="step sign-up">
25 <div class="counter">
26 <img src="<?php echo esc_url( $this->get_asset('images', 'right-bolt.svg') ); ?>" class="counter-arrow">
27 </div>
28 <div class="step-content space-between flexcenter title">
29 <span
30 class="f20 medium block"><?php echo wp_kses_post( __( "Sign Up on BackupBliss to <b>claim your 1 GB of free storage</b>", 'backup-backup' ) ); ?></span>
31 <a href="<?php echo esc_url( BMI_BB_STORAGE_URI ); ?>" target="_blank" class="btn bold"><?php esc_html_e("Sign up now", 'backup-backup'); ?></a>
32 </div>
33 </li>
34 <hr class="step-divider">
35 <li class="step get-more-space">
36
37 <div class="step-content">
38 <div class="counter">
39 <img src="<?php echo esc_url( $this->get_asset('images', 'right-bolt.svg') ); ?>" class="counter-arrow">
40 </div>
41 <div class="title">
42 <span class="f20 medium block"><?php esc_html_e("Get More Space", 'backup-backup'); ?></span>
43 </div>
44 <div class="description">
45 <span class="f18 mbll">
46 <?php
47 echo wp_kses_post( sprintf(
48 __("If the free 1 GB aren’t enough, you can get more space. It’s very affordable (see %spricing%s).<br>You can buy space directly in your %sBackupBliss account%s.", 'backup-backup'),
49 '<a href="' . esc_url( BMI_AUTHOR_URI ) . 'pricing' . '" target="_blank" class="secondary hoverable nodec">',
50 '</a>',
51 '<a href="' . esc_url( BMI_BB_STORAGE_URI ) . '" target="_blank" class="secondary hoverable nodec">',
52 '</a>'
53 ) );
54 ?>
55 </span>
56 <span class="f15 block tml"><?php
57 echo wp_kses_post( sprintf(
58 __("<b>Note:</b> The %sBackupBliss premium plugin%s gives you <b>5 GB of free storage!</b>", 'backup-backup'),
59 '<a href="' . esc_url( BMI_AUTHOR_URI ) . '" target="_blank" class="secondary hoverable nodec">',
60 '</a>'
61 ) );
62 ?>
63 </span>
64 </div>
65 </div>
66 </li>
67 <hr class="step-divider">
68 <li class="step connect">
69
70 <div class="step-content">
71 <div class="counter">
72 <img src="<?php echo esc_url( $this->get_asset('images', 'right-bolt.svg') ); ?>" class="counter-arrow">
73 </div>
74 <div class="title">
75 <span class="f20 medium block"><?php esc_html_e("Connect this site to your account", 'backup-backup'); ?></span>
76 </div>
77 <div class="description space-between flexcenter" style="gap: 12px;">
78 <div class="f18" style="margin-right: 30px;">
79 <span class="f18"><?php echo wp_kses_post( __( "Enter the API key you<br>generated on", 'backup-backup' ) ); ?>
80 <a href="<?php echo esc_url( BMI_BB_STORAGE_URI ); ?>" target="_blank" class="secondary hoverable nodec"><?php esc_html_e("BackupBliss:", 'backup-backup'); ?></a>
81 </span>
82 </div>
83 <input type="text" placeholder="<?php esc_attr_e("E.g. 2122bf590c5c9f5778bae6ac38b1d121455fa57e5f9b2ef7c37b7bdd334fa925", 'backup-backup'); ?>"
84 class="api-key-input" style="flex: 1;" autocomplete="off">
85 <a class="btn bold bb-connect"><?php esc_html_e("Connect now", 'backup-backup'); ?></a>
86 </div>
87 </div>
88 </li>
89 </ol>
90 <div class="f15">
91 <?php echo wp_kses_post( sprintf(
92 __("Have questions? %sCheck out the FAQ%s", 'backup-backup'),
93 '<a href="' . esc_url( BMI_BB_STORAGE_URI ) . 'faq' . '" target="_blank" class="secondary hoverable nodec">',
94 '</a>'
95 ) ); ?>
96 </div>
97 </div>
98 <!-- You're connected section -->
99 <!-- When connected remove style="display: none;" -->
100 <div class="youre-connected" <?php echo(get_option("bmi_pro_backupbliss_key", false) === false ? "style='display: none'" : "") ?>>
101 <div class="connected-banner space-between flexcenter">
102 <div class="connected-banner-inner space-between flexcenter">
103 <img src="<?php echo esc_url( $this->get_asset('images', 'checkmark.svg') ); ?>" alt="checkmark" class="checkmark">
104 <span class="f30 bold mms"><?php esc_html_e("You're connected!", 'backup-backup'); ?></span>
105 </div>
106 <a href="#" class="bb-disconnect f15 nodec"><?php esc_html_e("Disconnect", 'backup-backup'); ?></a>
107 </div>
108
109 <div class="connected-info space-between flexcenter">
110 <div class="connected-info-inner">
111 <span class="f18"><?php esc_html_e("You are currently entitled to", 'backup-backup'); ?></span>
112 <!-- Placeholder -->
113 <span class="f30 bold bb-storage-amount"><?php esc_html_e("0.0 GB", 'backup-backup'); ?></span>
114 <span class="f18"><?php esc_html_e("of space of which you are using", 'backup-backup'); ?></span>
115 <!-- Placeholder -->
116 <span class="f30 bold bb-storage-used"><?php esc_html_e("0.0 GB", 'backup-backup'); ?></span>
117 <!-- Placeholder -->
118 <span class="f30 bb-storage-used-percent">(0%)</span>
119 </div>
120 <div class="refresh-bb-storage pointer">
121 <img src="<?php echo esc_url( $this->get_asset('images', 'refresh.svg') ); ?>" alt="refresh" class="refresh-img">
122 <a class="secondary hoverable nodec"><?php esc_html_e("Refresh", 'backup-backup'); ?></a>
123 </div>
124 </div>
125 <?php
126 use BMI\Plugin\External\BMI_External_BackupBliss as BackupBliss;
127 if (file_exists(BMI_INCLUDES . '/external/backupbliss.php')) {
128 require_once BMI_INCLUDES . '/external/backupbliss.php';
129 $backupbliss = new BackupBliss();
130 $upload_issue_notice = $backupbliss->getNotice("upload_issue_space");
131 if ($upload_issue_notice) {
132 $error_message = $upload_issue_notice;
133 if (!$backupbliss->hasRequiredSpaceBeenFreed()) {
134 include BMI_INCLUDES . '/dashboard/modals/bb-warning-notice.php';
135 }
136 }
137 }
138 ?>
139 <div>
140 <span class="f15">
141 <?php echo wp_kses_post( sprintf(
142 __("Storage space is %svery affordable%s. <b>Note:</b> %sThe BackupBliss premium plugin%s already gives you 5 GB of free space!", 'backup-backup'),
143 '<a href="' . esc_url( BMI_AUTHOR_URI ) . 'pricing' . '" target="_blank" class="secondary hoverable nodec">',
144 '</a>',
145 '<a href="' . esc_url( BMI_AUTHOR_URI ) . '" target="_blank" class="secondary hoverable nodec">',
146 '</a>'
147 ) ); ?>
148 </div>
149 </div>
150 </div>
151 </div>