| @@ -1,14 +1,11 @@ | ||
| 1 | -<?php | |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 3 | - die( 'You are not allowed to call this page directly.' ); | |
| 4 | -} | |
| 5 | -?> | |
| 6 | 1 | <div class="wrap"> |
| 2 | + <h4><?php esc_html_e( 'Plugin Licenses', 'formidable' ); ?></h4> | |
| 3 | + | |
| 7 | 4 | <?php |
| 8 | 5 | |
| 9 | 6 | foreach ( $plugins as $slug => $plugin ) { |
| 10 | - if ( $slug == 'formidable_pro' || $plugin->is_parent_licence || ! $plugin->needs_license ) { | |
| 7 | + if ( $slug == 'formidable_pro' || $plugin->is_parent_licence ) { | |
| 11 | 8 | continue; |
| 12 | 9 | } |
| 13 | 10 | |
| 14 | 11 | $license = $plugin->license; |
| @@ -16,20 +13,20 @@ | ||
| 16 | 13 | $activate = ( false !== $license && $status == 'valid' ) ? 'deactivate' : 'activate'; |
| 17 | 14 | $icon_class = ( empty( $license ) ) ? 'frm_hidden' : ''; |
| 18 | 15 | ?> |
| 19 | 16 | |
| 20 | - <div class="edd_frm_license_row frm-inline-select frm_grid_container"> | |
| 21 | - <label class="frm4 frm_form_field" for="edd_<?php echo esc_attr( $slug ); ?>_license_key"><?php echo esc_html( $plugin->plugin_name ); ?></label> | |
| 22 | - <div class="edd_frm_authorized frm8 frm_form_field <?php echo esc_attr( $activate == 'activate' ) ? 'frm_hidden' : ''; ?>"> | |
| 17 | + <div class="edd_frm_license_row"> | |
| 18 | + <label class="frm_left_label" for="edd_<?php echo esc_attr( $slug ) ?>_license_key"><?php echo esc_html( $plugin->plugin_name ); ?></label> | |
| 19 | + <div class="edd_frm_authorized alignleft <?php echo esc_attr( $activate == 'activate' ) ? 'frm_hidden' : '' ?>"> | |
| 23 | 20 | <span class="edd_frm_license"><?php esc_html_e( 'Good to go!', 'formidable' ); ?></span> |
| 24 | 21 | <span class="frm_icon_font frm_action_icon frm_error_icon edd_frm_status_icon frm_inactive_icon"></span> |
| 25 | - <input type="button" class="button-secondary frm-button-secondary edd_frm_save_license" data-plugin="<?php echo esc_attr( $slug ); ?>" name="edd_<?php echo esc_attr( $slug ); ?>_license_deactivate" value="<?php esc_attr_e( 'Deactivate', 'formidable' ); ?>"/> | |
| 22 | + <input type="button" class="button-secondary edd_frm_save_license" data-plugin="<?php echo esc_attr( $slug ) ?>" name="edd_<?php echo esc_attr( $slug ) ?>_license_deactivate" value="<?php esc_attr_e( 'Deactivate', 'formidable' ) ?>"/> | |
| 26 | 23 | <p class="frm_license_msg"></p> |
| 27 | 24 | </div> |
| 28 | - <div class="edd_frm_unauthorized frm8 frm_form_field <?php echo esc_attr( $activate == 'deactivate' ) ? 'frm_hidden' : ''; ?>"> | |
| 29 | - <input id="edd_<?php echo esc_attr( $slug ); ?>_license_key" name="edd_<?php echo esc_attr( $slug ); ?>_license_key" type="text" class="frm_addon_license_key auto_width" value="" /> | |
| 25 | + <div class="edd_frm_unauthorized alignleft <?php echo esc_attr( $activate == 'deactivate' ) ? 'frm_hidden' : '' ?>"> | |
| 26 | + <input id="edd_<?php echo esc_attr( $slug ) ?>_license_key" name="edd_<?php echo esc_attr( $slug ) ?>_license_key" type="text" class="regular-text frm_addon_license_key" value="" /> | |
| 30 | 27 | <span class="frm_icon_font frm_action_icon frm_error_icon edd_frm_status_icon <?php echo esc_attr( $icon_class ); ?>"></span> |
| 31 | - <input type="button" class="button-secondary frm-button-secondary edd_frm_save_license" data-plugin="<?php echo esc_attr( $slug ); ?>" name="edd_<?php echo esc_attr( $slug ); ?>_license_activate" value="<?php esc_attr_e( 'Activate', 'formidable' ); ?>"/> | |
| 28 | + <input type="button" class="button-secondary edd_frm_save_license" data-plugin="<?php echo esc_attr( $slug ) ?>" name="edd_<?php echo esc_attr( $slug ) ?>_license_activate" value="<?php esc_attr_e( 'Activate', 'formidable' ) ?>"/> | |
| 32 | 29 | <p class="frm_license_msg"></p> |
| 33 | 30 | </div> |
| 34 | 31 | |
| 35 | 32 | </div> |