| @@ -1,5 +1,13 @@ | ||
| 1 | 1 | <?php |
| 2 | +/** | |
| 3 | + * Add-Ons license settings. | |
| 4 | + * | |
| 5 | + * @package Formidable | |
| 6 | + * | |
| 7 | + * @var array<string, object> $plugins Installed add-on plugin objects keyed by slug. Each has: is_parent_licence, needs_license, license, option_name, plugin_name. | |
| 8 | + */ | |
| 9 | + | |
| 2 | 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | 11 | die( 'You are not allowed to call this page directly.' ); |
| 4 | 12 | } |
| 5 | 13 | ?> |
| @@ -13,9 +21,9 @@ | ||
| 13 | 21 | |
| 14 | 22 | $license = $plugin->license; |
| 15 | 23 | $status = get_option( $plugin->option_name . 'active' ); |
| 16 | 24 | $activate = false !== $license && $status === 'valid' ? 'deactivate' : 'activate'; |
| 17 | - $icon_class = ! empty( $license ) ? '' : 'frm_hidden'; | |
| 25 | + $icon_class = $license ? '' : 'frm_hidden'; | |
| 18 | 26 | ?> |
| 19 | 27 | |
| 20 | 28 | <div class="edd_frm_license_row frm-inline-select frm_grid_container"> |
| 21 | 29 | <label class="frm4 frm_form_field" for="edd_<?php echo esc_attr( $slug ); ?>_license_key"><?php echo esc_html( $plugin->plugin_name ); ?></label> |