PluginProbe
BerqWP – All-In-One Optimization for Core Web Vitals, Cache, CDN, Images, CSS & JavaScript / trunk
BerqWP – All-In-One Optimization for Core Web Vitals, Cache, CDN, Images, CSS & JavaScript vtrunk
4.1.16 4.1.15 4.1.14 4.1.13 4.1.12 4.1.11 4.1.10 4.0.30 4.0.29 4.0.28 4.0.27 4.0.26 4.0.24 4.0.25 4.0.23 4.0.22 4.0.21 4.0.19 4.0.18 4.0.17 4.0.16 1.9.3 1.9.4 1.9.5 1.9.6 All 170 releases
← All changes | admin/tabs/activate-license.php +13 -5 1.9.7trunk View file →
@@ -1,10 +1,10 @@
1 1 <?php
2 2 if (!defined('ABSPATH'))
3 3 exit;
4 4 ?>
5 -<div id="activate-license" style="display:none">
6 - <h2 class="berq-tab-title"><?php esc_html_e('BerqWP License', 'searchpro'); ?></h2>
5 +<div id="activate-license" <?php bwp_is_tab('activate-license'); ?>>
6 + <h2 class="berq-tab-title"><?php printf( /* translators: %s: Plugin name */ esc_html__('%s License', 'searchpro'), esc_html($plugin_name) ); ?></h2>
7 7 <style>
8 8
9 9 div#berqwp-license-activation input[type="password"] {
10 10 border-radius: 0;
@@ -23,10 +23,13 @@
23 23 <div id="berqwp-license-activation">
24 24 <div class="berq-info-box">
25 25 <!-- <h3 class="berq-box-title"><?php esc_html_e('BerqWP License Activation', 'searchpro'); ?></h3> -->
26 26 <div class="berq-box-content">
27 - <?php if (!$this->is_key_verified) { ?>
27 + <?php
28 + if (!$this->is_key_verified) {
29 + ?>
28 30
31 + <input type="hidden" name="berqwp_optimization_method" value="cloud">
29 32 <input type="password" placeholder="<?php esc_html_e('Enter your license key', 'searchpro'); ?>" name="berqwp_license_key">
30 33 <input type="submit" value="<?php esc_html_e('Activate', 'searchpro'); ?>">
31 34
32 35 <?php } else { ?>
@@ -35,10 +38,13 @@
35 38 <?php } ?>
36 39 </div>
37 40 </div>
38 41
39 - <?php if ($this->is_key_verified) { ?>
40 - <div class="berq-info-box">
42 + <?php if (bwp_show_account() && $this->is_key_verified) { ?>
43 + <div class="berq-info-box" style="position:relative;">
44 + <a title="Refresh license key" href="<?php echo esc_attr(wp_nonce_url(admin_url('admin-post.php?action=bwp_refresh_license'), 'bwp_refresh_license_action')); ?>" class="berqwp-refresh-license-btn">
45 + <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="#29ac20"><path d="M229.08-205.08v-52H310l-13.08-13.84q-42.3-39.62-68.61-92.62-26.31-53-26.31-115.69 0-93.69 55.23-165.96 55.23-72.27 140.77-98.96v54.23q-63.39 25.3-103.69 81.73Q254-551.77 254-479.23q0 49.92 20.27 92.65 20.27 42.73 54.81 73.27l15.38 15.39v-74.54h52v167.38H229.08ZM562-215.85v-54.23q63.39-25.3 103.69-81.73Q706-408.23 706-480.77q0-49.92-20.27-92.65-20.27-42.73-54.81-73.27l-15.38-15.39v74.54h-52v-167.38h167.38v52H650l13.08 13.84q43.46 38.47 69.19 92.04Q758-543.46 758-480.77q0 93.69-55.23 165.96-55.23 72.27-140.77 98.96Z"/></svg>
46 + </a>
41 47 <h3 class="berq-box-title"><?php esc_html_e('My Account', 'searchpro'); ?></h3>
42 48 <div class="berq-box-content">
43 49 <?php if ($this->key_response->product_ref !== 'AppSumo Deal') { ?>
44 50 <p>
@@ -48,11 +54,13 @@
48 54 <?php } ?>
49 55 <p><?php esc_html_e('License status:', 'searchpro'); ?>
50 56 <?php echo esc_html( $this->key_response->status ); ?>
51 57 </p>
58 + <?php if ($this->key_response->product_ref !== 'AppSumo Deal' && $this->key_response->product_ref !== 'Free Account') { ?>
52 59 <p><?php esc_html_e('Expiration date:', 'searchpro'); ?>
53 60 <?php echo esc_html( $this->key_response->date_expiry ); ?>
54 61 </p>
62 + <?php } ?>
55 63 </div>
56 64 </div>
57 65 <?php } ?>
58 66