@@ -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> |
@@ -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> |
@@ -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,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> |
@@ -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 |
@@ -17,14 +17,14 @@ |
||
17 | 17 | <textarea name="<?php echo esc_attr( $frm_style->get_field_name('custom_css') ) ?>" id="frm_custom_css_box" class="hide-if-js"><?php echo FrmAppHelper::esc_textarea($style->post_content['custom_css']) ?></textarea> |
18 | 18 | |
19 | 19 | <?php |
20 | - foreach ( $style->post_content as $k => $v ) { |
|
21 | - if ( $k == 'custom_css' ) { |
|
22 | - continue; |
|
23 | - } |
|
24 | - ?> |
|
20 | + foreach ( $style->post_content as $k => $v ) { |
|
21 | + if ( $k == 'custom_css' ) { |
|
22 | + continue; |
|
23 | + } |
|
24 | + ?> |
|
25 | 25 | <input type="hidden" value="<?php echo esc_attr($v) ?>" name="<?php echo esc_attr( $frm_style->get_field_name( $k ) ) ?>" /> |
26 | 26 | <?php |
27 | - } ?> |
|
27 | + } ?> |
|
28 | 28 | <p class="button-controls"><input type="submit" name="nav-menu-locations" id="nav-menu-locations" class="button button-primary left" value="<?php esc_attr_e( 'Save Changes', 'formidable' ) ?>" /></p> |
29 | 29 | |
30 | 30 | </form> |
@@ -19,14 +19,14 @@ discard block |
||
19 | 19 | |
20 | 20 | <tbody class="menu-locations"> |
21 | 21 | <?php |
22 | - if ( $forms ) { |
|
23 | - foreach ( $forms as $form ) { |
|
24 | - $this_style = isset($form->options['custom_style']) ? (int) $form->options['custom_style'] : 1; |
|
25 | - if ( 1 == $this_style ) { |
|
26 | - // use the default style |
|
27 | - $this_style = $default_style->ID; |
|
28 | - } |
|
29 | - ?> |
|
22 | + if ( $forms ) { |
|
23 | + foreach ( $forms as $form ) { |
|
24 | + $this_style = isset($form->options['custom_style']) ? (int) $form->options['custom_style'] : 1; |
|
25 | + if ( 1 == $this_style ) { |
|
26 | + // use the default style |
|
27 | + $this_style = $default_style->ID; |
|
28 | + } |
|
29 | + ?> |
|
30 | 30 | <tr id="menu-locations-row"> |
31 | 31 | <td class="menu-location-title"><strong><?php echo empty($form->name) ? __( '(no title)') : $form->name ?></strong></td> |
32 | 32 | <td class="menu-location-menus"> |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | </td><!-- .menu-location-menus --> |
42 | 42 | </tr><!-- #menu-locations-row --> |
43 | 43 | <?php |
44 | - } |
|
44 | + } |
|
45 | 45 | } else { |
46 | 46 | ?> |
47 | 47 | <tr> |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | if ( ! $item_ids ) { |
4 | - return; |
|
4 | + return; |
|
5 | 5 | } |
6 | 6 | |
7 | 7 | // fetch 20 posts at a time rather than loading the entire table into memory |
@@ -45,6 +45,6 @@ discard block |
||
45 | 45 | <?php } ?> |
46 | 46 | </form> |
47 | 47 | <?php |
48 | - unset( $fields ); |
|
48 | + unset( $fields ); |
|
49 | 49 | } |
50 | 50 | } |
@@ -235,50 +235,50 @@ discard block |
||
235 | 235 | return $line; |
236 | 236 | } |
237 | 237 | |
238 | - $convmap = false; |
|
238 | + $convmap = false; |
|
239 | 239 | |
240 | 240 | switch ( self::$to_encoding ) { |
241 | - case 'macintosh': |
|
241 | + case 'macintosh': |
|
242 | 242 | // this map was derived from the differences between the MacRoman and UTF-8 Charsets |
243 | 243 | // Reference: |
244 | 244 | // - http://www.alanwood.net/demos/macroman.html |
245 | - $convmap = array( |
|
246 | - 256, 304, 0, 0xffff, |
|
247 | - 306, 337, 0, 0xffff, |
|
248 | - 340, 375, 0, 0xffff, |
|
249 | - 377, 401, 0, 0xffff, |
|
250 | - 403, 709, 0, 0xffff, |
|
251 | - 712, 727, 0, 0xffff, |
|
252 | - 734, 936, 0, 0xffff, |
|
253 | - 938, 959, 0, 0xffff, |
|
254 | - 961, 8210, 0, 0xffff, |
|
255 | - 8213, 8215, 0, 0xffff, |
|
256 | - 8219, 8219, 0, 0xffff, |
|
257 | - 8227, 8229, 0, 0xffff, |
|
258 | - 8231, 8239, 0, 0xffff, |
|
259 | - 8241, 8248, 0, 0xffff, |
|
260 | - 8251, 8259, 0, 0xffff, |
|
261 | - 8261, 8363, 0, 0xffff, |
|
262 | - 8365, 8481, 0, 0xffff, |
|
263 | - 8483, 8705, 0, 0xffff, |
|
264 | - 8707, 8709, 0, 0xffff, |
|
265 | - 8711, 8718, 0, 0xffff, |
|
266 | - 8720, 8720, 0, 0xffff, |
|
267 | - 8722, 8729, 0, 0xffff, |
|
268 | - 8731, 8733, 0, 0xffff, |
|
269 | - 8735, 8746, 0, 0xffff, |
|
270 | - 8748, 8775, 0, 0xffff, |
|
271 | - 8777, 8799, 0, 0xffff, |
|
272 | - 8801, 8803, 0, 0xffff, |
|
273 | - 8806, 9673, 0, 0xffff, |
|
274 | - 9675, 63742, 0, 0xffff, |
|
275 | - 63744, 64256, 0, 0xffff, |
|
276 | - ); |
|
277 | - break; |
|
278 | - case 'ISO-8859-1': |
|
279 | - $convmap = array( 256, 10000, 0, 0xffff ); |
|
280 | - break; |
|
281 | - } |
|
245 | + $convmap = array( |
|
246 | + 256, 304, 0, 0xffff, |
|
247 | + 306, 337, 0, 0xffff, |
|
248 | + 340, 375, 0, 0xffff, |
|
249 | + 377, 401, 0, 0xffff, |
|
250 | + 403, 709, 0, 0xffff, |
|
251 | + 712, 727, 0, 0xffff, |
|
252 | + 734, 936, 0, 0xffff, |
|
253 | + 938, 959, 0, 0xffff, |
|
254 | + 961, 8210, 0, 0xffff, |
|
255 | + 8213, 8215, 0, 0xffff, |
|
256 | + 8219, 8219, 0, 0xffff, |
|
257 | + 8227, 8229, 0, 0xffff, |
|
258 | + 8231, 8239, 0, 0xffff, |
|
259 | + 8241, 8248, 0, 0xffff, |
|
260 | + 8251, 8259, 0, 0xffff, |
|
261 | + 8261, 8363, 0, 0xffff, |
|
262 | + 8365, 8481, 0, 0xffff, |
|
263 | + 8483, 8705, 0, 0xffff, |
|
264 | + 8707, 8709, 0, 0xffff, |
|
265 | + 8711, 8718, 0, 0xffff, |
|
266 | + 8720, 8720, 0, 0xffff, |
|
267 | + 8722, 8729, 0, 0xffff, |
|
268 | + 8731, 8733, 0, 0xffff, |
|
269 | + 8735, 8746, 0, 0xffff, |
|
270 | + 8748, 8775, 0, 0xffff, |
|
271 | + 8777, 8799, 0, 0xffff, |
|
272 | + 8801, 8803, 0, 0xffff, |
|
273 | + 8806, 9673, 0, 0xffff, |
|
274 | + 9675, 63742, 0, 0xffff, |
|
275 | + 63744, 64256, 0, 0xffff, |
|
276 | + ); |
|
277 | + break; |
|
278 | + case 'ISO-8859-1': |
|
279 | + $convmap = array( 256, 10000, 0, 0xffff ); |
|
280 | + break; |
|
281 | + } |
|
282 | 282 | |
283 | 283 | if ( is_array( $convmap ) ) { |
284 | 284 | $line = mb_encode_numericentity( $line, $convmap, self::$charset ); |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | } |
290 | 290 | |
291 | 291 | return self::escape_csv( $line ); |
292 | - } |
|
292 | + } |
|
293 | 293 | |
294 | 294 | /** |
295 | 295 | * Escape a " in a csv with another " |