PluginProbe
WPVR – 360 Panorama viewer and Virtual Tour Builder for WordPress / 8.5.78
WPVR – 360 Panorama viewer and Virtual Tour Builder for WordPress v8.5.78
9.1.2 9.1.1 9.1.0 9.0.3 9.0.2 9.0.1 9.0.0 8.5.79 8.5.78 8.5.77 8.5.76 8.5.75 8.5.74 8.5.73 8.5.72 8.5.71 8.5.70 8.5.69 8.5.68 8.5.35 8.5.36 8.5.37 8.5.38 8.5.39 8.5.4 All 221 releases
wpvr / admin / partials / wpvr_license.php

wpvr_license.php in WPVR – 360 Panorama viewer and Virtual Tour Builder for WordPress 8.5.78, at admin/partials/wpvr_license.php

50 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
4 $license = get_option( 'wpvr_edd_license_key' );
5 $status = get_option( 'wpvr_edd_license_status' );
6 ?>
7 <!-- This file should display the admin pages -->
8 <div class="row">
9 <div class="rex-onboarding" style="min-height: 250px !important;">
10 <form method="post" action="options.php" style="width: 100%;">
11
12 <?php settings_fields('wpvr_edd_license'); ?>
13
14 <table class="form-table">
15 <tbody>
16 <tr valign="top">
17 <th scope="row" valign="top">
18 <?php esc_html_e('License Key','wpvr'); ?>
19 </th>
20 <td>
21 <input id="wpvr_edd_license_key" name="wpvr_edd_license_key" type="text" class="regular-text" value="<?php echo esc_attr( $license ); ?>" />
22 <label class="description" for="wpvr_edd_license_key"><?php esc_html_e('Enter your license key, save changes and activate.','wpvr'); ?></label>
23 </td>
24 </tr>
25 <?php if( false !== $license ) { ?>
26 <tr valign="top">
27 <th scope="row" valign="top">
28 <?php esc_html_e('Activate License','wpvr'); ?>
29 </th>
30 <td>
31 <?php if( $status !== false && $status == 'valid' ) { ?>
32 <span style="color:green;"><?php esc_html_e('Active', 'wpvr'); ?></span>
33 <?php wp_nonce_field( 'wpvr_edd_nonce', 'wpvr_edd_nonce' ); ?>
34 <input type="submit" class="button-secondary" name="wpvr_edd_license_deactivate" value="<?php esc_attr_e('Deactivate License','wpvr'); ?>"/>
35 <?php } else {?>
36
37 <?php wp_nonce_field( 'wpvr_edd_nonce', 'wpvr_edd_nonce' ); ?>
38 <input type="submit" class="button-secondary" name="wpvr_edd_license_activate" value="<?php esc_attr_e('Activate License','wpvr'); ?>"/>
39 <?php } ?>
40 </td>
41 </tr>
42 <?php } ?>
43 </tbody>
44 </table>
45 <?php submit_button(); ?>
46 </form>
47 </div>
48 </div>
49
50