@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -if ( ! defined('ABSPATH') ) { |
|
2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
3 | 3 | die( 'You are not allowed to call this page directly.' ); |
4 | 4 | } |
5 | 5 |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | if ( ! isset( $entry) ) { |
3 | - $entry = $record; |
|
3 | + $entry = $record; |
|
4 | 4 | } ?> |
5 | 5 | |
6 | 6 | <div class="misc-pub-section curtime misc-pub-curtime"> |
7 | 7 | <span id="timestamp"> |
8 | 8 | <?php |
9 | - $date_format = __( 'M j, Y @ G:i' ); |
|
9 | + $date_format = __( 'M j, Y @ G:i' ); |
|
10 | 10 | printf( __( 'Published on: <b>%1$s</b>' ), FrmAppHelper::get_localized_date( $date_format, $entry->created_at ) ); ?> |
11 | 11 | </span> |
12 | 12 | </div> |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if ( ! isset( $entry) ) { |
|
2 | +if ( ! isset( $entry ) ) { |
|
3 | 3 | $entry = $record; |
4 | 4 | } ?> |
5 | 5 | |
@@ -18,4 +18,4 @@ discard block |
||
18 | 18 | </div> |
19 | 19 | <?php } ?> |
20 | 20 | |
21 | -<?php do_action('frm_entry_shared_sidebar', $entry); ?> |
|
21 | +<?php do_action( 'frm_entry_shared_sidebar', $entry ); ?> |
@@ -66,18 +66,18 @@ |
||
66 | 66 | <?php } ?> |
67 | 67 | |
68 | 68 | <?php |
69 | - foreach ( (array) $data as $k => $d ) { |
|
69 | + foreach ( (array) $data as $k => $d ) { |
|
70 | 70 | if ( in_array( $k, array( 'browser', 'referrer' ) ) ) { |
71 | - continue; |
|
72 | - } |
|
73 | - ?> |
|
71 | + continue; |
|
72 | + } |
|
73 | + ?> |
|
74 | 74 | <div class="misc-pub-section"> |
75 | 75 | <b><?php echo sanitize_text_field( ucfirst( str_replace( '-', ' ', $k ) ) ); ?></b>: |
76 | 76 | <?php echo wp_kses_post( implode( ', ', (array) $d ) ); ?> |
77 | 77 | </div> |
78 | 78 | <?php |
79 | - unset($k, $d); |
|
80 | - } |
|
81 | - ?> |
|
79 | + unset($k, $d); |
|
80 | + } |
|
81 | + ?> |
|
82 | 82 | </div> |
83 | 83 | </div> |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | <div class="misc-pub-section"> |
7 | 7 | <span class="dashicons dashicons-admin-post wp-media-buttons-icon"></span> |
8 | 8 | <?php _e( 'Post', 'formidable' ) ?>: |
9 | - <b><?php echo get_the_title($entry->post_id) ?></b> |
|
9 | + <b><?php echo get_the_title( $entry->post_id ) ?></b> |
|
10 | 10 | <span> |
11 | 11 | <a href="<?php echo esc_url( admin_url( 'post.php?post=' . $entry->post_id . '&action=edit' ) ) ?>"> |
12 | 12 | <?php _e( 'Edit', 'formidable' ) ?> |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | <?php if ( $entry->updated_by && $entry->updated_by != $entry->user_id ) { ?> |
42 | 42 | <div class="misc-pub-section"> |
43 | 43 | <span class="dashicons dashicons-admin-users wp-media-buttons-icon"></span> |
44 | - <?php printf( __( 'Updated by: %1$s', 'formidable' ), FrmProFieldsHelper::get_display_name( $entry->updated_by, 'display_name', array( 'link' => true ) ) ); ?> |
|
44 | + <?php printf( __( 'Updated by: %1$s', 'formidable' ), FrmProFieldsHelper::get_display_name( $entry->updated_by, 'display_name', array( 'link' => true ) ) ); ?> |
|
45 | 45 | </div> |
46 | 46 | <?php } ?> |
47 | 47 | <?php } ?> |
@@ -64,10 +64,10 @@ discard block |
||
64 | 64 | </div> |
65 | 65 | <?php } ?> |
66 | 66 | |
67 | - <?php if ( isset($data['referrer']) ) { ?> |
|
67 | + <?php if ( isset( $data['referrer'] ) ) { ?> |
|
68 | 68 | <div class="misc-pub-section"> |
69 | 69 | <b><?php _e( 'Referrer', 'formidable' ) ?></b>:<br/> |
70 | - <?php echo wp_kses_post( str_replace( "\r\n", '<br/>', $data['referrer'] ) ); ?> |
|
70 | + <?php echo wp_kses_post( str_replace( "\r\n", '<br/>', $data['referrer'] ) ); ?> |
|
71 | 71 | </div> |
72 | 72 | <?php } ?> |
73 | 73 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | <?php echo wp_kses_post( implode( ', ', (array) $d ) ); ?> |
83 | 83 | </div> |
84 | 84 | <?php |
85 | - unset($k, $d); |
|
85 | + unset( $k, $d ); |
|
86 | 86 | } |
87 | 87 | ?> |
88 | 88 | </div> |
@@ -3,7 +3,7 @@ |
||
3 | 3 | class FrmDefPostAction extends FrmFormAction { |
4 | 4 | public function __construct() { |
5 | 5 | $action_ops = FrmFormAction::default_action_opts(); |
6 | - $action_ops['classes'] = 'ab-icon frm_dashicon_font dashicons-before'; |
|
6 | + $action_ops['classes'] = 'ab-icon frm_dashicon_font dashicons-before'; |
|
7 | 7 | |
8 | 8 | parent::__construct( 'wppost', __( 'Create Post', 'formidable' ), $action_ops ); |
9 | 9 | } |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | // add register action |
13 | 13 | class FrmDefRegAction extends FrmFormAction { |
14 | 14 | public function __construct() { |
15 | - $action_ops = FrmFormAction::default_action_opts('frm_register_icon'); |
|
15 | + $action_ops = FrmFormAction::default_action_opts( 'frm_register_icon' ); |
|
16 | 16 | parent::__construct( 'register', __( 'Register User', 'formidable' ), $action_ops ); |
17 | 17 | } |
18 | 18 | } |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | // add paypal action |
21 | 21 | class FrmDefPayPalAction extends FrmFormAction { |
22 | 22 | public function __construct() { |
23 | - $action_ops = FrmFormAction::default_action_opts('frm_paypal_icon'); |
|
23 | + $action_ops = FrmFormAction::default_action_opts( 'frm_paypal_icon' ); |
|
24 | 24 | parent::__construct( 'paypal', __( 'Collect Payment', 'formidable' ), $action_ops ); |
25 | 25 | } |
26 | 26 | } |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | // add aweber action |
29 | 29 | class FrmDefAweberAction extends FrmFormAction { |
30 | 30 | public function __construct() { |
31 | - $action_ops = FrmFormAction::default_action_opts('frm_aweber_icon'); |
|
31 | + $action_ops = FrmFormAction::default_action_opts( 'frm_aweber_icon' ); |
|
32 | 32 | parent::__construct( 'aweber', __( 'Aweber', 'formidable' ), $action_ops ); |
33 | 33 | } |
34 | 34 | } |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | // add mailchimp action |
37 | 37 | class FrmDefMlcmpAction extends FrmFormAction { |
38 | 38 | public function __construct() { |
39 | - $action_ops = FrmFormAction::default_action_opts('frm_mailchimp_icon'); |
|
39 | + $action_ops = FrmFormAction::default_action_opts( 'frm_mailchimp_icon' ); |
|
40 | 40 | parent::__construct( 'mailchimp', __( 'MailChimp', 'formidable' ), $action_ops ); |
41 | 41 | } |
42 | 42 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | // add twilio action |
45 | 45 | class FrmDefTwilioAction extends FrmFormAction { |
46 | 46 | public function __construct() { |
47 | - $action_ops = FrmFormAction::default_action_opts('frm_sms_icon'); |
|
47 | + $action_ops = FrmFormAction::default_action_opts( 'frm_sms_icon' ); |
|
48 | 48 | parent::__construct( 'twilio', __( 'Twilio', 'formidable' ), $action_ops ); |
49 | 49 | } |
50 | 50 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | // add highrise action |
53 | 53 | class FrmDefHrsAction extends FrmFormAction { |
54 | 54 | public function __construct() { |
55 | - $action_ops = FrmFormAction::default_action_opts('frm_highrise_icon'); |
|
55 | + $action_ops = FrmFormAction::default_action_opts( 'frm_highrise_icon' ); |
|
56 | 56 | parent::__construct( 'highrise', __( 'Highrise', 'formidable' ), $action_ops ); |
57 | 57 | } |
58 | 58 | } |
@@ -12,15 +12,15 @@ discard block |
||
12 | 12 | <?php } ?> |
13 | 13 | <div id="preview-action"> |
14 | 14 | <?php |
15 | - if ( ! isset($hide_preview) || ! $hide_preview ) { |
|
15 | + if ( ! isset($hide_preview) || ! $hide_preview ) { |
|
16 | 16 | |
17 | - if ( isset($values['form_key']) ) { |
|
18 | - $frm_settings = FrmAppHelper::get_settings(); |
|
19 | - if ( empty($frm_settings->preview_page_id) ) { ?> |
|
17 | + if ( isset($values['form_key']) ) { |
|
18 | + $frm_settings = FrmAppHelper::get_settings(); |
|
19 | + if ( empty($frm_settings->preview_page_id) ) { ?> |
|
20 | 20 | <a href="<?php echo esc_url( FrmFormsHelper::get_direct_link($values['form_key']) ); ?>" class="preview button" target="wp-frm-preview-<?php echo esc_attr( $id ) ?>"><?php _e( 'Preview', 'formidable' ) ?></a> |
21 | 21 | <?php |
22 | - } else { |
|
23 | - ?> |
|
22 | + } else { |
|
23 | + ?> |
|
24 | 24 | <div class="preview dropdown"> |
25 | 25 | <a href="#" id="frm-previewDrop" class="frm-dropdown-toggle button" data-toggle="dropdown"><?php _e( 'Preview', 'formidable' ) ?> <b class="caret"></b></a> |
26 | 26 | |
@@ -30,8 +30,8 @@ discard block |
||
30 | 30 | </ul> |
31 | 31 | </div> |
32 | 32 | <?php } |
33 | - } |
|
34 | - } ?> |
|
33 | + } |
|
34 | + } ?> |
|
35 | 35 | </div> |
36 | 36 | <?php if ( 'draft' == $values['status'] ) { ?> |
37 | 37 | <div class="clear"></div> |
@@ -6,18 +6,18 @@ discard block |
||
6 | 6 | <div id="minor-publishing-actions"> |
7 | 7 | <?php if ( 'draft' == $values['status'] ) { ?> |
8 | 8 | <div id="save-action"> |
9 | - <input type="button" value="<?php esc_html_e( 'Save Draft', 'formidable' ); ?>" class="frm_submit_form frm_submit_<?php echo ( isset($values['ajax_load']) && $values['ajax_load'] ) ? '': 'no_'; ?>ajax button-secondary button-large" id="save-post" /> |
|
9 | + <input type="button" value="<?php esc_html_e( 'Save Draft', 'formidable' ); ?>" class="frm_submit_form frm_submit_<?php echo ( isset( $values['ajax_load'] ) && $values['ajax_load'] ) ? '' : 'no_'; ?>ajax button-secondary button-large" id="save-post" /> |
|
10 | 10 | <span class="spinner"></span> |
11 | 11 | </div> |
12 | 12 | <?php } ?> |
13 | 13 | <div id="preview-action"> |
14 | 14 | <?php |
15 | - if ( ! isset($hide_preview) || ! $hide_preview ) { |
|
15 | + if ( ! isset( $hide_preview ) || ! $hide_preview ) { |
|
16 | 16 | |
17 | - if ( isset($values['form_key']) ) { |
|
17 | + if ( isset( $values['form_key'] ) ) { |
|
18 | 18 | $frm_settings = FrmAppHelper::get_settings(); |
19 | - if ( empty($frm_settings->preview_page_id) ) { ?> |
|
20 | - <a href="<?php echo esc_url( FrmFormsHelper::get_direct_link($values['form_key']) ); ?>" class="preview button" target="wp-frm-preview-<?php echo esc_attr( $id ) ?>"><?php _e( 'Preview', 'formidable' ) ?></a> |
|
19 | + if ( empty( $frm_settings->preview_page_id ) ) { ?> |
|
20 | + <a href="<?php echo esc_url( FrmFormsHelper::get_direct_link( $values['form_key'] ) ); ?>" class="preview button" target="wp-frm-preview-<?php echo esc_attr( $id ) ?>"><?php _e( 'Preview', 'formidable' ) ?></a> |
|
21 | 21 | <?php |
22 | 22 | } else { |
23 | 23 | ?> |
@@ -25,8 +25,8 @@ discard block |
||
25 | 25 | <a href="#" id="frm-previewDrop" class="frm-dropdown-toggle button" data-toggle="dropdown"><?php _e( 'Preview', 'formidable' ) ?> <b class="caret"></b></a> |
26 | 26 | |
27 | 27 | <ul class="frm-dropdown-menu pull-right" role="menu" aria-labelledby="frm-previewDrop"> |
28 | - <li><a href="<?php echo esc_url( FrmFormsHelper::get_direct_link($values['form_key']) ); ?>" target="_blank"><?php _e( 'On Blank Page', 'formidable' ) ?></a></li> |
|
29 | - <li><a href="<?php echo esc_url( add_query_arg('form', $values['form_key'], get_permalink( $frm_settings->preview_page_id )) ) ?>" target="_blank"><?php _e( 'In Theme', 'formidable' ) ?></a></li> |
|
28 | + <li><a href="<?php echo esc_url( FrmFormsHelper::get_direct_link( $values['form_key'] ) ); ?>" target="_blank"><?php _e( 'On Blank Page', 'formidable' ) ?></a></li> |
|
29 | + <li><a href="<?php echo esc_url( add_query_arg( 'form', $values['form_key'], get_permalink( $frm_settings->preview_page_id ) ) ) ?>" target="_blank"><?php _e( 'In Theme', 'formidable' ) ?></a></li> |
|
30 | 30 | </ul> |
31 | 31 | </div> |
32 | 32 | <?php } |
@@ -62,24 +62,24 @@ discard block |
||
62 | 62 | |
63 | 63 | |
64 | 64 | <div class="misc-pub-section misc-pub-post-status"><label for="post_status"><?php _e( 'Status', 'formidable' ) ?>:</label> |
65 | - <span id="form-status-display"><?php echo FrmFormsHelper::status_nice_name($values['status']); ?></span> |
|
65 | + <span id="form-status-display"><?php echo FrmFormsHelper::status_nice_name( $values['status'] ); ?></span> |
|
66 | 66 | <?php if ( 'draft' != $values['status'] && ( ! isset( $_GET['frm_action'] ) || 'settings' != FrmAppHelper::simple_get( 'frm_action', 'sanitize_title' ) ) ) { ?> |
67 | - <a href="#post_status" class="edit-form-status hide-if-no-js" data-slidedown="form-status-select"><span aria-hidden="true"><?php _e( 'Edit') ?></span> <span class="screen-reader-text"><?php _e( 'Edit status') ?></span></a> |
|
67 | + <a href="#post_status" class="edit-form-status hide-if-no-js" data-slidedown="form-status-select"><span aria-hidden="true"><?php _e( 'Edit' ) ?></span> <span class="screen-reader-text"><?php _e( 'Edit status' ) ?></span></a> |
|
68 | 68 | |
69 | 69 | <div id="form-status-select" class="frm_hidden"> |
70 | 70 | <select name="frm_change_status" id="form_change_status"> |
71 | - <option value="published" <?php selected($values['status'], 'published') ?>><?php _e( 'Published' ) ?></option> |
|
72 | - <option value="draft" <?php selected($values['status'], 'draft') ?>><?php _e( 'Draft' ) ?></option> |
|
71 | + <option value="published" <?php selected( $values['status'], 'published' ) ?>><?php _e( 'Published' ) ?></option> |
|
72 | + <option value="draft" <?php selected( $values['status'], 'draft' ) ?>><?php _e( 'Draft' ) ?></option> |
|
73 | 73 | </select> |
74 | - <a href="#post_status" class="save-form-status hide-if-no-js button"><?php _e( 'OK') ?></a> |
|
75 | - <a href="#post_status" class="cancel-form-status hide-if-no-js button-cancel" data-slideup="form-status-select"><?php _e( 'Cancel') ?></a> |
|
74 | + <a href="#post_status" class="save-form-status hide-if-no-js button"><?php _e( 'OK' ) ?></a> |
|
75 | + <a href="#post_status" class="cancel-form-status hide-if-no-js button-cancel" data-slideup="form-status-select"><?php _e( 'Cancel' ) ?></a> |
|
76 | 76 | </div> |
77 | 77 | <?php } ?> |
78 | 78 | </div><!-- .misc-pub-section --> |
79 | 79 | |
80 | - <?php if ( has_action('frm_settings_buttons') ) { ?> |
|
80 | + <?php if ( has_action( 'frm_settings_buttons' ) ) { ?> |
|
81 | 81 | <div class="misc-pub-section"> |
82 | - <?php do_action('frm_settings_buttons', $values); ?> |
|
82 | + <?php do_action( 'frm_settings_buttons', $values ); ?> |
|
83 | 83 | <div class="clear"></div> |
84 | 84 | </div> |
85 | 85 | <?php } ?> |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | |
91 | 91 | <div id="major-publishing-actions"> |
92 | 92 | <div id="delete-action"> |
93 | - <?php echo FrmFormsHelper::delete_trash_link($id, $values['status']); ?> |
|
93 | + <?php echo FrmFormsHelper::delete_trash_link( $id, $values['status'] ); ?> |
|
94 | 94 | </div> |
95 | 95 | |
96 | 96 | <div id="publishing-action"> |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | <?php if ( 'settings' == FrmAppHelper::simple_get( 'frm_action', 'sanitize_title' ) ) { ?> |
99 | 99 | <input type="button" value="<?php esc_attr_e( 'Update', 'formidable' ); ?>" class="frm_submit_form frm_submit_settings_btn button-primary button-large" id="frm_submit_side_top" /> |
100 | 100 | <?php } else { ?> |
101 | - <input type="button" value="<?php echo isset($button) ? esc_attr($button) : __( 'Update', 'formidable' ); ?>" class="frm_submit_form frm_submit_<?php echo ( isset($values['ajax_load']) && $values['ajax_load'] ) ? '': 'no_'; ?>ajax button-primary button-large" id="frm_submit_side_top" /> |
|
101 | + <input type="button" value="<?php echo isset( $button ) ? esc_attr( $button ) : __( 'Update', 'formidable' ); ?>" class="frm_submit_form frm_submit_<?php echo ( isset( $values['ajax_load'] ) && $values['ajax_load'] ) ? '' : 'no_'; ?>ajax button-primary button-large" id="frm_submit_side_top" /> |
|
102 | 102 | <?php } ?> |
103 | 103 | </div> |
104 | 104 |
@@ -2,6 +2,6 @@ |
||
2 | 2 | <div class="handlediv" title="<?php esc_attr_e( 'Click to toggle', 'formidable' ) ?>"><br/></div> |
3 | 3 | <h3 class="hndle"><span><?php _e( 'Customization', 'formidable' ) ?></span></h3> |
4 | 4 | <div class="inside"> |
5 | - <?php FrmFormsController::mb_tags_box($id); ?> |
|
5 | + <?php FrmFormsController::mb_tags_box( $id ); ?> |
|
6 | 6 | </div> |
7 | 7 | </div> |
@@ -157,10 +157,10 @@ |
||
157 | 157 | call_user_func( array( $section['class'], $section['function'] ) ); |
158 | 158 | } else { |
159 | 159 | call_user_func( ( isset( $section['function'] ) ? $section['function'] : $section ) ); |
160 | - } ?> |
|
160 | + } ?> |
|
161 | 161 | </div> |
162 | 162 | <?php |
163 | - } ?> |
|
163 | + } ?> |
|
164 | 164 | |
165 | 165 | <p class="alignright frm_uninstall"> |
166 | 166 | <a href="javascript:void(0)" id="frm_uninstall_now"><?php _e( 'Uninstall Formidable', 'formidable' ) ?></a> |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | <div class="contextual-help-tabs"> |
15 | 15 | <ul class="frm-category-tabs"> |
16 | 16 | <?php $a = FrmAppHelper::simple_get( 't', 'sanitize_title', 'general_settings' ); ?> |
17 | - <li <?php echo ($a == 'general_settings') ? 'class="tabs active"' : '' ?>><a href="#general_settings" class="frm_cursor_pointer"><?php _e( 'General', 'formidable' ) ?></a></li> |
|
17 | + <li <?php echo ( $a == 'general_settings' ) ? 'class="tabs active"' : '' ?>><a href="#general_settings" class="frm_cursor_pointer"><?php _e( 'General', 'formidable' ) ?></a></li> |
|
18 | 18 | <?php foreach ( $sections as $sec_name => $section ) { ?> |
19 | 19 | <li <?php echo ( $a == $sec_name . '_settings' ) ? 'class="tabs active"' : '' ?>> |
20 | 20 | <a href="#<?php echo esc_attr( $sec_name ) ?>_settings"> |
@@ -25,14 +25,14 @@ discard block |
||
25 | 25 | </ul> |
26 | 26 | </div> |
27 | 27 | |
28 | - <?php do_action('frm_before_settings'); ?> |
|
28 | + <?php do_action( 'frm_before_settings' ); ?> |
|
29 | 29 | |
30 | 30 | <form name="frm_settings_form" method="post" class="frm_settings_form" action="?page=formidable-settings<?php echo ( $a ? '&t=' . $a : '' ); ?>"> |
31 | 31 | <input type="hidden" name="frm_action" value="process-form" /> |
32 | 32 | <input type="hidden" name="action" value="process-form" /> |
33 | - <?php wp_nonce_field('process_form_nonce', 'process_form'); ?> |
|
33 | + <?php wp_nonce_field( 'process_form_nonce', 'process_form' ); ?> |
|
34 | 34 | |
35 | - <div class="general_settings tabs-panel <?php echo ($a == 'general_settings') ? 'frm_block' : 'frm_hidden'; ?>"> |
|
35 | + <div class="general_settings tabs-panel <?php echo ( $a == 'general_settings' ) ? 'frm_block' : 'frm_hidden'; ?>"> |
|
36 | 36 | <p class="submit"> |
37 | 37 | <input class="button-primary" type="submit" value="<?php esc_attr_e( 'Update Options', 'formidable' ) ?>" /> |
38 | 38 | </p> |
@@ -41,20 +41,20 @@ discard block |
||
41 | 41 | |
42 | 42 | <p><label class="frm_left_label"><?php _e( 'Load form styling', 'formidable' ) ?></label> |
43 | 43 | <select id="frm_load_style" name="frm_load_style"> |
44 | - <option value="all" <?php selected($frm_settings->load_style, 'all') ?>><?php _e( 'on every page of your site', 'formidable' ) ?></option> |
|
45 | - <option value="dynamic" <?php selected($frm_settings->load_style, 'dynamic') ?>><?php _e( 'only on applicable pages', 'formidable' ) ?></option> |
|
46 | - <option value="none" <?php selected($frm_settings->load_style, 'none') ?>><?php _e( 'Don\'t use form styling on any page', 'formidable' ) ?></option> |
|
44 | + <option value="all" <?php selected( $frm_settings->load_style, 'all' ) ?>><?php _e( 'on every page of your site', 'formidable' ) ?></option> |
|
45 | + <option value="dynamic" <?php selected( $frm_settings->load_style, 'dynamic' ) ?>><?php _e( 'only on applicable pages', 'formidable' ) ?></option> |
|
46 | + <option value="none" <?php selected( $frm_settings->load_style, 'none' ) ?>><?php _e( 'Don\'t use form styling on any page', 'formidable' ) ?></option> |
|
47 | 47 | </select> |
48 | 48 | </p> |
49 | 49 | |
50 | 50 | <p> |
51 | 51 | <label for="frm_use_html"> |
52 | - <input type="checkbox" id="frm_use_html" name="frm_use_html" value="1" <?php checked($frm_settings->use_html, 1) ?> > <?php _e( 'Use HTML5 in forms', 'formidable' ) ?> |
|
52 | + <input type="checkbox" id="frm_use_html" name="frm_use_html" value="1" <?php checked( $frm_settings->use_html, 1 ) ?> > <?php _e( 'Use HTML5 in forms', 'formidable' ) ?> |
|
53 | 53 | </label> |
54 | 54 | <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'We recommend using HTML 5 for your forms. It adds some nifty options like placeholders, patterns, and autocomplete.', 'formidable' ) ?>"></span> |
55 | 55 | </p> |
56 | 56 | |
57 | - <?php do_action('frm_style_general_settings', $frm_settings); ?> |
|
57 | + <?php do_action( 'frm_style_general_settings', $frm_settings ); ?> |
|
58 | 58 | |
59 | 59 | <h3><?php _e( 'User Permissions', 'formidable' ); ?> |
60 | 60 | <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Select users that are allowed access to Formidable. Without access to View Forms, users will be unable to see the Formidable menu.', 'formidable' ) ?>"></span> |
@@ -78,16 +78,16 @@ discard block |
||
78 | 78 | </p> |
79 | 79 | |
80 | 80 | <p><label class="frm_left_label"><?php _e( 'Site Key', 'formidable' ) ?></label> |
81 | - <input type="text" name="frm_pubkey" id="frm_pubkey" size="42" value="<?php echo esc_attr($frm_settings->pubkey) ?>" placeholder="<?php esc_attr_e( 'Optional', 'formidable' ) ?>" /></p> |
|
81 | + <input type="text" name="frm_pubkey" id="frm_pubkey" size="42" value="<?php echo esc_attr( $frm_settings->pubkey ) ?>" placeholder="<?php esc_attr_e( 'Optional', 'formidable' ) ?>" /></p> |
|
82 | 82 | |
83 | 83 | <p><label class="frm_left_label"><?php _e( 'Secret Key', 'formidable' ) ?></label> |
84 | - <input type="text" name="frm_privkey" id="frm_privkey" size="42" value="<?php echo esc_attr($frm_settings->privkey) ?>" placeholder="<?php esc_attr_e( 'Optional', 'formidable' ) ?>" /></p> |
|
84 | + <input type="text" name="frm_privkey" id="frm_privkey" size="42" value="<?php echo esc_attr( $frm_settings->privkey ) ?>" placeholder="<?php esc_attr_e( 'Optional', 'formidable' ) ?>" /></p> |
|
85 | 85 | |
86 | 86 | <p><label class="frm_left_label"><?php _e( 'reCAPTCHA Language', 'formidable' ) ?></label> |
87 | 87 | <select name="frm_re_lang" id="frm_re_lang"> |
88 | 88 | <option value="" <?php selected( $frm_settings->re_lang, '' ) ?>><?php esc_html_e( 'Browser Default', 'formidable' ); ?></option> |
89 | 89 | <?php foreach ( $captcha_lang as $lang => $lang_name ) { ?> |
90 | - <option value="<?php echo esc_attr($lang) ?>" <?php selected($frm_settings->re_lang, $lang) ?>><?php echo esc_html( $lang_name ) ?></option> |
|
90 | + <option value="<?php echo esc_attr( $lang ) ?>" <?php selected( $frm_settings->re_lang, $lang ) ?>><?php echo esc_html( $lang_name ) ?></option> |
|
91 | 91 | <?php } ?> |
92 | 92 | </select></p> |
93 | 93 | |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | <label class="frm_left_label"><?php _e( 'Success Message', 'formidable' ); ?> |
141 | 141 | <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'The default message seen after a form is submitted.', 'formidable' ) ?>" ></span> |
142 | 142 | </label> |
143 | - <input type="text" id="frm_success_msg" name="frm_success_msg" class="frm_with_left_label" value="<?php echo esc_attr($frm_settings->success_msg) ?>" /> |
|
143 | + <input type="text" id="frm_success_msg" name="frm_success_msg" class="frm_with_left_label" value="<?php echo esc_attr( $frm_settings->success_msg ) ?>" /> |
|
144 | 144 | </p> |
145 | 145 | |
146 | 146 | <p> |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | <input type="text" value="<?php echo esc_attr( $frm_settings->submit_value ) ?>" id="frm_submit_value" name="frm_submit_value" class="frm_with_left_label" /> |
149 | 149 | </p> |
150 | 150 | |
151 | - <?php do_action('frm_settings_form', $frm_settings); ?> |
|
151 | + <?php do_action( 'frm_settings_form', $frm_settings ); ?> |
|
152 | 152 | |
153 | 153 | <?php if ( ! FrmAppHelper::pro_is_installed() ) { ?> |
154 | 154 | <div class="clear"></div> |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | <?php } ?> |
159 | 159 | |
160 | 160 | <p><label class="frm_left_label"><?php _e( 'Preview Page', 'formidable' ); ?></label> |
161 | - <?php FrmAppHelper::wp_pages_dropdown('frm-preview-page-id', $frm_settings->preview_page_id ) ?> |
|
161 | + <?php FrmAppHelper::wp_pages_dropdown( 'frm-preview-page-id', $frm_settings->preview_page_id ) ?> |
|
162 | 162 | </p> |
163 | 163 | |
164 | 164 | </div> |
@@ -1,4 +1,4 @@ |
||
1 | -<div class="general_settings metabox-holder tabs-panel frm_license_box <?php echo ($a == 'general_settings') ? 'frm_block' : 'frm_hidden'; ?>"> |
|
1 | +<div class="general_settings metabox-holder tabs-panel frm_license_box <?php echo ( $a == 'general_settings' ) ? 'frm_block' : 'frm_hidden'; ?>"> |
|
2 | 2 | <?php if ( ! is_multisite() || is_super_admin() ) { ?> |
3 | 3 | <div class="postbox"> |
4 | 4 | <div class="inside"> |
@@ -1,23 +1,23 @@ |
||
1 | 1 | <div class="clear"></div> |
2 | 2 | <?php |
3 | 3 | if ( isset($message) && $message != '' ) { |
4 | - if ( FrmAppHelper::is_admin() ) { |
|
5 | - ?><div id="message" class="updated frm_msg_padding"><?php |
|
6 | - echo $message; |
|
7 | - ?></div><?php |
|
8 | - } else { |
|
9 | - echo $message; |
|
10 | - } |
|
4 | + if ( FrmAppHelper::is_admin() ) { |
|
5 | + ?><div id="message" class="updated frm_msg_padding"><?php |
|
6 | + echo $message; |
|
7 | + ?></div><?php |
|
8 | + } else { |
|
9 | + echo $message; |
|
10 | + } |
|
11 | 11 | } |
12 | 12 | |
13 | 13 | if ( isset($errors) && is_array($errors) && count($errors) > 0 ) { ?> |
14 | 14 | <div class="error"> |
15 | 15 | <ul id="frm_errors"> |
16 | 16 | <?php |
17 | - foreach ( $errors as $error ) { |
|
18 | - echo '<li>' . $error . '</li>'; |
|
19 | - } |
|
20 | - ?> |
|
17 | + foreach ( $errors as $error ) { |
|
18 | + echo '<li>' . $error . '</li>'; |
|
19 | + } |
|
20 | + ?> |
|
21 | 21 | </ul> |
22 | 22 | </div> |
23 | 23 | <?php |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <div class="clear"></div> |
2 | 2 | <?php |
3 | -if ( isset($message) && $message != '' ) { |
|
3 | +if ( isset( $message ) && $message != '' ) { |
|
4 | 4 | if ( FrmAppHelper::is_admin() ) { |
5 | 5 | ?><div id="message" class="updated frm_msg_padding"><?php |
6 | 6 | echo $message; |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | } |
11 | 11 | } |
12 | 12 | |
13 | -if ( isset($errors) && is_array($errors) && count($errors) > 0 ) { ?> |
|
13 | +if ( isset( $errors ) && is_array( $errors ) && count( $errors ) > 0 ) { ?> |
|
14 | 14 | <div class="error"> |
15 | 15 | <ul id="frm_errors"> |
16 | 16 | <?php |