| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) |
| 3 |
exit; |
| 4 |
?> |
| 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 |
<style> |
| 8 |
|
| 9 |
div#berqwp-license-activation input[type="password"] { |
| 10 |
border-radius: 0; |
| 11 |
padding: 5px 15px; |
| 12 |
width: 30%; |
| 13 |
} |
| 14 |
|
| 15 |
div#berqwp-license-activation input[type="submit"] { |
| 16 |
border: none; |
| 17 |
background: #1F71FF; |
| 18 |
padding: 11px 20px; |
| 19 |
color: #fff; |
| 20 |
cursor: pointer; |
| 21 |
} |
| 22 |
</style> |
| 23 |
<div id="berqwp-license-activation"> |
| 24 |
<div class="berq-info-box"> |
| 25 |
<!-- <h3 class="berq-box-title"><?php esc_html_e('BerqWP License Activation', 'searchpro'); ?></h3> --> |
| 26 |
<div class="berq-box-content"> |
| 27 |
<?php |
| 28 |
if (!$this->is_key_verified) { |
| 29 |
?> |
| 30 |
|
| 31 |
<input type="password" placeholder="<?php esc_html_e('Enter your license key', 'searchpro'); ?>" name="berqwp_license_key"> |
| 32 |
<input type="submit" value="<?php esc_html_e('Activate', 'searchpro'); ?>"> |
| 33 |
|
| 34 |
<?php } else { ?> |
| 35 |
<input type="submit" name="berq_deactivate_key" value="<?php esc_html_e('Deactivate license key', 'searchpro'); ?>" style="background-color:red;"> |
| 36 |
<!-- <a href="" style="color:red;font-size:16px">Deactivate license key</a> --> |
| 37 |
<?php } ?> |
| 38 |
</div> |
| 39 |
</div> |
| 40 |
|
| 41 |
<?php if (bwp_show_account() && $this->is_key_verified) { ?> |
| 42 |
<div class="berq-info-box" style="position:relative;"> |
| 43 |
<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"> |
| 44 |
<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> |
| 45 |
</a> |
| 46 |
<h3 class="berq-box-title"><?php esc_html_e('My Account', 'searchpro'); ?></h3> |
| 47 |
<div class="berq-box-content"> |
| 48 |
<?php if ($this->key_response->product_ref !== 'AppSumo Deal') { ?> |
| 49 |
<p> |
| 50 |
<?php esc_html_e('License:', 'searchpro'); ?> |
| 51 |
<?php echo esc_html( $this->key_response->product_ref ); ?> |
| 52 |
</p> |
| 53 |
<?php } ?> |
| 54 |
<p><?php esc_html_e('License status:', 'searchpro'); ?> |
| 55 |
<?php echo esc_html( $this->key_response->status ); ?> |
| 56 |
</p> |
| 57 |
<?php if ($this->key_response->product_ref !== 'AppSumo Deal' && $this->key_response->product_ref !== 'Free Account') { ?> |
| 58 |
<p><?php esc_html_e('Expiration date:', 'searchpro'); ?> |
| 59 |
<?php echo esc_html( $this->key_response->date_expiry ); ?> |
| 60 |
</p> |
| 61 |
<?php } ?> |
| 62 |
</div> |
| 63 |
</div> |
| 64 |
<?php } ?> |
| 65 |
|
| 66 |
</div> |
| 67 |
</div> |