@@ -42,51 +42,51 @@ discard block |
||
42 | 42 | |
43 | 43 | if ( $f->type == 'data' ) { |
44 | 44 | //get all fields from linked form |
45 | - if ( isset($f->field_options['form_select']) && is_numeric($f->field_options['form_select']) ) { |
|
45 | + if ( isset($f->field_options['form_select']) && is_numeric($f->field_options['form_select']) ) { |
|
46 | 46 | $linked_form = FrmDb::get_var( $wpdb->prefix . 'frm_fields', array( 'id' => $f->field_options['form_select'] ), 'form_id' ); |
47 | - if ( ! in_array( $linked_form, $linked_forms ) ) { |
|
48 | - $linked_forms[] = $linked_form; |
|
47 | + if ( ! in_array( $linked_form, $linked_forms ) ) { |
|
48 | + $linked_forms[] = $linked_form; |
|
49 | 49 | $linked_fields = FrmField::getAll( array( 'fi.type not' => FrmField::no_save_fields(), 'fi.form_id' => $linked_form ) ); |
50 | - $ldfe = ''; |
|
50 | + $ldfe = ''; |
|
51 | 51 | if ( $linked_fields ) { |
52 | 52 | foreach ( $linked_fields as $linked_field ) { |
53 | - FrmAppHelper::insert_opt_html( array( 'id' => $f->id . ' show=' . $linked_field->id, 'key' => $f->field_key . ' show=' . $linked_field->field_key, 'name' => $linked_field->name, 'type' => $linked_field->type ) ); |
|
54 | - |
|
55 | - $ldfe = $linked_field->id; |
|
56 | - unset($linked_field); |
|
57 | - } |
|
58 | - } |
|
59 | - } |
|
60 | - } |
|
61 | - $dfe = $f->id; |
|
62 | - } |
|
63 | - unset($f); |
|
64 | - } |
|
65 | - } ?> |
|
53 | + FrmAppHelper::insert_opt_html( array( 'id' => $f->id . ' show=' . $linked_field->id, 'key' => $f->field_key . ' show=' . $linked_field->field_key, 'name' => $linked_field->name, 'type' => $linked_field->type ) ); |
|
54 | + |
|
55 | + $ldfe = $linked_field->id; |
|
56 | + unset($linked_field); |
|
57 | + } |
|
58 | + } |
|
59 | + } |
|
60 | + } |
|
61 | + $dfe = $f->id; |
|
62 | + } |
|
63 | + unset($f); |
|
64 | + } |
|
65 | + } ?> |
|
66 | 66 | </ul> |
67 | 67 | |
68 | 68 | <?php _e( 'Helpers', 'formidable' ) ?>: |
69 | 69 | <ul class="frm_code_list"> |
70 | 70 | <?php |
71 | - $col = 'one'; |
|
71 | + $col = 'one'; |
|
72 | 72 | foreach ( $entry_shortcodes as $skey => $sname ) { |
73 | 73 | if ( empty( $skey ) ) { |
74 | - $col = 'one'; |
|
75 | - echo '<li class="clear frm_block"></li>'; |
|
76 | - continue; |
|
77 | - } |
|
78 | - ?> |
|
74 | + $col = 'one'; |
|
75 | + echo '<li class="clear frm_block"></li>'; |
|
76 | + continue; |
|
77 | + } |
|
78 | + ?> |
|
79 | 79 | <li class="frm_col_<?php echo esc_attr( $col ) ?>"> |
80 | 80 | <a href="javascript:void(0)" class="frmbutton button <?php |
81 | 81 | echo ( in_array( $skey, array( 'siteurl', 'sitename', 'entry_count' ) ) ) ? 'show_before_content show_after_content' : ''; |
82 | - echo ( strpos( $skey, 'default-' ) === 0 ) ? 'hide_frm_not_email_subject' : ''; |
|
83 | - ?> frm_insert_code" data-code="<?php echo esc_attr( $skey ) ?>"><?php echo esc_html( $sname ) ?></a> |
|
82 | + echo ( strpos( $skey, 'default-' ) === 0 ) ? 'hide_frm_not_email_subject' : ''; |
|
83 | + ?> frm_insert_code" data-code="<?php echo esc_attr( $skey ) ?>"><?php echo esc_html( $sname ) ?></a> |
|
84 | 84 | </li> |
85 | 85 | <?php |
86 | - $col = ( $col == 'one' ) ? 'two' : 'one'; |
|
87 | - unset($skey, $sname); |
|
88 | - } |
|
89 | - ?> |
|
86 | + $col = ( $col == 'one' ) ? 'two' : 'one'; |
|
87 | + unset($skey, $sname); |
|
88 | + } |
|
89 | + ?> |
|
90 | 90 | </ul> |
91 | 91 | </div> |
92 | 92 | |
@@ -99,11 +99,11 @@ discard block |
||
99 | 99 | <ul class="alignleft"><li><?php _e( 'Fields from your form', 'formidable' ) ?>:</li></ul> |
100 | 100 | <ul class="frm_code_list frm_full_width"> |
101 | 101 | <?php if ( ! empty( $fields ) ) { |
102 | - foreach ( $fields as $f ) { |
|
102 | + foreach ( $fields as $f ) { |
|
103 | 103 | if ( FrmField::is_no_save_field( $f->type ) || ( $f->type == 'data' && ( ! isset( $f->field_options['data_type'] ) || $f->field_options['data_type'] == 'data' || $f->field_options['data_type'] == '' ) ) ) { |
104 | - continue; |
|
105 | - } |
|
106 | - ?> |
|
104 | + continue; |
|
105 | + } |
|
106 | + ?> |
|
107 | 107 | <li> |
108 | 108 | <a href="javascript:void(0)" class="frmids alignright frm_insert_code" data-code="if <?php echo esc_attr( $f->id ) ?>]<?php esc_attr_e( 'Conditional text here', 'formidable' ) ?>[/if <?php echo esc_attr( $f->id ) ?>">[if <?php echo (int) $f->id ?>]</a> |
109 | 109 | <a href="javascript:void(0)" class="frmkeys alignright frm_insert_code" data-code="if <?php echo esc_attr( $f->field_key ) ?>]something[/if <?php echo esc_attr( $f->field_key ) ?>">[if <?php echo FrmAppHelper::truncate($f->field_key, 10) ?>]</a> |
@@ -111,30 +111,30 @@ discard block |
||
111 | 111 | </li> |
112 | 112 | <?php |
113 | 113 | |
114 | - if ( $f->type == 'user_id' ) { |
|
115 | - $uid = $f; |
|
116 | - } else if ( $f->type == 'file' ) { |
|
117 | - $file = $f; |
|
118 | - } |
|
119 | - unset($f); |
|
120 | - } |
|
121 | - } ?> |
|
114 | + if ( $f->type == 'user_id' ) { |
|
115 | + $uid = $f; |
|
116 | + } else if ( $f->type == 'file' ) { |
|
117 | + $file = $f; |
|
118 | + } |
|
119 | + unset($f); |
|
120 | + } |
|
121 | + } ?> |
|
122 | 122 | </ul> |
123 | 123 | |
124 | 124 | <p class="howto"><?php _e( 'Click a button below to insert sample logic into your view', 'formidable' ) ?></p> |
125 | 125 | <ul class="frm_code_list"> |
126 | 126 | <?php |
127 | - $col = 'one'; |
|
127 | + $col = 'one'; |
|
128 | 128 | foreach ( $cond_shortcodes as $skey => $sname ) { |
129 | - ?> |
|
129 | + ?> |
|
130 | 130 | <li class="frm_col_<?php echo esc_attr( $col ) ?>"> |
131 | 131 | <a href="javascript:void(0)" class="frmbutton button frm_insert_code" data-code="if x <?php echo esc_attr($skey) ?>][/if x"><?php echo esc_html( $sname ) ?></a> |
132 | 132 | </li> |
133 | 133 | <?php |
134 | - $col = ( $col == 'one' ) ? 'two' : 'one'; |
|
135 | - unset($skey, $sname); |
|
136 | - } |
|
137 | - ?> |
|
134 | + $col = ( $col == 'one' ) ? 'two' : 'one'; |
|
135 | + unset($skey, $sname); |
|
136 | + } |
|
137 | + ?> |
|
138 | 138 | </ul> |
139 | 139 | </div> |
140 | 140 | <?php } ?> |
@@ -142,19 +142,19 @@ discard block |
||
142 | 142 | <div id="frm-adv-info-tab" class="tabs-panel"> |
143 | 143 | <ul class="frm_code_list"> |
144 | 144 | <?php |
145 | - $col = 'one'; |
|
145 | + $col = 'one'; |
|
146 | 146 | foreach ( $adv_shortcodes as $skey => $sname ) { |
147 | - ?> |
|
147 | + ?> |
|
148 | 148 | <li class="frm_col_<?php echo esc_attr( $col ) ?>"> |
149 | 149 | <a href="javascript:void(0)" class="frmbutton button frm_insert_code <?php echo is_array( $sname ) ? 'frm_help' : ''; ?>" data-code="x <?php echo esc_attr( $skey ) ?>" <?php echo is_array( $sname ) ? 'title="' . esc_attr( $sname['title'] ) . '"' : ''; ?>> |
150 | 150 | <?php echo is_array( $sname ) ? $sname['label'] : $sname; ?> |
151 | 151 | </a> |
152 | 152 | </li> |
153 | 153 | <?php |
154 | - $col = ($col == 'one') ? 'two' : 'one'; |
|
155 | - unset($skey, $sname); |
|
156 | - } |
|
157 | - ?> |
|
154 | + $col = ($col == 'one') ? 'two' : 'one'; |
|
155 | + unset($skey, $sname); |
|
156 | + } |
|
157 | + ?> |
|
158 | 158 | <?php if ( isset($file) ) { ?> |
159 | 159 | <li class="frm_col_<?php echo esc_attr( $col ) ?>"> |
160 | 160 | <a href="javascript:void(0)" class="frmbutton button frm_insert_code" data-code="<?php echo esc_attr($file->id) ?> show_image=1"><?php _e( 'Show image', 'formidable' ) ?></a> |
@@ -171,8 +171,8 @@ discard block |
||
171 | 171 | <div class="clear"></div> |
172 | 172 | <?php |
173 | 173 | |
174 | - if ( isset($uid) && ! empty($user_fields) ) { |
|
175 | - $col = 'one'; ?> |
|
174 | + if ( isset($uid) && ! empty($user_fields) ) { |
|
175 | + $col = 'one'; ?> |
|
176 | 176 | <p class="howto"><?php _e( 'Insert user information', 'formidable' ) ?></p> |
177 | 177 | <ul class="frm_code_list"> |
178 | 178 | <?php foreach ( $user_fields as $uk => $uf ) { ?> |
@@ -180,14 +180,14 @@ discard block |
||
180 | 180 | <a href="javascript:void(0)" class="frmbutton button frm_insert_code" data-code="<?php echo esc_attr( $uid->id . ' show="' . $uk . '"' ) ?>"><?php echo esc_html( $uf ) ?></a> |
181 | 181 | </li> |
182 | 182 | <?php |
183 | - $col = ($col == 'one') ? 'two' : 'one'; |
|
184 | - unset($uf, $uk); |
|
185 | - } |
|
186 | - unset($uid); ?> |
|
183 | + $col = ($col == 'one') ? 'two' : 'one'; |
|
184 | + unset($uf, $uk); |
|
185 | + } |
|
186 | + unset($uid); ?> |
|
187 | 187 | </ul> |
188 | 188 | <?php } |
189 | 189 | |
190 | - if ( isset($repeat_field) ) { ?> |
|
190 | + if ( isset($repeat_field) ) { ?> |
|
191 | 191 | <div class="clear"></div> |
192 | 192 | <p class="howto"><?php _e( 'Repeating field options', 'formidable' ) ?></p> |
193 | 193 | <ul class="frm_code_list"> |
@@ -196,9 +196,9 @@ discard block |
||
196 | 196 | </li> |
197 | 197 | </ul> |
198 | 198 | <?php |
199 | - } |
|
199 | + } |
|
200 | 200 | |
201 | - if ( isset($dfe) ) { ?> |
|
201 | + if ( isset($dfe) ) { ?> |
|
202 | 202 | |
203 | 203 | <div class="clear"></div> |
204 | 204 | <p class="howto"><?php _e( 'Dynamic field options', 'formidable' ) ?></p> |
@@ -217,8 +217,8 @@ discard block |
||
217 | 217 | </div> |
218 | 218 | |
219 | 219 | <?php |
220 | - if ( $settings_tab ) { |
|
220 | + if ( $settings_tab ) { |
|
221 | 221 | include( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/mb_html_tab.php' ); |
222 | - } |
|
223 | - ?> |
|
222 | + } |
|
223 | + ?> |
|
224 | 224 | </div> |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | if ( $f->type == 'data' ) { |
44 | 44 | //get all fields from linked form |
45 | - if ( isset($f->field_options['form_select']) && is_numeric($f->field_options['form_select']) ) { |
|
45 | + if ( isset( $f->field_options['form_select'] ) && is_numeric( $f->field_options['form_select'] ) ) { |
|
46 | 46 | $linked_form = FrmDb::get_var( $wpdb->prefix . 'frm_fields', array( 'id' => $f->field_options['form_select'] ), 'form_id' ); |
47 | 47 | if ( ! in_array( $linked_form, $linked_forms ) ) { |
48 | 48 | $linked_forms[] = $linked_form; |
@@ -53,14 +53,14 @@ discard block |
||
53 | 53 | FrmAppHelper::insert_opt_html( array( 'id' => $f->id . ' show=' . $linked_field->id, 'key' => $f->field_key . ' show=' . $linked_field->field_key, 'name' => $linked_field->name, 'type' => $linked_field->type ) ); |
54 | 54 | |
55 | 55 | $ldfe = $linked_field->id; |
56 | - unset($linked_field); |
|
56 | + unset( $linked_field ); |
|
57 | 57 | } |
58 | 58 | } |
59 | 59 | } |
60 | 60 | } |
61 | 61 | $dfe = $f->id; |
62 | 62 | } |
63 | - unset($f); |
|
63 | + unset( $f ); |
|
64 | 64 | } |
65 | 65 | } ?> |
66 | 66 | </ul> |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | </li> |
85 | 85 | <?php |
86 | 86 | $col = ( $col == 'one' ) ? 'two' : 'one'; |
87 | - unset($skey, $sname); |
|
87 | + unset( $skey, $sname ); |
|
88 | 88 | } |
89 | 89 | ?> |
90 | 90 | </ul> |
@@ -106,8 +106,8 @@ discard block |
||
106 | 106 | ?> |
107 | 107 | <li> |
108 | 108 | <a href="javascript:void(0)" class="frmids alignright frm_insert_code" data-code="if <?php echo esc_attr( $f->id ) ?>]<?php esc_attr_e( 'Conditional text here', 'formidable' ) ?>[/if <?php echo esc_attr( $f->id ) ?>">[if <?php echo (int) $f->id ?>]</a> |
109 | - <a href="javascript:void(0)" class="frmkeys alignright frm_insert_code" data-code="if <?php echo esc_attr( $f->field_key ) ?>]something[/if <?php echo esc_attr( $f->field_key ) ?>">[if <?php echo FrmAppHelper::truncate($f->field_key, 10) ?>]</a> |
|
110 | - <a href="javascript:void(0)" class="frm_insert_code" data-code="<?php echo esc_attr($f->id) ?>"><?php echo FrmAppHelper::truncate($f->name, 60) ?></a> |
|
109 | + <a href="javascript:void(0)" class="frmkeys alignright frm_insert_code" data-code="if <?php echo esc_attr( $f->field_key ) ?>]something[/if <?php echo esc_attr( $f->field_key ) ?>">[if <?php echo FrmAppHelper::truncate( $f->field_key, 10 ) ?>]</a> |
|
110 | + <a href="javascript:void(0)" class="frm_insert_code" data-code="<?php echo esc_attr( $f->id ) ?>"><?php echo FrmAppHelper::truncate( $f->name, 60 ) ?></a> |
|
111 | 111 | </li> |
112 | 112 | <?php |
113 | 113 | |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | } else if ( $f->type == 'file' ) { |
117 | 117 | $file = $f; |
118 | 118 | } |
119 | - unset($f); |
|
119 | + unset( $f ); |
|
120 | 120 | } |
121 | 121 | } ?> |
122 | 122 | </ul> |
@@ -128,11 +128,11 @@ discard block |
||
128 | 128 | foreach ( $cond_shortcodes as $skey => $sname ) { |
129 | 129 | ?> |
130 | 130 | <li class="frm_col_<?php echo esc_attr( $col ) ?>"> |
131 | - <a href="javascript:void(0)" class="frmbutton button frm_insert_code" data-code="if x <?php echo esc_attr($skey) ?>][/if x"><?php echo esc_html( $sname ) ?></a> |
|
131 | + <a href="javascript:void(0)" class="frmbutton button frm_insert_code" data-code="if x <?php echo esc_attr( $skey ) ?>][/if x"><?php echo esc_html( $sname ) ?></a> |
|
132 | 132 | </li> |
133 | 133 | <?php |
134 | 134 | $col = ( $col == 'one' ) ? 'two' : 'one'; |
135 | - unset($skey, $sname); |
|
135 | + unset( $skey, $sname ); |
|
136 | 136 | } |
137 | 137 | ?> |
138 | 138 | </ul> |
@@ -151,19 +151,19 @@ discard block |
||
151 | 151 | </a> |
152 | 152 | </li> |
153 | 153 | <?php |
154 | - $col = ($col == 'one') ? 'two' : 'one'; |
|
155 | - unset($skey, $sname); |
|
154 | + $col = ( $col == 'one' ) ? 'two' : 'one'; |
|
155 | + unset( $skey, $sname ); |
|
156 | 156 | } |
157 | 157 | ?> |
158 | - <?php if ( isset($file) ) { ?> |
|
158 | + <?php if ( isset( $file ) ) { ?> |
|
159 | 159 | <li class="frm_col_<?php echo esc_attr( $col ) ?>"> |
160 | - <a href="javascript:void(0)" class="frmbutton button frm_insert_code" data-code="<?php echo esc_attr($file->id) ?> show_image=1"><?php _e( 'Show image', 'formidable' ) ?></a> |
|
160 | + <a href="javascript:void(0)" class="frmbutton button frm_insert_code" data-code="<?php echo esc_attr( $file->id ) ?> show_image=1"><?php _e( 'Show image', 'formidable' ) ?></a> |
|
161 | 161 | </li> |
162 | 162 | <li class="frm_col_<?php echo esc_attr( $col = ( $col == 'one' ? 'two' : 'one' ) ) ?>"> |
163 | - <a href="javascript:void(0)" class="frmbutton button frm_insert_code" data-code="<?php echo esc_attr($file->id) ?> show=id"><?php _e( 'Image ID', 'formidable' ) ?></a> |
|
163 | + <a href="javascript:void(0)" class="frmbutton button frm_insert_code" data-code="<?php echo esc_attr( $file->id ) ?> show=id"><?php _e( 'Image ID', 'formidable' ) ?></a> |
|
164 | 164 | </li> |
165 | 165 | <li class="frm_col_<?php echo esc_attr( $col = ( $col == 'one' ? 'two' : 'one' ) ) ?>"> |
166 | - <a href="javascript:void(0)" class="frmbutton button frm_insert_code" data-code="<?php echo esc_attr($file->id) ?> show_filename=1"><?php _e( 'Image Name', 'formidable' ) ?></a> |
|
166 | + <a href="javascript:void(0)" class="frmbutton button frm_insert_code" data-code="<?php echo esc_attr( $file->id ) ?> show_filename=1"><?php _e( 'Image Name', 'formidable' ) ?></a> |
|
167 | 167 | </li> |
168 | 168 | <?php } ?> |
169 | 169 | </ul> |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | <div class="clear"></div> |
172 | 172 | <?php |
173 | 173 | |
174 | - if ( isset($uid) && ! empty($user_fields) ) { |
|
174 | + if ( isset( $uid ) && ! empty( $user_fields ) ) { |
|
175 | 175 | $col = 'one'; ?> |
176 | 176 | <p class="howto"><?php _e( 'Insert user information', 'formidable' ) ?></p> |
177 | 177 | <ul class="frm_code_list"> |
@@ -180,14 +180,14 @@ discard block |
||
180 | 180 | <a href="javascript:void(0)" class="frmbutton button frm_insert_code" data-code="<?php echo esc_attr( $uid->id . ' show="' . $uk . '"' ) ?>"><?php echo esc_html( $uf ) ?></a> |
181 | 181 | </li> |
182 | 182 | <?php |
183 | - $col = ($col == 'one') ? 'two' : 'one'; |
|
184 | - unset($uf, $uk); |
|
183 | + $col = ( $col == 'one' ) ? 'two' : 'one'; |
|
184 | + unset( $uf, $uk ); |
|
185 | 185 | } |
186 | - unset($uid); ?> |
|
186 | + unset( $uid ); ?> |
|
187 | 187 | </ul> |
188 | 188 | <?php } |
189 | 189 | |
190 | - if ( isset($repeat_field) ) { ?> |
|
190 | + if ( isset( $repeat_field ) ) { ?> |
|
191 | 191 | <div class="clear"></div> |
192 | 192 | <p class="howto"><?php _e( 'Repeating field options', 'formidable' ) ?></p> |
193 | 193 | <ul class="frm_code_list"> |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | <?php |
199 | 199 | } |
200 | 200 | |
201 | - if ( isset($dfe) ) { ?> |
|
201 | + if ( isset( $dfe ) ) { ?> |
|
202 | 202 | |
203 | 203 | <div class="clear"></div> |
204 | 204 | <p class="howto"><?php _e( 'Dynamic field options', 'formidable' ) ?></p> |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | <li class="frm_col_one"> |
207 | 207 | <a href="javascript:void(0)" class="frmbutton button frm_insert_code" data-code="<?php echo esc_attr( $dfe . ' show="created-at"' ) ?>"><?php _e( 'Creation Date', 'formidable' ) ?></a> |
208 | 208 | </li> |
209 | - <?php if ( isset($ldfe) ) { ?> |
|
209 | + <?php if ( isset( $ldfe ) ) { ?> |
|
210 | 210 | <li class="frm_col_two"> |
211 | 211 | <a href="javascript:void(0)" class="frmbutton button frm_insert_code" data-code="<?php echo esc_attr( $dfe . ' show="' . $ldfe . '"' ) ?>"><?php _e( 'Field From Entry', 'formidable' ) ?></a> |
212 | 212 | </li> |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | <div class="submitbox"> |
6 | 6 | <div id="minor-publishing" class="frm_remove_border"> |
7 | 7 | <div class="misc-pub-section"> |
8 | - <?php do_action('frm_show_entry_publish_box', $entry); ?> |
|
8 | + <?php do_action( 'frm_show_entry_publish_box', $entry ); ?> |
|
9 | 9 | <div class="clear"></div> |
10 | 10 | </div> |
11 | 11 | <div id="misc-publishing-actions"> |
@@ -17,12 +17,12 @@ discard block |
||
17 | 17 | </div> |
18 | 18 | </div> |
19 | 19 | <div id="major-publishing-actions"> |
20 | - <?php if ( current_user_can('frm_delete_entries') ) { ?> |
|
20 | + <?php if ( current_user_can( 'frm_delete_entries' ) ) { ?> |
|
21 | 21 | <div id="delete-action"> |
22 | 22 | <a href="<?php echo esc_url( admin_url( 'admin.php?page=formidable-entries&frm_action=destroy&id=' . $id . '&form=' . $entry->form_id ) ) ?>" class="submitdelete deletion" onclick="return confirm('<?php esc_attr_e( 'Are you sure you want to delete that entry?', 'formidable' ) ?>');" title="<?php esc_attr_e( 'Delete' ) ?>"> |
23 | 23 | <?php _e( 'Delete' ) ?> |
24 | 24 | </a> |
25 | - <?php if ( ! empty($entry->post_id) ) { ?> |
|
25 | + <?php if ( ! empty( $entry->post_id ) ) { ?> |
|
26 | 26 | <a href="<?php echo esc_url( admin_url( 'admin.php?page=formidable-entries&frm_action=destroy&id=' . $id . '&form=' . $entry->form_id . '&keep_post=1' ) ) ?>" class="submitdelete deletion frm_delete_wo_post" onclick="return confirm('<?php esc_attr_e( 'Are you sure you want to delete this entry?', 'formidable' ) ?>);" title="<?php esc_attr_e( 'Delete entry but leave the post', 'formidable' ) ?>"> |
27 | 27 | <?php _e( 'Delete without Post', 'formidable' ) ?> |
28 | 28 | </a> |
@@ -30,13 +30,13 @@ discard block |
||
30 | 30 | </div> |
31 | 31 | <?php } ?> |
32 | 32 | |
33 | - <?php do_action('frm_entry_major_pub', $entry); ?> |
|
33 | + <?php do_action( 'frm_entry_major_pub', $entry ); ?> |
|
34 | 34 | <div class="clear"></div> |
35 | 35 | </div> |
36 | 36 | </div> |
37 | 37 | </div> |
38 | 38 | </div> |
39 | -<?php do_action('frm_show_entry_sidebar', $entry); |
|
40 | -FrmEntriesController::entry_sidebar($entry); |
|
39 | +<?php do_action( 'frm_show_entry_sidebar', $entry ); |
|
40 | +FrmEntriesController::entry_sidebar( $entry ); |
|
41 | 41 | ?> |
42 | 42 | </div> |
@@ -10,16 +10,16 @@ discard block |
||
10 | 10 | <div class="postbox "> |
11 | 11 | <h3 class="hndle"><span><?php _e( 'Import', 'formidable' ) ?></span></h3> |
12 | 12 | <div class="inside"> |
13 | - <p class="howto"><?php echo apply_filters('frm_upload_instructions1', __( 'Upload your Formidable XML file to import forms into this site. If your imported form key and creation date match a form on your site, that form will be updated.', 'formidable' )) ?></p> |
|
13 | + <p class="howto"><?php echo apply_filters( 'frm_upload_instructions1', __( 'Upload your Formidable XML file to import forms into this site. If your imported form key and creation date match a form on your site, that form will be updated.', 'formidable' ) ) ?></p> |
|
14 | 14 | <br/> |
15 | 15 | <form enctype="multipart/form-data" method="post"> |
16 | 16 | <input type="hidden" name="frm_action" value="import_xml" /> |
17 | - <?php wp_nonce_field('import-xml-nonce', 'import-xml'); ?> |
|
18 | - <p><label><?php echo apply_filters('frm_upload_instructions2', __( 'Choose a Formidable XML file', 'formidable' )) ?> (<?php printf(__( 'Maximum size: %s', 'formidable' ), ini_get('upload_max_filesize')) ?>)</label> |
|
17 | + <?php wp_nonce_field( 'import-xml-nonce', 'import-xml' ); ?> |
|
18 | + <p><label><?php echo apply_filters( 'frm_upload_instructions2', __( 'Choose a Formidable XML file', 'formidable' ) ) ?> (<?php printf( __( 'Maximum size: %s', 'formidable' ), ini_get( 'upload_max_filesize' ) ) ?>)</label> |
|
19 | 19 | <input type="file" name="frm_import_file" size="25" /> |
20 | 20 | </p> |
21 | 21 | |
22 | - <?php do_action('frm_csv_opts', $forms) ?> |
|
22 | + <?php do_action( 'frm_csv_opts', $forms ) ?> |
|
23 | 23 | |
24 | 24 | <p class="submit"> |
25 | 25 | <input type="submit" value="<?php esc_attr_e( 'Upload file and import', 'formidable' ) ?>" class="button-primary" /> |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | <div class="inside with_frm_style"> |
36 | 36 | <form method="post" action="<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>" id="frm_export_xml"> |
37 | 37 | <input type="hidden" name="action" value="frm_export_xml" /> |
38 | - <?php wp_nonce_field('export-xml-nonce', 'export-xml'); ?> |
|
38 | + <?php wp_nonce_field( 'export-xml-nonce', 'export-xml' ); ?> |
|
39 | 39 | |
40 | 40 | <table class="form-table"> |
41 | 41 | <tr class="form-field"> |
@@ -91,9 +91,9 @@ |
||
91 | 91 | } else if ( $form->parent_form_id ) { |
92 | 92 | echo ' ' . __( '(child)', 'formidable' ); |
93 | 93 | } |
94 | - ?></option> |
|
94 | + ?></option> |
|
95 | 95 | <?php |
96 | - } ?> |
|
96 | + } ?> |
|
97 | 97 | </select> |
98 | 98 | <p class="howto"><?php _e( 'Hold down the CTRL/Command button to select multiple forms', 'formidable' ); ?></p> |
99 | 99 | </td> |
@@ -7,15 +7,15 @@ |
||
7 | 7 | <?php |
8 | 8 | foreach ( $type as $tb_type ) { |
9 | 9 | |
10 | - if ( ! isset( $tables[ $tb_type ] ) ) { |
|
10 | + if ( ! isset( $tables[ $tb_type ] ) ) { |
|
11 | 11 | do_action( 'frm_xml_import_' . $tb_type, $args ); |
12 | - continue; |
|
13 | - } |
|
12 | + continue; |
|
13 | + } |
|
14 | 14 | |
15 | - //no records |
|
16 | - if ( ! isset( $records[ $tb_type ] ) ) { |
|
17 | - continue; |
|
18 | - } |
|
15 | + //no records |
|
16 | + if ( ! isset( $records[ $tb_type ] ) ) { |
|
17 | + continue; |
|
18 | + } |
|
19 | 19 | |
20 | 20 | $item_ids = $records[ $tb_type ]; |
21 | 21 | if ( in_array( $tb_type, array( 'styles', 'actions' ) ) ) { |
@@ -7,17 +7,17 @@ discard block |
||
7 | 7 | <?php |
8 | 8 | foreach ( $type as $tb_type ) { |
9 | 9 | |
10 | - if ( ! isset( $tables[ $tb_type ] ) ) { |
|
10 | + if ( ! isset( $tables[$tb_type] ) ) { |
|
11 | 11 | do_action( 'frm_xml_import_' . $tb_type, $args ); |
12 | 12 | continue; |
13 | 13 | } |
14 | 14 | |
15 | 15 | //no records |
16 | - if ( ! isset( $records[ $tb_type ] ) ) { |
|
16 | + if ( ! isset( $records[$tb_type] ) ) { |
|
17 | 17 | continue; |
18 | 18 | } |
19 | 19 | |
20 | - $item_ids = $records[ $tb_type ]; |
|
20 | + $item_ids = $records[$tb_type]; |
|
21 | 21 | if ( in_array( $tb_type, array( 'styles', 'actions' ) ) ) { |
22 | 22 | include( dirname( __FILE__ ) . '/posts_xml.php' ); |
23 | 23 | } else if ( file_exists( dirname( __FILE__ ) . '/' . $tb_type . '_xml.php' ) ) { |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | include( FrmAppHelper::plugin_path() . '/pro/classes/views/xml/' . $tb_type . '_xml.php' ); |
27 | 27 | } |
28 | 28 | |
29 | - unset( $item_ids, $records[ $tb_type ], $tb_type ); |
|
29 | + unset( $item_ids, $records[$tb_type], $tb_type ); |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | ?> |
@@ -64,7 +64,7 @@ |
||
64 | 64 | <a href="<?php echo esc_url( admin_url( 'admin.php?page=formidable-styles&frm_action=destroy&id=' . $style->ID ) ); ?>" id="frm_delete_style" class="submitdelete deletion" onclick="return confirm('<?php esc_attr_e( 'Are you sure you want to delete that style?', 'formidable' ) ?>')"><?php _e( 'Delete Style', 'formidable' ) ?></a> |
65 | 65 | <?php } ?> |
66 | 66 | <?php |
67 | - if ( $style->ID ) { |
|
67 | + if ( $style->ID ) { |
|
68 | 68 | echo '<span class="howto"><span>.frm_style_' . esc_attr( $style->post_name ) . '</span></span>'; |
69 | 69 | } ?> |
70 | 70 | <div class="publishing-action"> |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | <form id="frm_styling_form" action="" name="frm_styling_form" method="post"> |
10 | 10 | <input type="hidden" name="ID" value="<?php echo esc_attr( $style->ID ) ?>" /> |
11 | 11 | <input type="hidden" name="frm_action" value="save" /> |
12 | - <textarea name="<?php echo esc_attr( $frm_style->get_field_name('custom_css') ) ?>" class="frm_hidden"><?php echo FrmAppHelper::esc_textarea( $style->post_content['custom_css'] ) ?></textarea> |
|
12 | + <textarea name="<?php echo esc_attr( $frm_style->get_field_name( 'custom_css' ) ) ?>" class="frm_hidden"><?php echo FrmAppHelper::esc_textarea( $style->post_content['custom_css'] ) ?></textarea> |
|
13 | 13 | <?php wp_nonce_field( 'frm_style_nonce', 'frm_style' ); ?> |
14 | 14 | <?php FrmTipsHelper::pro_tip( 'get_styling_tip', 'p' ); ?> |
15 | 15 | <div id="nav-menus-frame"> |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | |
19 | 19 | <div class="styling_settings"> |
20 | 20 | <input type="hidden" name="style_name" value="frm_style_<?php echo esc_attr( $style->post_name ) ?>" /> |
21 | - <?php FrmStylesController::do_accordion_sections( FrmStylesController::$screen, 'side', compact('style', 'frm_style') ); ?> |
|
21 | + <?php FrmStylesController::do_accordion_sections( FrmStylesController::$screen, 'side', compact( 'style', 'frm_style' ) ); ?> |
|
22 | 22 | </div> |
23 | 23 | |
24 | 24 | </div><!-- /#menu-settings-column --> |
@@ -31,17 +31,17 @@ discard block |
||
31 | 31 | <div class="major-publishing-actions"> |
32 | 32 | <label class="menu-name-label howto open-label" for="menu-name"> |
33 | 33 | <span><?php _e( 'Style Name', 'formidable' ) ?></span> |
34 | - <input id="menu-name" name="<?php echo esc_attr( $frm_style->get_field_name('post_title', '') ); ?>" type="text" class="menu-name regular-text menu-item-textbox" title="<?php esc_attr_e( 'Enter style name here', 'formidable' ) ?>" value="<?php echo esc_attr( $style->post_title ) ?>" /> |
|
34 | + <input id="menu-name" name="<?php echo esc_attr( $frm_style->get_field_name( 'post_title', '' ) ); ?>" type="text" class="menu-name regular-text menu-item-textbox" title="<?php esc_attr_e( 'Enter style name here', 'formidable' ) ?>" value="<?php echo esc_attr( $style->post_title ) ?>" /> |
|
35 | 35 | </label> |
36 | 36 | |
37 | - <input name="prev_menu_order" type="hidden" value="<?php echo esc_attr($style->menu_order) ?>" /> |
|
37 | + <input name="prev_menu_order" type="hidden" value="<?php echo esc_attr( $style->menu_order ) ?>" /> |
|
38 | 38 | <label class="menu-name-label howto open-label default-style-box" for="menu_order"> |
39 | 39 | <span> |
40 | 40 | <?php if ( $style->menu_order ) { ?> |
41 | - <input name="<?php echo esc_attr( $frm_style->get_field_name('menu_order', '') ); ?>" type="hidden" value="1" /> |
|
42 | - <input id="menu_order" disabled="disabled" type="checkbox" value="1" <?php checked($style->menu_order, 1) ?> /> |
|
41 | + <input name="<?php echo esc_attr( $frm_style->get_field_name( 'menu_order', '' ) ); ?>" type="hidden" value="1" /> |
|
42 | + <input id="menu_order" disabled="disabled" type="checkbox" value="1" <?php checked( $style->menu_order, 1 ) ?> /> |
|
43 | 43 | <?php } else { ?> |
44 | - <input id="menu_order" name="<?php echo esc_attr( $frm_style->get_field_name('menu_order', '') ); ?>" type="checkbox" value="1" <?php checked($style->menu_order, 1) ?> /> |
|
44 | + <input id="menu_order" name="<?php echo esc_attr( $frm_style->get_field_name( 'menu_order', '' ) ); ?>" type="checkbox" value="1" <?php checked( $style->menu_order, 1 ) ?> /> |
|
45 | 45 | <?php } ?> |
46 | 46 | <?php _e( 'Make default style', 'formidable' ) ?></span> |
47 | 47 | </label> |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if ( ! empty($form_id) ) { |
|
2 | +if ( ! empty( $form_id ) ) { |
|
3 | 3 | ?> |
4 | 4 | <h4 class="frm_left_label"><?php _e( 'Select a form:', 'formidable' ) ?></h4> |
5 | 5 | <?php FrmFormsHelper::forms_dropdown( 'frmsc_' . $shortcode . '_' . $form_id ); ?> |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | <?php |
8 | 8 | } |
9 | 9 | |
10 | -if ( ! empty($opts) ) { ?> |
|
10 | +if ( ! empty( $opts ) ) { ?> |
|
11 | 11 | <h4><?php _e( 'Options', 'formidable' ) ?></h4> |
12 | 12 | <ul> |
13 | 13 | <?php |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | <ul> |
13 | 13 | <?php |
14 | 14 | foreach ( $opts as $opt => $val ) { |
15 | - if ( isset( $val['type'] ) && 'text' == $val['type'] ) { ?> |
|
15 | + if ( isset( $val['type'] ) && 'text' == $val['type'] ) { ?> |
|
16 | 16 | <li> |
17 | 17 | <label class="setting" for="frmsc_<?php echo esc_attr( $shortcode . '_' . $opt ) ?>"> |
18 | 18 | <span><?php echo esc_html( $val['label'] ) ?></span> |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | </label> |
21 | 21 | </li> |
22 | 22 | <?php |
23 | - } else if ( isset( $val['type'] ) && 'select' == $val['type'] ) { ?> |
|
23 | + } else if ( isset( $val['type'] ) && 'select' == $val['type'] ) { ?> |
|
24 | 24 | <li> |
25 | 25 | <label class="setting" for="frmsc_<?php echo esc_attr( $shortcode . '_' . $opt ) ?>"> |
26 | 26 | <span><?php echo esc_html( $val['label'] ) ?></span> |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | </label> |
33 | 33 | </li> |
34 | 34 | <?php |
35 | - } else { ?> |
|
35 | + } else { ?> |
|
36 | 36 | <li> |
37 | 37 | <label class="setting" for="frmsc_<?php echo esc_attr( $shortcode . '_' . $opt ) ?>"> |
38 | 38 | <input type="checkbox" id="frmsc_<?php echo esc_attr( $shortcode . '_' . $opt ) ?>" value="<?php echo esc_attr( $val['val'] ) ?>" /> |
@@ -8,12 +8,12 @@ |
||
8 | 8 | <div id="post-body" class="metabox-holder columns-2"> |
9 | 9 | <div id="post-body-content"> |
10 | 10 | <?php |
11 | - if ( ! $values['is_template'] ) { |
|
12 | - FrmAppController::get_form_nav($id, true, 'hide'); |
|
13 | - } |
|
11 | + if ( ! $values['is_template'] ) { |
|
12 | + FrmAppController::get_form_nav($id, true, 'hide'); |
|
13 | + } |
|
14 | 14 | require( FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php' ); |
15 | 15 | |
16 | - ?> |
|
16 | + ?> |
|
17 | 17 | |
18 | 18 | <div class="frm_form_builder with_frm_style"> |
19 | 19 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | <div id="post-body-content"> |
10 | 10 | <?php |
11 | 11 | if ( ! $values['is_template'] ) { |
12 | - FrmAppController::get_form_nav($id, true, 'hide'); |
|
12 | + FrmAppController::get_form_nav( $id, true, 'hide' ); |
|
13 | 13 | } |
14 | 14 | require( FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php' ); |
15 | 15 |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | <option value="message" <?php selected($values['success_action'], 'message') ?>><?php _e( 'Show Message', 'formidable' )?></option> |
62 | 62 | <?php if ( FrmAppHelper::pro_is_installed() ) { ?> |
63 | 63 | <option value="redirect" <?php selected($values['success_action'], 'redirect'); |
64 | - ?>><?php _e( 'Redirect to URL', 'formidable' ) ?></option> |
|
64 | + ?>><?php _e( 'Redirect to URL', 'formidable' ) ?></option> |
|
65 | 65 | <option value="page" <?php selected($values['success_action'], 'page'); |
66 | 66 | ?>><?php _e( 'Show Page Content', 'formidable' ) ?></option> |
67 | 67 | <?php } else { ?> |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | <?php _e( '(Premium feature)', 'formidable' ); ?> |
72 | 72 | </option> |
73 | 73 | <option value="page" disabled="disabled" <?php selected($values['success_action'], 'page'); |
74 | - ?>> |
|
74 | + ?>> |
|
75 | 75 | <?php _e( 'Show Page Content', 'formidable' ); ?> |
76 | 76 | <?php _e( '(Premium feature)', 'formidable' ); ?> |
77 | 77 | </option> |
@@ -193,17 +193,17 @@ discard block |
||
193 | 193 | <ul class="frm_actions_list"> |
194 | 194 | <?php |
195 | 195 | |
196 | - //For each add-on, add an li, class, and javascript function. If active, add an additional class. |
|
197 | - foreach ( $action_controls as $action_control ) { |
|
198 | - ?> |
|
196 | + //For each add-on, add an li, class, and javascript function. If active, add an additional class. |
|
197 | + foreach ( $action_controls as $action_control ) { |
|
198 | + ?> |
|
199 | 199 | <li><a href="javascript:void(0)" class="frm_<?php echo esc_attr( $action_control->id_base ) ?>_action frm_bstooltip <?php |
200 | - echo ( isset($action_control->action_options['active']) && $action_control->action_options['active']) ? 'frm_active_action ' : 'frm_inactive_action '; |
|
201 | - echo esc_attr( $action_control->action_options['classes'] ); |
|
202 | - ?>" title="<?php echo esc_attr($action_control->action_options['tooltip']) ?>" data-limit="<?php echo isset($action_control->action_options['limit']) ? esc_attr( $action_control->action_options['limit'] ) : '99' ?>" data-actiontype="<?php echo esc_attr($action_control->id_base) ?>"></a></li> |
|
200 | + echo ( isset($action_control->action_options['active']) && $action_control->action_options['active']) ? 'frm_active_action ' : 'frm_inactive_action '; |
|
201 | + echo esc_attr( $action_control->action_options['classes'] ); |
|
202 | + ?>" title="<?php echo esc_attr($action_control->action_options['tooltip']) ?>" data-limit="<?php echo isset($action_control->action_options['limit']) ? esc_attr( $action_control->action_options['limit'] ) : '99' ?>" data-actiontype="<?php echo esc_attr($action_control->id_base) ?>"></a></li> |
|
203 | 203 | <?php |
204 | - unset($actions_icon); |
|
205 | - } |
|
206 | - ?> |
|
204 | + unset($actions_icon); |
|
205 | + } |
|
206 | + ?> |
|
207 | 207 | </ul> |
208 | 208 | </div> |
209 | 209 | <div class="frm_no_actions"> |
@@ -235,9 +235,9 @@ discard block |
||
235 | 235 | <p><label><?php echo esc_html( $field['name'] ) ?></label> |
236 | 236 | <textarea name="field_options[custom_html_<?php echo esc_attr( $field['id'] ) ?>]" rows="7" id="custom_html_<?php echo esc_attr( $field['id'] ) ?>" class="field_custom_html frm_long_input"><?php echo FrmAppHelper::esc_textarea($field['custom_html']) ?></textarea></p> |
237 | 237 | <?php } |
238 | - unset($field); |
|
239 | - } |
|
240 | - } ?> |
|
238 | + unset($field); |
|
239 | + } |
|
240 | + } ?> |
|
241 | 241 | </div> |
242 | 242 | |
243 | 243 | <p><label><?php _e( 'After Fields', 'formidable' ) ?></label> |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | call_user_func( array( $section['class'], $section['function'] ), $values ); |
260 | 260 | } else { |
261 | 261 | call_user_func( ( isset( $section['function'] ) ? $section['function'] : $section ), $values ); |
262 | - } ?> |
|
262 | + } ?> |
|
263 | 263 | </div> |
264 | 264 | <?php } ?> |
265 | 265 |
@@ -26,9 +26,9 @@ discard block |
||
26 | 26 | <div class="contextual-help-tabs"> |
27 | 27 | <ul class="frm-category-tabs frm-form-setting-tabs"> |
28 | 28 | <?php $a = FrmAppHelper::simple_get( 't', 'sanitize_title', 'advanced_settings' ); ?> |
29 | - <li <?php echo ($a == 'advanced_settings') ? 'class="tabs active"' : '' ?>><a href="#advanced_settings"><?php _e( 'General', 'formidable' ) ?></a></li> |
|
30 | - <li <?php echo ($a == 'email_settings') ? 'class="tabs active"' : '' ?>><a href="#email_settings"><?php _e( 'Form Actions', 'formidable' ); ?></a></li> |
|
31 | - <li <?php echo ($a == 'html_settings') ? 'class="tabs active"' : '' ?>><a href="#html_settings"><?php _e( 'Customize HTML', 'formidable' ) ?></a></li> |
|
29 | + <li <?php echo ( $a == 'advanced_settings' ) ? 'class="tabs active"' : '' ?>><a href="#advanced_settings"><?php _e( 'General', 'formidable' ) ?></a></li> |
|
30 | + <li <?php echo ( $a == 'email_settings' ) ? 'class="tabs active"' : '' ?>><a href="#email_settings"><?php _e( 'Form Actions', 'formidable' ); ?></a></li> |
|
31 | + <li <?php echo ( $a == 'html_settings' ) ? 'class="tabs active"' : '' ?>><a href="#html_settings"><?php _e( 'Customize HTML', 'formidable' ) ?></a></li> |
|
32 | 32 | <?php foreach ( $sections as $key => $section ) { |
33 | 33 | if ( isset( $section['name'] ) ) { |
34 | 34 | $sec_name = $section['name']; |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | <?php } ?> |
43 | 43 | </ul> |
44 | 44 | </div> |
45 | - <div class="advanced_settings tabs-panel <?php echo ($a == 'advanced_settings') ? 'frm_block' : 'frm_hidden' ?>"> |
|
45 | + <div class="advanced_settings tabs-panel <?php echo ( $a == 'advanced_settings' ) ? 'frm_block' : 'frm_hidden' ?>"> |
|
46 | 46 | <?php FrmTipsHelper::pro_tip( 'get_form_settings_tip', 'p' ); ?> |
47 | 47 | |
48 | 48 | <h3 class="frm_first_h3"><?php _e( 'On Submit', 'formidable' ); ?> |
@@ -57,19 +57,19 @@ discard block |
||
57 | 57 | <tr> |
58 | 58 | <td class="frm_175_width"> |
59 | 59 | <select name="options[success_action]" id="success_action"> |
60 | - <option value="message" <?php selected($values['success_action'], 'message') ?>><?php _e( 'Show Message', 'formidable' )?></option> |
|
60 | + <option value="message" <?php selected( $values['success_action'], 'message' ) ?>><?php _e( 'Show Message', 'formidable' )?></option> |
|
61 | 61 | <?php if ( FrmAppHelper::pro_is_installed() ) { ?> |
62 | - <option value="redirect" <?php selected($values['success_action'], 'redirect'); |
|
62 | + <option value="redirect" <?php selected( $values['success_action'], 'redirect' ); |
|
63 | 63 | ?>><?php _e( 'Redirect to URL', 'formidable' ) ?></option> |
64 | - <option value="page" <?php selected($values['success_action'], 'page'); |
|
64 | + <option value="page" <?php selected( $values['success_action'], 'page' ); |
|
65 | 65 | ?>><?php _e( 'Show Page Content', 'formidable' ) ?></option> |
66 | 66 | <?php } else { ?> |
67 | - <option value="redirect" disabled="disabled" <?php selected($values['success_action'], 'redirect'); |
|
67 | + <option value="redirect" disabled="disabled" <?php selected( $values['success_action'], 'redirect' ); |
|
68 | 68 | ?>> |
69 | 69 | <?php _e( 'Redirect to URL', 'formidable' ); ?> |
70 | 70 | <?php _e( '(Premium feature)', 'formidable' ); ?> |
71 | 71 | </option> |
72 | - <option value="page" disabled="disabled" <?php selected($values['success_action'], 'page'); |
|
72 | + <option value="page" disabled="disabled" <?php selected( $values['success_action'], 'page' ); |
|
73 | 73 | ?>> |
74 | 74 | <?php _e( 'Show Page Content', 'formidable' ); ?> |
75 | 75 | <?php _e( '(Premium feature)', 'formidable' ); ?> |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | </select> |
79 | 79 | </td> |
80 | 80 | <td> |
81 | - <span class="success_action_redirect_box success_action_box<?php echo ($values['success_action'] == 'redirect') ? '' : ' frm_hidden'; ?>"> |
|
81 | + <span class="success_action_redirect_box success_action_box<?php echo ( $values['success_action'] == 'redirect' ) ? '' : ' frm_hidden'; ?>"> |
|
82 | 82 | <input type="text" name="options[success_url]" id="success_url" value="<?php |
83 | 83 | if ( isset( $values['success_url'] ) ) { |
84 | 84 | echo esc_attr( $values['success_url'] ); |
@@ -86,23 +86,23 @@ discard block |
||
86 | 86 | </span> |
87 | 87 | |
88 | 88 | <?php if ( FrmAppHelper::pro_is_installed() ) { ?> |
89 | - <span class="success_action_page_box success_action_box<?php echo ($values['success_action'] == 'page') ? '' : ' frm_hidden'; ?>"> |
|
89 | + <span class="success_action_page_box success_action_box<?php echo ( $values['success_action'] == 'page' ) ? '' : ' frm_hidden'; ?>"> |
|
90 | 90 | <label><?php _e( 'Use Content from Page', 'formidable' ) ?></label> |
91 | 91 | <?php FrmAppHelper::wp_pages_dropdown( 'options[success_page_id]', $values['success_page_id'] ) ?> |
92 | 92 | </span> |
93 | 93 | <?php } ?> |
94 | 94 | </td> |
95 | 95 | </tr> |
96 | - <tr class="frm_show_form_opt success_action_message_box success_action_box<?php echo ($values['success_action'] == 'message') ? '' : ' frm_hidden'; ?>"> |
|
96 | + <tr class="frm_show_form_opt success_action_message_box success_action_box<?php echo ( $values['success_action'] == 'message' ) ? '' : ' frm_hidden'; ?>"> |
|
97 | 97 | <td colspan="2"> |
98 | 98 | <label for="show_form"><input type="checkbox" name="options[show_form]" id="show_form" value="1" <?php checked( $values['show_form'], 1 ) ?> /> <?php _e( 'Show the form with the confirmation message', 'formidable' ) ?></label> |
99 | 99 | </td> |
100 | 100 | </tr> |
101 | 101 | <tr> |
102 | - <td colspan="2"><label for="no_save"><input type="checkbox" name="options[no_save]" id="no_save" value="1" <?php checked($values['no_save'], 1); ?> /> <?php _e( 'Do not store entries submitted from this form', 'formidable' ) ?></label> |
|
102 | + <td colspan="2"><label for="no_save"><input type="checkbox" name="options[no_save]" id="no_save" value="1" <?php checked( $values['no_save'], 1 ); ?> /> <?php _e( 'Do not store entries submitted from this form', 'formidable' ) ?></label> |
|
103 | 103 | </td> |
104 | 104 | </tr> |
105 | - <?php if ( function_exists( 'akismet_http_post') ) { ?> |
|
105 | + <?php if ( function_exists( 'akismet_http_post' ) ) { ?> |
|
106 | 106 | <tr> |
107 | 107 | <td colspan="2"><?php _e( 'Use Akismet to check entries for spam for', 'formidable' ) ?> |
108 | 108 | <select name="options[akismet]"> |
@@ -128,11 +128,11 @@ discard block |
||
128 | 128 | <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Recommended for long forms.', 'formidable' ) ?>" ></span> |
129 | 129 | </td> |
130 | 130 | </tr> |
131 | - <?php do_action('frm_add_form_ajax_options', $values); ?> |
|
131 | + <?php do_action( 'frm_add_form_ajax_options', $values ); ?> |
|
132 | 132 | </table> |
133 | 133 | |
134 | 134 | <!--Permissions Section--> |
135 | - <?php do_action('frm_add_form_perm_options', $values); ?> |
|
135 | + <?php do_action( 'frm_add_form_perm_options', $values ); ?> |
|
136 | 136 | |
137 | 137 | <!--Styling & Buttons Section--> |
138 | 138 | <h3><?php _e( 'Styling & Buttons', 'formidable' ) ?> |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | </tr> |
154 | 154 | <tr> |
155 | 155 | <td><label><?php _e( 'Submit Button Text', 'formidable' ) ?></label></td> |
156 | - <td><input type="text" name="options[submit_value]" value="<?php echo esc_attr($values['submit_value']); ?>" /></td> |
|
156 | + <td><input type="text" name="options[submit_value]" value="<?php echo esc_attr( $values['submit_value'] ); ?>" /></td> |
|
157 | 157 | </tr> |
158 | 158 | <?php do_action( 'frm_add_form_button_options', $values ); ?> |
159 | 159 | </table> |
@@ -163,27 +163,27 @@ discard block |
||
163 | 163 | <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Set up your confirmation messages.', 'formidable' ) ?>" ></span> |
164 | 164 | </h3> |
165 | 165 | <table class="form-table"> |
166 | - <tr class="success_action_message_box success_action_box<?php echo ($values['success_action'] == 'message') ? '' : ' frm_hidden'; ?>"> |
|
166 | + <tr class="success_action_message_box success_action_box<?php echo ( $values['success_action'] == 'message' ) ? '' : ' frm_hidden'; ?>"> |
|
167 | 167 | <td> |
168 | 168 | <div><?php _e( 'On Submit', 'formidable' ) ?></div> |
169 | - <textarea id="success_msg" name="options[success_msg]" cols="50" rows="2" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea($values['success_msg']); ?></textarea> |
|
169 | + <textarea id="success_msg" name="options[success_msg]" cols="50" rows="2" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea( $values['success_msg'] ); ?></textarea> |
|
170 | 170 | </td> |
171 | 171 | </tr> |
172 | - <?php do_action('frm_add_form_msg_options', $values); ?> |
|
172 | + <?php do_action( 'frm_add_form_msg_options', $values ); ?> |
|
173 | 173 | </table> |
174 | 174 | |
175 | 175 | <!--Misc Section--> |
176 | 176 | <?php if ( has_action( 'frm_additional_form_options' ) ) { ?> |
177 | 177 | <h3><?php _e( 'Miscellaneous', 'formidable' ); ?></h3> |
178 | 178 | <table class="form-table"> |
179 | - <?php do_action('frm_additional_form_options', $values); ?> |
|
179 | + <?php do_action( 'frm_additional_form_options', $values ); ?> |
|
180 | 180 | </table> |
181 | 181 | <?php } ?> |
182 | 182 | |
183 | 183 | </div> |
184 | 184 | |
185 | 185 | |
186 | - <div id="frm_notification_settings" class="frm_email_settings email_settings tabs-panel widgets-holder-wrap <?php echo ($a == 'email_settings') ? ' frm_block' : ' frm_hidden'; ?>"> |
|
186 | + <div id="frm_notification_settings" class="frm_email_settings email_settings tabs-panel widgets-holder-wrap <?php echo ( $a == 'email_settings' ) ? ' frm_block' : ' frm_hidden'; ?>"> |
|
187 | 187 | <?php FrmTipsHelper::pro_tip( 'get_form_action_tip', 'p' ); ?> |
188 | 188 | <div id="frm_email_addon_menu" class="manage-menus"> |
189 | 189 | <h3><?php _e( 'Add New Action', 'formidable' ) ?></h3> |
@@ -194,11 +194,11 @@ discard block |
||
194 | 194 | foreach ( $action_controls as $action_control ) { |
195 | 195 | ?> |
196 | 196 | <li><a href="javascript:void(0)" class="frm_<?php echo esc_attr( $action_control->id_base ) ?>_action frm_bstooltip <?php |
197 | - echo ( isset($action_control->action_options['active']) && $action_control->action_options['active']) ? 'frm_active_action ' : 'frm_inactive_action '; |
|
197 | + echo ( isset( $action_control->action_options['active'] ) && $action_control->action_options['active'] ) ? 'frm_active_action ' : 'frm_inactive_action '; |
|
198 | 198 | echo esc_attr( $action_control->action_options['classes'] ); |
199 | - ?>" title="<?php echo esc_attr($action_control->action_options['tooltip']) ?>" data-limit="<?php echo isset($action_control->action_options['limit']) ? esc_attr( $action_control->action_options['limit'] ) : '99' ?>" data-actiontype="<?php echo esc_attr($action_control->id_base) ?>"></a></li> |
|
199 | + ?>" title="<?php echo esc_attr( $action_control->action_options['tooltip'] ) ?>" data-limit="<?php echo isset( $action_control->action_options['limit'] ) ? esc_attr( $action_control->action_options['limit'] ) : '99' ?>" data-actiontype="<?php echo esc_attr( $action_control->id_base ) ?>"></a></li> |
|
200 | 200 | <?php |
201 | - unset($actions_icon); |
|
201 | + unset( $actions_icon ); |
|
202 | 202 | } |
203 | 203 | ?> |
204 | 204 | </ul> |
@@ -210,19 +210,19 @@ discard block |
||
210 | 210 | <?php _e( 'Click an action to add it to this form', 'formidable' ) ?> |
211 | 211 | </div> |
212 | 212 | </div> |
213 | - <?php FrmFormActionsController::list_actions($form, $values); ?> |
|
213 | + <?php FrmFormActionsController::list_actions( $form, $values ); ?> |
|
214 | 214 | </div> |
215 | 215 | |
216 | - <div id="html_settings" class="tabs-panel <?php echo ($a == 'html_settings') ? ' frm_block' : ' frm_hidden'; ?>"> |
|
216 | + <div id="html_settings" class="tabs-panel <?php echo ( $a == 'html_settings' ) ? ' frm_block' : ' frm_hidden'; ?>"> |
|
217 | 217 | |
218 | 218 | <div class="frm_field_html_box frm_top_container"> |
219 | 219 | <p><label><?php _e( 'Form Classes', 'formidable' ) ?></label> |
220 | - <input type="text" name="options[form_class]" value="<?php echo esc_attr($values['form_class']) ?>" /> |
|
220 | + <input type="text" name="options[form_class]" value="<?php echo esc_attr( $values['form_class'] ) ?>" /> |
|
221 | 221 | </p> |
222 | 222 | <div class="clear"></div> |
223 | 223 | |
224 | 224 | <p><label><?php _e( 'Before Fields', 'formidable' ) ?></label> |
225 | - <textarea name="options[before_html]" rows="4" id="before_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea($values['before_html']) ?></textarea></p> |
|
225 | + <textarea name="options[before_html]" rows="4" id="before_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea( $values['before_html'] ) ?></textarea></p> |
|
226 | 226 | |
227 | 227 | <div id="add_html_fields"> |
228 | 228 | <?php |
@@ -230,18 +230,18 @@ discard block |
||
230 | 230 | foreach ( $values['fields'] as $field ) { |
231 | 231 | if ( apply_filters( 'frm_show_custom_html', true, $field['type'] ) ) { ?> |
232 | 232 | <p><label><?php echo esc_html( $field['name'] ) ?></label> |
233 | - <textarea name="field_options[custom_html_<?php echo esc_attr( $field['id'] ) ?>]" rows="7" id="custom_html_<?php echo esc_attr( $field['id'] ) ?>" class="field_custom_html frm_long_input"><?php echo FrmAppHelper::esc_textarea($field['custom_html']) ?></textarea></p> |
|
233 | + <textarea name="field_options[custom_html_<?php echo esc_attr( $field['id'] ) ?>]" rows="7" id="custom_html_<?php echo esc_attr( $field['id'] ) ?>" class="field_custom_html frm_long_input"><?php echo FrmAppHelper::esc_textarea( $field['custom_html'] ) ?></textarea></p> |
|
234 | 234 | <?php } |
235 | - unset($field); |
|
235 | + unset( $field ); |
|
236 | 236 | } |
237 | 237 | } ?> |
238 | 238 | </div> |
239 | 239 | |
240 | 240 | <p><label><?php _e( 'After Fields', 'formidable' ) ?></label> |
241 | - <textarea name="options[after_html]" rows="3" id="after_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea($values['after_html']) ?></textarea></p> |
|
241 | + <textarea name="options[after_html]" rows="3" id="after_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea( $values['after_html'] ) ?></textarea></p> |
|
242 | 242 | |
243 | 243 | <p><label><?php _e( 'Submit Button', 'formidable' ) ?></label> |
244 | - <textarea name="options[submit_html]" rows="3" id="submit_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea($values['submit_html']) ?></textarea></p> |
|
244 | + <textarea name="options[submit_html]" rows="3" id="submit_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea( $values['submit_html'] ) ?></textarea></p> |
|
245 | 245 | </div> |
246 | 246 | </div> |
247 | 247 | |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | </div> |
261 | 261 | <?php } ?> |
262 | 262 | |
263 | - <?php do_action('frm_add_form_option_section', $values); ?> |
|
263 | + <?php do_action( 'frm_add_form_option_section', $values ); ?> |
|
264 | 264 | <div class="clear"></div> |
265 | 265 | </div> |
266 | 266 | </div> |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <div id="postbox-container-1" class="postbox-container"> |
2 | 2 | <?php |
3 | 3 | |
4 | - if ( ! isset($hide_preview) || ! $hide_preview ) { |
|
4 | + if ( ! isset($hide_preview) || ! $hide_preview ) { |
|
5 | 5 | include( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/_publish_box.php' ); |
6 | - } |
|
6 | + } |
|
7 | 7 | |
8 | 8 | include( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/mb_insert_fields.php' ); |
9 | 9 | |
10 | - ?> |
|
10 | + ?> |
|
11 | 11 | </div> |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <div id="postbox-container-1" class="postbox-container"> |
2 | 2 | <?php |
3 | 3 | |
4 | - if ( ! isset($hide_preview) || ! $hide_preview ) { |
|
4 | + if ( ! isset( $hide_preview ) || ! $hide_preview ) { |
|
5 | 5 | include( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/_publish_box.php' ); |
6 | 6 | } |
7 | 7 |