# formidable/trunk/classes/views/addons/settings.php

Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes &amp; More, version trunk. 50 lines.

- Page: https://pluginprobe.com/plugins/formidable/trunk/code/classes/views/addons/settings.php
- Raw: https://pluginprobe.com/plugins/formidable/trunk/raw/classes/views/addons/settings.php
- Modified: 2026-05-27T15:12:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/formidable/trunk/code/classes/views/addons/settings.php#L10-L20`.

```php
<?php
/**
 * Add-Ons license settings.
 *
 * @package Formidable
 *
 * @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.
 */

if ( ! defined( 'ABSPATH' ) ) {
	die( 'You are not allowed to call this page directly.' );
}
?>
<div class="wrap">
	<?php

	foreach ( $plugins as $slug => $plugin ) {
		if ( $slug === 'formidable_pro' || $plugin->is_parent_licence || ! $plugin->needs_license ) {
			continue;
		}

		$license    = $plugin->license;
		$status     = get_option( $plugin->option_name . 'active' );
		$activate   = false !== $license && $status === 'valid' ? 'deactivate' : 'activate';
		$icon_class = $license ? '' : 'frm_hidden';
		?>

		<div class="edd_frm_license_row frm-inline-select frm_grid_container">
			<label class="frm4 frm_form_field" for="edd_<?php echo esc_attr( $slug ); ?>_license_key"><?php echo esc_html( $plugin->plugin_name ); ?></label>
			<div class="edd_frm_authorized frm8 frm_form_field <?php echo esc_attr( $activate === 'activate' ) ? 'frm_hidden' : ''; ?>">
				<span class="edd_frm_license"><?php esc_html_e( 'Good to go!', 'formidable' ); ?></span>
				<span class="frm_icon_font frm_action_success"><?php FrmAppHelper::icon_by_class( 'frmfont frm_check1_icon frm_action_icon edd_frm_status_icon frm_inactive_icon' ); ?></span>
				<span class="frm_icon_font frm_action_error frm_hidden"><?php FrmAppHelper::icon_by_class( 'frmfont frm_cancel1_icon edd_frm_status_icon' ); ?></span>
				<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' ); ?>"/>
				<p class="frm_license_msg"></p>
			</div>
			<div class="edd_frm_unauthorized frm8 frm_form_field <?php echo esc_attr( $activate === 'deactivate' ) ? 'frm_hidden' : ''; ?>">
				<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="" />
				<span class="frm_icon_font frm_action_success <?php echo esc_attr( $icon_class ); ?>"><?php FrmAppHelper::icon_by_class( 'frmfont frm_check1_icon edd_frm_status_icon' ); ?></span>
				<span class="frm_icon_font frm_action_error frm_hidden"><?php FrmAppHelper::icon_by_class( 'frmfont frm_cancel1_icon edd_frm_status_icon' ); ?></span>
				<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' ); ?>"/>
				<p class="frm_license_msg"></p>
			</div>

		</div>
		<?php
	}//end foreach
	?>
</div>

```
