PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/views/addons/settings.php +9 -1 6.29 → trunk View file →
@@ -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>