activation.php (2879B)
1 <?php 2 $license = get_option('envato_theme_license_key'); 3 $status = get_option('envato_theme_license_key_status'); 4 ?> 5 <div id="activetion" class="gt-tab-pane gt-is-active"> 6 <div class="feature-section two-col"> 7 <h2><?php esc_attr_e('Theme License Options', 'welbim'); ?></h2> 8 <div class="activation_massage"> 9 <p><?php echo esc_html__('First enter your license key in the below field and click the button "Save Changes". After saving "Activate License" Button will be visible.', 'welbim'); ?></p> 10 <p><?php echo esc_html__('Then click "Activate License" button for active theme.', 'welbim'); ?> 11 </div> 12 <form method="post" action="options.php"> 13 <?php settings_fields('envato_theme_license'); ?> 14 <table class="form-table"> 15 <tbody> 16 <tr valign="top"> 17 <th scope="row" valign="top"> 18 <?php esc_attr_e('License Key', 'welbim'); ?> 19 </th> 20 <td> 21 <input id="envato_theme_license_key" name="envato_theme_license_key" type="text" class="regular-text" value="<?php echo esc_attr($license); ?>" required /> 22 </td> 23 </tr> 24 <?php 25 if ($license != '') { 26 $checkboxaction = ''; 27 $acbuttonstyle = 'style="display:none"'; 28 if (get_option('envato_theme_license_checkbox')) { 29 $checkboxaction = 'checked="checked"'; 30 $acbuttonstyle = ''; 31 } 32 ?> 33 <tr valign="top"> 34 <th scope="row" valign="top"> 35 </th> 36 <td> 37 <input type="checkbox" id="envato_activate_checkbox" name="envato_theme_theme_license_activate_checkbox" value="1" <?php echo esc_attr($checkboxaction); ?> /> 38 <label for="envato_activate_checkbox"> 39 <?php echo esc_attr__('I give consent to record my site address .a purchase code <br>in order to ensure License and copyright compliance. <br>I understand,<br> that this information will be stored as long as the purchase code remains valid. ', 'welbim'); ?> 40 </label> 41 </td> 42 </tr> 43 <tr valign="top" class="envato-liccence-button-tr" <?php echo esc_attr($acbuttonstyle); ?>> 44 <th scope="row" valign="top"> 45 <?php esc_attr_e('Activate License', 'welbim'); ?> 46 </th> 47 <td> 48 <?php if ($status !== false && $status == 'valid') { ?> 49 <?php wp_nonce_field('envato_theme_nonce', 'envato_theme_nonce'); ?> 50 <input type="submit" class="button-secondary" name="envato_theme_theme_license_deactivate" value="<?php esc_attr_e('Deactivate License', 'welbim'); ?>" /> 51 <?php 52 } else { 53 wp_nonce_field('envato_theme_nonce', 'envato_theme_nonce'); 54 ?> 55 <input type="submit" class="button-secondary" name="envato_theme_theme_license_activate" value="<?php esc_attr_e('Activate License', 'welbim'); ?>" /> 56 <?php } ?> 57 </td> 58 </tr> 59 <?php } ?> 60 </tbody> 61 </table> 62 <?php submit_button(); ?> 63 </form> 64 </div> 65 </div>