PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 2.05.09
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v2.05.09
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
formidable / classes / views / addons / settings.php

settings.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 2.05.09, at classes/views/addons/settings.php

43 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <div class="wrap">
2 <h4><?php esc_html_e( 'Plugin Licenses', 'formidable' ); ?></h4>
3
4 <?php
5
6 $any_unauthorized = false;
7 foreach ( $plugins as $slug => $plugin ) {
8 if ( $slug == 'formidable_pro' ) {
9 continue;
10 }
11
12 $license = get_option( 'edd_' . $slug . '_license_key' );
13 $status = get_option( 'edd_' . $slug . '_license_active' );
14 $activate = ( false !== $license && $status == 'valid' ) ? 'deactivate' : 'activate';
15 if ( $activate == 'activate' ) {
16 $any_unauthorized = true;
17 }
18 $icon_class = ( empty( $license ) ) ? 'frm_hidden' : '';
19 ?>
20
21 <div class="edd_frm_license_row">
22 <label class="frm_left_label" for="edd_<?php echo esc_attr( $slug ) ?>_license_key"><?php echo esc_html( $plugin->plugin_name ); ?></label>
23 <div class="edd_frm_authorized alignleft <?php echo esc_attr( $activate == 'activate' ) ? 'frm_hidden' : '' ?>">
24 <span class="edd_frm_license"><?php esc_html_e( 'Good to go!', 'formidable' ); ?></span>
25 <span class="frm_icon_font frm_action_icon frm_error_icon edd_frm_status_icon frm_inactive_icon"></span>
26 <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' ) ?>"/>
27 <p class="frm_license_msg"></p>
28 </div>
29 <div class="edd_frm_unauthorized alignleft <?php echo esc_attr( $activate == 'deactivate' ) ? 'frm_hidden' : '' ?>">
30 <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="" />
31 <span class="frm_icon_font frm_action_icon frm_error_icon edd_frm_status_icon <?php echo esc_attr( $icon_class ); ?>"></span>
32 <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' ) ?>"/>
33 <p class="frm_license_msg"></p>
34 </div>
35
36 </div>
37 <?php } ?>
38 <?php if ( $any_unauthorized && $allow_autofill ) { ?>
39 <div class="clear"></div>
40 <p><a href="#" class="edd_frm_fill_license button-secondary"><?php esc_html_e( 'Autofill Licenses', 'formidable' ) ?></a></p>
41 <?php } ?>
42 </div>
43