| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) |
| 3 |
exit; |
| 4 |
?> |
| 5 |
<div id="activate-license" style="display:none"> |
| 6 |
<h2 class="berq-tab-title"><?php esc_html_e('BerqWP License', 'searchpro'); ?></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 if (!$this->is_key_verified) { ?> |
| 28 |
|
| 29 |
<input type="password" placeholder="<?php esc_html_e('Enter your license key', 'searchpro'); ?>" name="berqwp_license_key"> |
| 30 |
<input type="submit" value="<?php esc_html_e('Activate', 'searchpro'); ?>"> |
| 31 |
|
| 32 |
<?php } else { ?> |
| 33 |
<input type="submit" name="berq_deactivate_key" value="<?php esc_html_e('Deactivate license key', 'searchpro'); ?>" style="background-color:red;"> |
| 34 |
<!-- <a href="" style="color:red;font-size:16px">Deactivate license key</a> --> |
| 35 |
<?php } ?> |
| 36 |
</div> |
| 37 |
</div> |
| 38 |
|
| 39 |
<?php if ($this->is_key_verified) { ?> |
| 40 |
<div class="berq-info-box"> |
| 41 |
<h3 class="berq-box-title"><?php esc_html_e('My Account', 'searchpro'); ?></h3> |
| 42 |
<div class="berq-box-content"> |
| 43 |
<?php if ($this->key_response->product_ref !== 'AppSumo Deal') { ?> |
| 44 |
<p> |
| 45 |
<?php esc_html_e('License:', 'searchpro'); ?> |
| 46 |
<?php echo esc_html( $this->key_response->product_ref ); ?> |
| 47 |
</p> |
| 48 |
<?php } ?> |
| 49 |
<p><?php esc_html_e('License status:', 'searchpro'); ?> |
| 50 |
<?php echo esc_html( $this->key_response->status ); ?> |
| 51 |
</p> |
| 52 |
<p><?php esc_html_e('Expiration date:', 'searchpro'); ?> |
| 53 |
<?php echo esc_html( $this->key_response->date_expiry ); ?> |
| 54 |
</p> |
| 55 |
</div> |
| 56 |
</div> |
| 57 |
<?php } ?> |
| 58 |
|
| 59 |
</div> |
| 60 |
</div> |