@@ -1,10 +1,10 @@ discard block |
||
1 | 1 | <div class="posttypediv"> |
2 | 2 | <ul class="posttype-tabs add-menu-item-tabs"> |
3 | 3 | <li <?php echo ( 'default' == $current_tab ? ' class="tabs"' : '' ); ?>> |
4 | - <a href="<?php echo esc_url('?page=formidable-styles&page-tab=default#tabs-panel-success-msg') ?>" class="nav-tab-link" data-type="tabs-panel-success-msg" ><?php _e( 'Success', 'formidable' ) ?></a> |
|
4 | + <a href="<?php echo esc_url( '?page=formidable-styles&page-tab=default#tabs-panel-success-msg' ) ?>" class="nav-tab-link" data-type="tabs-panel-success-msg" ><?php _e( 'Success', 'formidable' ) ?></a> |
|
5 | 5 | </li> |
6 | 6 | <li <?php echo ( 'error-msg' == $current_tab ? ' class="tabs"' : '' ); ?>> |
7 | - <a href="<?php echo esc_url('?page=formidable-styles&page-tab=error-msge#page-error-msg') ?>" class="nav-tab-link" data-type="tabs-panel-error-msg" ><?php _e( 'Error', 'formidable' ) ?></a> |
|
7 | + <a href="<?php echo esc_url( '?page=formidable-styles&page-tab=error-msge#page-error-msg' ) ?>" class="nav-tab-link" data-type="tabs-panel-error-msg" ><?php _e( 'Error', 'formidable' ) ?></a> |
|
8 | 8 | </li> |
9 | 9 | </ul><!-- .posttype-tabs --> |
10 | 10 | |
@@ -14,19 +14,19 @@ discard block |
||
14 | 14 | <div class="field-group field-group-border clearfix"> |
15 | 15 | <label><?php _e( 'BG Color', 'formidable' ) ?></label> |
16 | 16 | <div class="hasPicker"> |
17 | - <input name="<?php echo esc_attr( $frm_style->get_field_name('success_bg_color') ) ?>" id="frm_success_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['success_bg_color'] ) ?>" type="text" /></div> |
|
17 | + <input name="<?php echo esc_attr( $frm_style->get_field_name( 'success_bg_color' ) ) ?>" id="frm_success_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['success_bg_color'] ) ?>" type="text" /></div> |
|
18 | 18 | </div> |
19 | 19 | <div class="field-group clearfix"> |
20 | 20 | <label><?php _e( 'Border', 'formidable' ) ?></label> |
21 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('success_border_color') ) ?>" id="frm_success_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['success_border_color'] ) ?>" /> |
|
21 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'success_border_color' ) ) ?>" id="frm_success_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['success_border_color'] ) ?>" /> |
|
22 | 22 | </div> |
23 | 23 | <div class="field-group clearfix"> |
24 | 24 | <label><?php _e( 'Text', 'formidable' ) ?></label> |
25 | - <input name="<?php echo esc_attr( $frm_style->get_field_name('success_text_color') ) ?>" id="frm_success_text_color" class="hex" value="<?php echo esc_attr( $style->post_content['success_text_color'] ) ?>" type="text" /> |
|
25 | + <input name="<?php echo esc_attr( $frm_style->get_field_name( 'success_text_color' ) ) ?>" id="frm_success_text_color" class="hex" value="<?php echo esc_attr( $style->post_content['success_text_color'] ) ?>" type="text" /> |
|
26 | 26 | </div> |
27 | 27 | <div class="field-group clearfix"> |
28 | 28 | <label><?php _e( 'Size', 'formidable' ) ?></label> |
29 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('success_font_size') ) ?>" id="frm_success_font_size" value="<?php echo esc_attr( $style->post_content['success_font_size'] ) ?>" size="3" /> |
|
29 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'success_font_size' ) ) ?>" id="frm_success_font_size" value="<?php echo esc_attr( $style->post_content['success_font_size'] ) ?>" size="3" /> |
|
30 | 30 | </div> |
31 | 31 | <div class="clear"></div> |
32 | 32 | </div><!-- /.tabs-panel --> |
@@ -37,21 +37,21 @@ discard block |
||
37 | 37 | <div class="field-group field-group-border clearfix"> |
38 | 38 | <label><?php _e( 'BG Color', 'formidable' ) ?></label> |
39 | 39 | <div class="hasPicker"> |
40 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('error_bg') ) ?>" id="frm_error_bg" class="hex" value="<?php echo esc_attr($style->post_content['error_bg']) ?>" /></div> |
|
40 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'error_bg' ) ) ?>" id="frm_error_bg" class="hex" value="<?php echo esc_attr( $style->post_content['error_bg'] ) ?>" /></div> |
|
41 | 41 | </div> |
42 | 42 | <div class="field-group clearfix"> |
43 | 43 | <label><?php _e( 'Border', 'formidable' ) ?></label> |
44 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('error_border') ) ?>" id="frm_error_border" class="hex" value="<?php echo esc_attr( $style->post_content['error_border'] ) ?>" /> |
|
44 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'error_border' ) ) ?>" id="frm_error_border" class="hex" value="<?php echo esc_attr( $style->post_content['error_border'] ) ?>" /> |
|
45 | 45 | </div> |
46 | 46 | <div class="field-group clearfix"> |
47 | 47 | |
48 | 48 | <label><?php _e( 'Text', 'formidable' ) ?></label> |
49 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('error_text') ) ?>" id="frm_error_text" class="hex" value="<?php echo esc_attr( $style->post_content['error_text'] ) ?>" /> |
|
49 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'error_text' ) ) ?>" id="frm_error_text" class="hex" value="<?php echo esc_attr( $style->post_content['error_text'] ) ?>" /> |
|
50 | 50 | </div> |
51 | 51 | |
52 | 52 | <div class="field-group clearfix"> |
53 | 53 | <label><?php _e( 'Size', 'formidable' ) ?></label> |
54 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('error_font_size') ) ?>" id="frm_error_font_size" value="<?php echo esc_attr( $style->post_content['error_font_size'] ) ?>" size="3" /> |
|
54 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'error_font_size' ) ) ?>" id="frm_error_font_size" value="<?php echo esc_attr( $style->post_content['error_font_size'] ) ?>" size="3" /> |
|
55 | 55 | </div> |
56 | 56 | <div class="clear"></div> |
57 | 57 | </div><!-- /.tabs-panel --> |
@@ -1,80 +1,80 @@ |
||
1 | 1 | <p> |
2 | - <label><input type="checkbox" name="<?php echo esc_attr( $frm_style->get_field_name('center_form') ) ?>" id="frm_center_form" value="1" <?php checked($style->post_content['center_form'], 1) ?> /> |
|
2 | + <label><input type="checkbox" name="<?php echo esc_attr( $frm_style->get_field_name( 'center_form' ) ) ?>" id="frm_center_form" value="1" <?php checked( $style->post_content['center_form'], 1 ) ?> /> |
|
3 | 3 | <?php _e( 'Center form on page', 'formidable' ) ?> <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'This will center your form on the page where it is published if the form width is less than the available width on the page.', 'formidable' ) ?>" ></span> |
4 | 4 | </label> |
5 | 5 | </p> |
6 | 6 | |
7 | 7 | <div class="field-group clearfix frm-first-row"> |
8 | 8 | <label><?php _e( 'Alignment', 'formidable' ) ?></label> |
9 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('form_align') ) ?>" id="frm_form_align"> |
|
10 | - <option value="left" <?php selected($style->post_content['form_align'], 'left') ?>><?php _e( 'left', 'formidable' ) ?></option> |
|
11 | - <option value="right" <?php selected($style->post_content['form_align'], 'right') ?>><?php _e( 'right', 'formidable' ) ?></option> |
|
12 | - <option value="center" <?php selected($style->post_content['form_align'], 'center') ?>><?php _e( 'center', 'formidable' ) ?></option> |
|
9 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'form_align' ) ) ?>" id="frm_form_align"> |
|
10 | + <option value="left" <?php selected( $style->post_content['form_align'], 'left' ) ?>><?php _e( 'left', 'formidable' ) ?></option> |
|
11 | + <option value="right" <?php selected( $style->post_content['form_align'], 'right' ) ?>><?php _e( 'right', 'formidable' ) ?></option> |
|
12 | + <option value="center" <?php selected( $style->post_content['form_align'], 'center' ) ?>><?php _e( 'center', 'formidable' ) ?></option> |
|
13 | 13 | </select> |
14 | 14 | </div> |
15 | 15 | |
16 | 16 | <div class="field-group clearfix frm-first-row"> |
17 | 17 | <label><?php _e( 'Max Width', 'formidable' ) ?></label> |
18 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('form_width') ) ?>" value="<?php echo esc_attr( $style->post_content['form_width'] ) ?>"/> |
|
18 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'form_width' ) ) ?>" value="<?php echo esc_attr( $style->post_content['form_width'] ) ?>"/> |
|
19 | 19 | </div> |
20 | 20 | |
21 | 21 | <div class="field-group clearfix frm-first-row"> |
22 | 22 | <label><?php _e( 'Background', 'formidable' ) ?></label> |
23 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('fieldset_bg_color') ) ?>" id="frm_fieldset_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['fieldset_bg_color'] ) ?>" size="4" /> |
|
23 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'fieldset_bg_color' ) ) ?>" id="frm_fieldset_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['fieldset_bg_color'] ) ?>" size="4" /> |
|
24 | 24 | </div> |
25 | 25 | |
26 | 26 | <div class="field-group field-group-border clearfix"> |
27 | 27 | <label><?php _e( 'Border', 'formidable' ) ?></label> |
28 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('fieldset') ) ?>" id="frm_fieldset" value="<?php echo esc_attr( $style->post_content['fieldset'] ) ?>" size="4" /> |
|
28 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'fieldset' ) ) ?>" id="frm_fieldset" value="<?php echo esc_attr( $style->post_content['fieldset'] ) ?>" size="4" /> |
|
29 | 29 | </div> |
30 | 30 | |
31 | 31 | <div class="field-group clearfix"> |
32 | 32 | <label><?php _e( 'Color', 'formidable' ) ?></label> |
33 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('fieldset_color') ) ?>" id="frm_fieldset_color" class="hex" value="<?php echo esc_attr( $style->post_content['fieldset_color'] ) ?>" /> |
|
33 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'fieldset_color' ) ) ?>" id="frm_fieldset_color" class="hex" value="<?php echo esc_attr( $style->post_content['fieldset_color'] ) ?>" /> |
|
34 | 34 | </div> |
35 | 35 | |
36 | 36 | <div class="field-group clearfix"> |
37 | 37 | <label><?php _e( 'Padding', 'formidable' ) ?></label> |
38 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('fieldset_padding') ) ?>" id="frm_fieldset_padding" value="<?php echo esc_attr( $style->post_content['fieldset_padding'] ) ?>" size="4" /> |
|
38 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'fieldset_padding' ) ) ?>" id="frm_fieldset_padding" value="<?php echo esc_attr( $style->post_content['fieldset_padding'] ) ?>" size="4" /> |
|
39 | 39 | </div> |
40 | 40 | |
41 | 41 | <div id="frm_gen_font_box" class="field-group clearfix"> |
42 | 42 | <label><?php _e( 'Font Family', 'formidable' ) ?></label> |
43 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('font') ) ?>" id="frm_font" value="<?php echo esc_attr( $style->post_content['font'] ) ?>" class="frm_full_width" /> |
|
43 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'font' ) ) ?>" id="frm_font" value="<?php echo esc_attr( $style->post_content['font'] ) ?>" class="frm_full_width" /> |
|
44 | 44 | </div> |
45 | 45 | |
46 | 46 | <div class="field-group clearfix frm-half"> |
47 | 47 | <label><?php _e( 'Direction', 'formidable' ) ?></label> |
48 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('direction') ) ?>" id="frm_form_align"> |
|
49 | - <option value="ltr" <?php selected($style->post_content['direction'], 'ltr') ?>><?php _e( 'Left to Right', 'formidable' ) ?></option> |
|
50 | - <option value="rtl" <?php selected($style->post_content['direction'], 'rtl') ?>><?php _e( 'Right to Left', 'formidable' ) ?></option> |
|
48 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'direction' ) ) ?>" id="frm_form_align"> |
|
49 | + <option value="ltr" <?php selected( $style->post_content['direction'], 'ltr' ) ?>><?php _e( 'Left to Right', 'formidable' ) ?></option> |
|
50 | + <option value="rtl" <?php selected( $style->post_content['direction'], 'rtl' ) ?>><?php _e( 'Right to Left', 'formidable' ) ?></option> |
|
51 | 51 | </select> |
52 | 52 | </div> |
53 | 53 | |
54 | 54 | <div class="clear"></div> |
55 | 55 | <div class="field-group clearfix frm-half"> |
56 | 56 | <label><?php _e( 'Title Size', 'formidable' ) ?></label> |
57 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('title_size') ) ?>" id="frm_title_size" value="<?php echo esc_attr( $style->post_content['title_size'] ) ?>" /> |
|
57 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'title_size' ) ) ?>" id="frm_title_size" value="<?php echo esc_attr( $style->post_content['title_size'] ) ?>" /> |
|
58 | 58 | </div> |
59 | 59 | |
60 | 60 | <div class="field-group clearfix frm-half"> |
61 | 61 | <label><?php _e( 'Color', 'formidable' ) ?></label> |
62 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('title_color') ) ?>" id="frm_title_color" class="hex" value="<?php echo esc_attr( $style->post_content['title_color'] ) ?>" /> |
|
62 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'title_color' ) ) ?>" id="frm_title_color" class="hex" value="<?php echo esc_attr( $style->post_content['title_color'] ) ?>" /> |
|
63 | 63 | </div> |
64 | 64 | |
65 | 65 | <div class="field-group clearfix frm-half"> |
66 | 66 | <label><?php _e( 'Description Size', 'formidable' ) ?></label> |
67 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('form_desc_size') ) ?>" id="frm_form_desc_size" value="<?php echo esc_attr( $style->post_content['form_desc_size'] ) ?>" /> |
|
67 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'form_desc_size' ) ) ?>" id="frm_form_desc_size" value="<?php echo esc_attr( $style->post_content['form_desc_size'] ) ?>" /> |
|
68 | 68 | </div> |
69 | 69 | |
70 | 70 | <div class="field-group clearfix frm-half"> |
71 | 71 | <label><?php _e( 'Color', 'formidable' ) ?></label> |
72 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('form_desc_color') ) ?>" id="frm_form_desc_color" class="hex" value="<?php echo esc_attr( $style->post_content['form_desc_color'] ) ?>" /> |
|
72 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'form_desc_color' ) ) ?>" id="frm_form_desc_color" class="hex" value="<?php echo esc_attr( $style->post_content['form_desc_color'] ) ?>" /> |
|
73 | 73 | </div> |
74 | 74 | |
75 | 75 | <div class="clear"></div> |
76 | 76 | <p class="frm_no_bottom_margin"> |
77 | - <label><input type="checkbox" name="<?php echo esc_attr( $frm_style->get_field_name('important_style') ) ?>" id="frm_important_style" value="1" <?php checked($style->post_content['important_style'], 1) ?> /> |
|
77 | + <label><input type="checkbox" name="<?php echo esc_attr( $frm_style->get_field_name( 'important_style' ) ) ?>" id="frm_important_style" value="1" <?php checked( $style->post_content['important_style'], 1 ) ?> /> |
|
78 | 78 | <?php _e( 'Override theme styling', 'formidable' ) ?> <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'This will add !important to many of the lines in the Formidable styling to make sure it will be used.', 'formidable' ) ?>" ></span> |
79 | 79 | </label> |
80 | 80 | </p> |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <div class="frm_forms with_frm_style frm_style_<?php echo esc_attr( $style->post_name ) ?>"> |
2 | 2 | <div class="frm-show-form"> |
3 | 3 | <div class="frm_error_style"> |
4 | - <strong><?php echo __( 'SAMPLE:', 'formidable' ) .'</strong> '. $frm_settings->invalid_msg ?> |
|
4 | + <strong><?php echo __( 'SAMPLE:', 'formidable' ) . '</strong> ' . $frm_settings->invalid_msg ?> |
|
5 | 5 | </div> |
6 | 6 | |
7 | -<div id="message" class="frm_message"><strong><?php echo __( 'SAMPLE:', 'formidable' ) .'</strong> '. $frm_settings->success_msg ?></div> |
|
7 | +<div id="message" class="frm_message"><strong><?php echo __( 'SAMPLE:', 'formidable' ) . '</strong> ' . $frm_settings->success_msg ?></div> |
|
8 | 8 | |
9 | 9 | <?php $pos_class = 'frm_pos_container frm_' . ( $style->post_content['position'] == 'none' ? 'top' : ( $style->post_content['position'] == 'no_label' ? 'none' : $style->post_content['position'] ) ) . '_container'; ?> |
10 | 10 |
@@ -1,10 +1,10 @@ discard block |
||
1 | 1 | <div class="posttypediv"> |
2 | 2 | <ul class="posttype-tabs add-menu-item-tabs"> |
3 | 3 | <li <?php echo ( 'default' == $current_tab ? ' class="tabs"' : '' ); ?>> |
4 | - <a href="<?php echo esc_url('?page=formidable-styles&page-tab=default#tabs-panel-headings') ?>" class="nav-tab-link" data-type="tabs-panel-headings" ><?php _e( 'Headings', 'formidable' ) ?></a> |
|
4 | + <a href="<?php echo esc_url( '?page=formidable-styles&page-tab=default#tabs-panel-headings' ) ?>" class="nav-tab-link" data-type="tabs-panel-headings" ><?php _e( 'Headings', 'formidable' ) ?></a> |
|
5 | 5 | </li> |
6 | 6 | <li <?php echo ( 'collapse' == $current_tab ? ' class="tabs"' : '' ); ?>> |
7 | - <a href="<?php echo esc_url('?page=formidable-styles&page-tab=collapse#page-collapse') ?>" class="nav-tab-link" data-type="tabs-panel-collapse" ><?php _e( 'Collapsible', 'formidable' ) ?></a> |
|
7 | + <a href="<?php echo esc_url( '?page=formidable-styles&page-tab=collapse#page-collapse' ) ?>" class="nav-tab-link" data-type="tabs-panel-collapse" ><?php _e( 'Collapsible', 'formidable' ) ?></a> |
|
8 | 8 | </li> |
9 | 9 | <li <?php echo ( 'repeat' == $current_tab ? ' class="tabs"' : '' ); ?>> |
10 | 10 | <a href="?page=formidable-styles&page-tab=repeat#tabs-panel-repeat" class="nav-tab-link" data-type="tabs-panel-repeat"><?php _e( 'Repeatable', 'formidable' ) ?></a> |
@@ -16,12 +16,12 @@ discard block |
||
16 | 16 | ?>"> |
17 | 17 | <div class="field-group field-group-background"> |
18 | 18 | <label><?php _e( 'Color', 'formidable' ) ?></label> |
19 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('section_color') ) ?>" id="frm_section_color" class="hex" value="<?php echo esc_attr( $style->post_content['section_color'] ) ?>" /> |
|
19 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'section_color' ) ) ?>" id="frm_section_color" class="hex" value="<?php echo esc_attr( $style->post_content['section_color'] ) ?>" /> |
|
20 | 20 | </div> |
21 | 21 | |
22 | 22 | <div class="field-group"> |
23 | 23 | <label><?php _e( 'Weight', 'formidable' ) ?></label> |
24 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('section_weight') ) ?>" id="frm_section_weight"> |
|
24 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'section_weight' ) ) ?>" id="frm_section_weight"> |
|
25 | 25 | <?php foreach ( FrmStyle::get_bold_options() as $value => $name ) { ?> |
26 | 26 | <option value="<?php echo esc_attr( $value ) ?>" <?php selected( $style->post_content['section_weight'], $value ) ?>><?php echo $name ?></option> |
27 | 27 | <?php } ?> |
@@ -30,54 +30,54 @@ discard block |
||
30 | 30 | |
31 | 31 | <div class="field-group"> |
32 | 32 | <label><?php _e( 'Size', 'formidable' ) ?></label> |
33 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('section_font_size') ) ?>" id="frm_section_font_size" value="<?php echo esc_attr( $style->post_content['section_font_size'] ) ?>" /> |
|
33 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'section_font_size' ) ) ?>" id="frm_section_font_size" value="<?php echo esc_attr( $style->post_content['section_font_size'] ) ?>" /> |
|
34 | 34 | </div> |
35 | 35 | |
36 | 36 | <div class="field-group field-group-border frm-half"> |
37 | 37 | <label><?php _e( 'Padding', 'formidable' ) ?></label> |
38 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('section_pad') ) ?>" id="frm_section_pad" value="<?php echo esc_attr( $style->post_content['section_pad'] ) ?>" /> |
|
38 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'section_pad' ) ) ?>" id="frm_section_pad" value="<?php echo esc_attr( $style->post_content['section_pad'] ) ?>" /> |
|
39 | 39 | </div> |
40 | 40 | |
41 | 41 | <div class="field-group frm-half"> |
42 | 42 | <label class="background"><?php _e( 'BG color', 'formidable' ) ?></label> |
43 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('section_bg_color') ) ?>" id="frm_section_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['section_bg_color'] ) ?>" /> |
|
43 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'section_bg_color' ) ) ?>" id="frm_section_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['section_bg_color'] ) ?>" /> |
|
44 | 44 | </div> |
45 | 45 | |
46 | 46 | <div class="field-group field-group-border frm-half"> |
47 | 47 | <label><?php _e( 'Top Margin', 'formidable' ) ?></label> |
48 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('section_mar_top') ) ?>" id="frm_section_mar_top" value="<?php echo esc_attr( $style->post_content['section_mar_top'] ) ?>" /> |
|
48 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'section_mar_top' ) ) ?>" id="frm_section_mar_top" value="<?php echo esc_attr( $style->post_content['section_mar_top'] ) ?>" /> |
|
49 | 49 | </div> |
50 | 50 | <div class="field-group frm-half"> |
51 | 51 | <label><?php _e( 'Bottom Margin', 'formidable' ) ?></label> |
52 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('section_mar_bottom') ) ?>" id="frm_section_mar_bottom" value="<?php echo esc_attr( $style->post_content['section_mar_bottom'] ) ?>" /> |
|
52 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'section_mar_bottom' ) ) ?>" id="frm_section_mar_bottom" value="<?php echo esc_attr( $style->post_content['section_mar_bottom'] ) ?>" /> |
|
53 | 53 | </div> |
54 | 54 | |
55 | 55 | <div class="field-group field-group-border"> |
56 | 56 | <label><?php _e( 'Border', 'formidable' ) ?></label> |
57 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('section_border_color') ) ?>" id="frm_section_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['section_border_color'] ) ?>" /> |
|
57 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'section_border_color' ) ) ?>" id="frm_section_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['section_border_color'] ) ?>" /> |
|
58 | 58 | </div> |
59 | 59 | <div class="field-group"> |
60 | 60 | <label><?php _e( 'Thickness', 'formidable' ) ?></label> |
61 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('section_border_width') ) ?>" id="frm_section_border_width" value="<?php echo esc_attr( $style->post_content['section_border_width'] ) ?>" /> |
|
61 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'section_border_width' ) ) ?>" id="frm_section_border_width" value="<?php echo esc_attr( $style->post_content['section_border_width'] ) ?>" /> |
|
62 | 62 | </div> |
63 | 63 | <div class="field-group"> |
64 | 64 | <label><?php _e( 'Style', 'formidable' ) ?></label> |
65 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('section_border_style') ) ?>" id="frm_section_border_style"> |
|
66 | - <option value="solid" <?php selected($style->post_content['section_border_style'], 'solid') ?>><?php _e( 'solid', 'formidable' ) ?></option> |
|
67 | - <option value="dotted" <?php selected($style->post_content['section_border_style'], 'dotted') ?>><?php _e( 'dotted', 'formidable' ) ?></option> |
|
68 | - <option value="dashed" <?php selected($style->post_content['section_border_style'], 'dashed') ?>><?php _e( 'dashed', 'formidable' ) ?></option> |
|
69 | - <option value="double" <?php selected($style->post_content['section_border_style'], 'double') ?>><?php _e( 'double', 'formidable' ) ?></option> |
|
65 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'section_border_style' ) ) ?>" id="frm_section_border_style"> |
|
66 | + <option value="solid" <?php selected( $style->post_content['section_border_style'], 'solid' ) ?>><?php _e( 'solid', 'formidable' ) ?></option> |
|
67 | + <option value="dotted" <?php selected( $style->post_content['section_border_style'], 'dotted' ) ?>><?php _e( 'dotted', 'formidable' ) ?></option> |
|
68 | + <option value="dashed" <?php selected( $style->post_content['section_border_style'], 'dashed' ) ?>><?php _e( 'dashed', 'formidable' ) ?></option> |
|
69 | + <option value="double" <?php selected( $style->post_content['section_border_style'], 'double' ) ?>><?php _e( 'double', 'formidable' ) ?></option> |
|
70 | 70 | </select> |
71 | 71 | </div> |
72 | 72 | |
73 | 73 | <div class="field-group field-group-border frm-half"> |
74 | 74 | <label><?php _e( 'Border Position', 'formidable' ) ?></label> |
75 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('section_border_loc') ) ?>" id="frm_section_border_loc"> |
|
76 | - <option value="-top" <?php selected($style->post_content['section_border_loc'], '-top') ?>><?php _e( 'top', 'formidable' ) ?></option> |
|
77 | - <option value="-bottom" <?php selected($style->post_content['section_border_loc'], '-bottom') ?>><?php _e( 'bottom', 'formidable' ) ?></option> |
|
78 | - <option value="-left" <?php selected($style->post_content['section_border_loc'], '-left') ?>><?php _e( 'left', 'formidable' ) ?></option> |
|
79 | - <option value="-right" <?php selected($style->post_content['section_border_loc'], '-right') ?>><?php _e( 'right', 'formidable' ) ?></option> |
|
80 | - <option value="" <?php selected($style->post_content['section_border_loc'], '') ?>><?php _e( 'all', 'formidable' ) ?></option> |
|
75 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'section_border_loc' ) ) ?>" id="frm_section_border_loc"> |
|
76 | + <option value="-top" <?php selected( $style->post_content['section_border_loc'], '-top' ) ?>><?php _e( 'top', 'formidable' ) ?></option> |
|
77 | + <option value="-bottom" <?php selected( $style->post_content['section_border_loc'], '-bottom' ) ?>><?php _e( 'bottom', 'formidable' ) ?></option> |
|
78 | + <option value="-left" <?php selected( $style->post_content['section_border_loc'], '-left' ) ?>><?php _e( 'left', 'formidable' ) ?></option> |
|
79 | + <option value="-right" <?php selected( $style->post_content['section_border_loc'], '-right' ) ?>><?php _e( 'right', 'formidable' ) ?></option> |
|
80 | + <option value="" <?php selected( $style->post_content['section_border_loc'], '' ) ?>><?php _e( 'all', 'formidable' ) ?></option> |
|
81 | 81 | </select> |
82 | 82 | </div> |
83 | 83 | <div class="clear"></div> |
@@ -88,14 +88,14 @@ discard block |
||
88 | 88 | ?>"> |
89 | 89 | <div class="field-group frm-half"> |
90 | 90 | <label><?php _e( 'Icons', 'formidable' ) ?></label> |
91 | - <?php FrmStylesHelper::bs_icon_select($style, $frm_style, 'arrow'); ?> |
|
91 | + <?php FrmStylesHelper::bs_icon_select( $style, $frm_style, 'arrow' ); ?> |
|
92 | 92 | </div> |
93 | 93 | |
94 | 94 | <div class="field-group frm-half"> |
95 | 95 | <label><?php _e( 'Icon Position', 'formidable' ) ?></label> |
96 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('collapse_pos') ) ?>" id="frm_collapse_pos"> |
|
97 | - <option value="after" <?php selected($style->post_content['collapse_pos'], 'after') ?>><?php _e( 'After Heading', 'formidable' ) ?></option> |
|
98 | - <option value="before" <?php selected($style->post_content['collapse_pos'], 'before') ?>><?php _e( 'Before Heading', 'formidable' ) ?></option> |
|
96 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'collapse_pos' ) ) ?>" id="frm_collapse_pos"> |
|
97 | + <option value="after" <?php selected( $style->post_content['collapse_pos'], 'after' ) ?>><?php _e( 'After Heading', 'formidable' ) ?></option> |
|
98 | + <option value="before" <?php selected( $style->post_content['collapse_pos'], 'before' ) ?>><?php _e( 'Before Heading', 'formidable' ) ?></option> |
|
99 | 99 | </select> |
100 | 100 | </div> |
101 | 101 | <div class="clear"></div> |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | ?>"> |
107 | 107 | <div class="field-group frm-half"> |
108 | 108 | <label><?php _e( 'Icons', 'formidable' ) ?></label> |
109 | - <?php FrmStylesHelper::bs_icon_select($style, $frm_style, 'minus'); ?> |
|
109 | + <?php FrmStylesHelper::bs_icon_select( $style, $frm_style, 'minus' ); ?> |
|
110 | 110 | </div> |
111 | 111 | <div class="clear"></div> |
112 | 112 | </div><!-- /.tabs-panel --> |
@@ -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> |
@@ -1,20 +1,20 @@ discard block |
||
1 | 1 | <div class="nav-menus-php"> |
2 | 2 | <div class="wrap"> |
3 | - <?php FrmStylesHelper::style_menu('custom_css'); ?> |
|
3 | + <?php FrmStylesHelper::style_menu( 'custom_css' ); ?> |
|
4 | 4 | |
5 | 5 | <p><?php _e( 'You can add custom css here or in your theme style.css', 'formidable' ) ?></p> |
6 | 6 | |
7 | - <?php include(FrmAppHelper::plugin_path() .'/classes/views/shared/errors.php'); ?> |
|
7 | + <?php include( FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php' ); ?> |
|
8 | 8 | |
9 | 9 | <form method="post"> |
10 | 10 | <input type="hidden" name="ID" value="<?php echo esc_attr( $style->ID ) ?>" /> |
11 | - <input type="hidden" name="<?php echo esc_attr( $frm_style->get_field_name('post_title', '') ); ?>" value="<?php echo esc_attr( $style->post_title ) ?>" /> |
|
12 | - <input type="hidden" name="<?php echo esc_attr( $frm_style->get_field_name('menu_order', '') ); ?>" value="<?php echo esc_attr( $style->menu_order ) ?>" /> |
|
11 | + <input type="hidden" name="<?php echo esc_attr( $frm_style->get_field_name( 'post_title', '' ) ); ?>" value="<?php echo esc_attr( $style->post_title ) ?>" /> |
|
12 | + <input type="hidden" name="<?php echo esc_attr( $frm_style->get_field_name( 'menu_order', '' ) ); ?>" value="<?php echo esc_attr( $style->menu_order ) ?>" /> |
|
13 | 13 | <input type="hidden" name="style_name" value="frm_style_<?php echo esc_attr( $style->post_name ) ?>" /> |
14 | 14 | <input type="hidden" name="frm_action" value="save_css" /> |
15 | 15 | <?php wp_nonce_field( 'frm_custom_css_nonce', 'frm_custom_css' ); ?> |
16 | 16 | |
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> |
|
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 | 20 | foreach ( $style->post_content as $k => $v ) { |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | continue; |
23 | 23 | } |
24 | 24 | ?> |
25 | - <input type="hidden" value="<?php echo esc_attr($v) ?>" name="<?php echo esc_attr( $frm_style->get_field_name( $k ) ) ?>" /> |
|
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> |
@@ -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,10 +1,10 @@ discard block |
||
1 | 1 | <div class="nav-menus-php"> |
2 | 2 | <div class="wrap"> |
3 | - <?php FrmStylesHelper::style_menu('manage'); ?> |
|
3 | + <?php FrmStylesHelper::style_menu( 'manage' ); ?> |
|
4 | 4 | |
5 | - <p><?php printf(__( 'Easily change which template your forms are using by making changes below or %1$screate a new style%2$s.', 'formidable' ), '<a href="?page=formidable-styles&frm_action=new_style">', '</a>'); ?></p> |
|
5 | + <p><?php printf( __( 'Easily change which template your forms are using by making changes below or %1$screate a new style%2$s.', 'formidable' ), '<a href="?page=formidable-styles&frm_action=new_style">', '</a>' ); ?></p> |
|
6 | 6 | |
7 | - <?php include(FrmAppHelper::plugin_path() .'/classes/views/shared/errors.php'); ?> |
|
7 | + <?php include( FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php' ); ?> |
|
8 | 8 | |
9 | 9 | <div id="menu-locations-wrap"> |
10 | 10 | <form method="post"> |
@@ -21,21 +21,21 @@ discard block |
||
21 | 21 | <?php |
22 | 22 | if ( $forms ) { |
23 | 23 | foreach ( $forms as $form ) { |
24 | - $this_style = isset($form->options['custom_style']) ? (int) $form->options['custom_style'] : 1; |
|
24 | + $this_style = isset( $form->options['custom_style'] ) ? (int) $form->options['custom_style'] : 1; |
|
25 | 25 | if ( 1 == $this_style ) { |
26 | 26 | // use the default style |
27 | 27 | $this_style = $default_style->ID; |
28 | 28 | } |
29 | 29 | ?> |
30 | 30 | <tr id="menu-locations-row"> |
31 | - <td class="menu-location-title"><strong><?php echo empty($form->name) ? __( '(no title)') : $form->name ?></strong></td> |
|
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"> |
33 | 33 | <input type="hidden" name="prev_style[<?php echo esc_attr( $form->id ) ?>]" value="<?php echo esc_attr( $this_style ) ?>" /> |
34 | 34 | <select name="style[<?php echo esc_attr( $form->id ) ?>]"> |
35 | 35 | <?php foreach ( $styles as $s ) { ?> |
36 | - <option value="<?php echo esc_attr( $s->ID ) ?>" <?php selected( $s->ID, $this_style ) ?>><?php echo esc_html( $s->post_title . ( empty($s->menu_order) ? '' : ' ('. __( 'default', 'formidable' ) .')' ) ) ?></option> |
|
36 | + <option value="<?php echo esc_attr( $s->ID ) ?>" <?php selected( $s->ID, $this_style ) ?>><?php echo esc_html( $s->post_title . ( empty( $s->menu_order ) ? '' : ' (' . __( 'default', 'formidable' ) . ')' ) ) ?></option> |
|
37 | 37 | <?php } ?> |
38 | - <option value="" <?php selected(0, $this_style) ?>><?php _e( 'Styling disabled', 'formidable' ) ?></option> |
|
38 | + <option value="" <?php selected( 0, $this_style ) ?>><?php _e( 'Styling disabled', 'formidable' ) ?></option> |
|
39 | 39 | </select> |
40 | 40 | |
41 | 41 | </td><!-- .menu-location-menus --> |
@@ -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 | } |
@@ -13,16 +13,16 @@ discard block |
||
13 | 13 | ?> |
14 | 14 | <form> |
15 | 15 | <id><?php echo $form->id ?></id> |
16 | - <form_key><?php echo FrmXMLHelper::cdata($form->form_key) ?></form_key> |
|
17 | - <name><?php echo FrmXMLHelper::cdata($form->name) ?></name> |
|
18 | - <description><?php echo FrmXMLHelper::cdata($form->description) ?></description> |
|
16 | + <form_key><?php echo FrmXMLHelper::cdata( $form->form_key ) ?></form_key> |
|
17 | + <name><?php echo FrmXMLHelper::cdata( $form->name ) ?></name> |
|
18 | + <description><?php echo FrmXMLHelper::cdata( $form->description ) ?></description> |
|
19 | 19 | <created_at><?php echo $form->created_at ?></created_at> |
20 | 20 | <logged_in><?php echo $form->logged_in ?></logged_in> |
21 | 21 | <is_template><?php echo $form->is_template ?></is_template> |
22 | 22 | <default_template><?php echo $form->default_template ?></default_template> |
23 | 23 | <editable><?php echo $form->editable ?></editable> |
24 | - <options><?php echo FrmXMLHelper::cdata($form->options) ?></options> |
|
25 | - <status><?php echo FrmXMLHelper::cdata($form->status) ?></status> |
|
24 | + <options><?php echo FrmXMLHelper::cdata( $form->options ) ?></options> |
|
25 | + <status><?php echo FrmXMLHelper::cdata( $form->status ) ?></status> |
|
26 | 26 | <parent_form_id><?php echo $form->parent_form_id ?></parent_form_id> |
27 | 27 | <?php |
28 | 28 | |
@@ -31,16 +31,16 @@ discard block |
||
31 | 31 | foreach ( $fields as $field ) { ?> |
32 | 32 | <field> |
33 | 33 | <id><?php echo $field->id ?></id> |
34 | - <field_key><?php echo FrmXMLHelper::cdata($field->field_key) ?></field_key> |
|
35 | - <name><?php echo FrmXMLHelper::cdata($field->name) ?></name> |
|
36 | - <description><?php echo FrmXMLHelper::cdata($field->description) ?></description> |
|
37 | - <type><?php echo FrmXMLHelper::cdata($field->type) ?></type> |
|
38 | - <default_value><?php echo FrmXMLHelper::cdata($field->default_value) ?></default_value> |
|
34 | + <field_key><?php echo FrmXMLHelper::cdata( $field->field_key ) ?></field_key> |
|
35 | + <name><?php echo FrmXMLHelper::cdata( $field->name ) ?></name> |
|
36 | + <description><?php echo FrmXMLHelper::cdata( $field->description ) ?></description> |
|
37 | + <type><?php echo FrmXMLHelper::cdata( $field->type ) ?></type> |
|
38 | + <default_value><?php echo FrmXMLHelper::cdata( $field->default_value ) ?></default_value> |
|
39 | 39 | <field_order><?php echo $field->field_order ?></field_order> |
40 | 40 | <form_id><?php echo $field->form_id ?></form_id> |
41 | 41 | <required><?php echo (bool) $field->required ?></required> |
42 | - <options><?php echo FrmXMLHelper::cdata($field->options) ?></options> |
|
43 | - <field_options><?php echo FrmXMLHelper::cdata($field->field_options) ?></field_options> |
|
42 | + <options><?php echo FrmXMLHelper::cdata( $field->options ) ?></options> |
|
43 | + <field_options><?php echo FrmXMLHelper::cdata( $field->field_options ) ?></field_options> |
|
44 | 44 | </field> |
45 | 45 | <?php } ?> |
46 | 46 | </form> |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | </tr> |
70 | 70 | |
71 | 71 | <?php if ( count( $export_types ) == 1 ) { |
72 | - reset($export_types); ?> |
|
72 | + reset($export_types); ?> |
|
73 | 73 | <tr><td colspan="2"><input type="hidden" name="type[]" value="<?php echo key($export_types) ?>" /></td></tr> |
74 | 74 | <?php } else { ?> |
75 | 75 | <tr class="form-field"> |
@@ -97,9 +97,9 @@ discard block |
||
97 | 97 | } else if ( $form->is_template ) { |
98 | 98 | echo ' ' . __( '(template)', 'formidable' ); |
99 | 99 | } |
100 | - ?></option> |
|
100 | + ?></option> |
|
101 | 101 | <?php |
102 | - } ?> |
|
102 | + } ?> |
|
103 | 103 | </select> |
104 | 104 | <p class="howto"><?php _e( 'Hold down the CTRL/Command button to select multiple forms', 'formidable' ); ?></p> |
105 | 105 | </td> |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | <div class="frmicon icon32"><br/></div> |
3 | 3 | <h2><?php _e( 'Import/Export', 'formidable' ); ?></h2> |
4 | 4 | |
5 | - <?php include(FrmAppHelper::plugin_path() .'/classes/views/shared/errors.php'); ?> |
|
5 | + <?php include( FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php' ); ?> |
|
6 | 6 | <div id="poststuff" class="metabox-holder"> |
7 | 7 | <div id="post-body"> |
8 | 8 | <div id="post-body-content"> |
@@ -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" /> |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | <div class="inside with_frm_style"> |
35 | 35 | <form method="post" action="<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>" id="frm_export_xml"> |
36 | 36 | <input type="hidden" name="action" value="frm_export_xml" /> |
37 | - <?php wp_nonce_field('export-xml-nonce', 'export-xml'); ?> |
|
37 | + <?php wp_nonce_field( 'export-xml-nonce', 'export-xml' ); ?> |
|
38 | 38 | |
39 | 39 | <table class="form-table"> |
40 | 40 | <tr class="form-field"> |
@@ -42,9 +42,9 @@ discard block |
||
42 | 42 | <td> |
43 | 43 | <select name="format"> |
44 | 44 | <?php foreach ( $export_format as $t => $type ) { ?> |
45 | - <option value="<?php echo esc_attr( $t ) ?>" data-support="<?php echo esc_attr( $type['support'] ) ?>" <?php echo isset( $type['count'] ) ? 'data-count="'. esc_attr( $type['count'] ) .'"' : ''; ?>><?php echo isset( $type['name'] ) ? $type['name'] : $t ?></option> |
|
45 | + <option value="<?php echo esc_attr( $t ) ?>" data-support="<?php echo esc_attr( $type['support'] ) ?>" <?php echo isset( $type['count'] ) ? 'data-count="' . esc_attr( $type['count'] ) . '"' : ''; ?>><?php echo isset( $type['name'] ) ? $type['name'] : $t ?></option> |
|
46 | 46 | <?php } ?> |
47 | - <?php if ( ! isset($export_format['csv']) ) { ?> |
|
47 | + <?php if ( ! isset( $export_format['csv'] ) ) { ?> |
|
48 | 48 | <option value="csv" disabled="disabled">CSV <?php _e( '(Premium feature)', 'formidable' ); ?></option> |
49 | 49 | <?php } ?> |
50 | 50 | </select> |
@@ -54,11 +54,11 @@ discard block |
||
54 | 54 | <label for="csv_format"><?php _e( 'Format', 'formidable' ) ?>:</label> |
55 | 55 | <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'If your CSV special characters are not working correctly, try a different formatting option.', 'formidable' ) ?>"></span> |
56 | 56 | <select name="csv_format"> |
57 | - <option value="UTF-8" <?php selected($csv_format, 'UTF-8') ?>>UTF-8</option> |
|
58 | - <option value="ISO-8859-1" <?php selected($csv_format, 'ISO-8859-1'); ?>>ISO-8859-1</option> |
|
59 | - <option value="windows-1256" <?php selected($csv_format, 'windows-1256'); ?>>windows-1256</option> |
|
60 | - <option value="windows-1251" <?php selected($csv_format, 'windows-1251'); ?>>windows-1251</option> |
|
61 | - <option value="macintosh" <?php selected($csv_format, 'macintosh'); ?>><?php _e( 'Macintosh', 'formidable' ) ?></option> |
|
57 | + <option value="UTF-8" <?php selected( $csv_format, 'UTF-8' ) ?>>UTF-8</option> |
|
58 | + <option value="ISO-8859-1" <?php selected( $csv_format, 'ISO-8859-1' ); ?>>ISO-8859-1</option> |
|
59 | + <option value="windows-1256" <?php selected( $csv_format, 'windows-1256' ); ?>>windows-1256</option> |
|
60 | + <option value="windows-1251" <?php selected( $csv_format, 'windows-1251' ); ?>>windows-1251</option> |
|
61 | + <option value="macintosh" <?php selected( $csv_format, 'macintosh' ); ?>><?php _e( 'Macintosh', 'formidable' ) ?></option> |
|
62 | 62 | </select> |
63 | 63 | </li> |
64 | 64 | |
@@ -69,8 +69,8 @@ discard block |
||
69 | 69 | </tr> |
70 | 70 | |
71 | 71 | <?php if ( count( $export_types ) == 1 ) { |
72 | - reset($export_types); ?> |
|
73 | - <tr><td colspan="2"><input type="hidden" name="type[]" value="<?php echo key($export_types) ?>" /></td></tr> |
|
72 | + reset( $export_types ); ?> |
|
73 | + <tr><td colspan="2"><input type="hidden" name="type[]" value="<?php echo key( $export_types ) ?>" /></td></tr> |
|
74 | 74 | <?php } else { ?> |
75 | 75 | <tr class="form-field"> |
76 | 76 | <th scope="row"><label><?php _e( 'Data to Export', 'formidable' ); ?></label></th> |
@@ -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 | global $wp_query; |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | } |
66 | 66 | |
67 | 67 | if ( empty( $taxonomies ) ) { |
68 | - return; |
|
68 | + return; |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | global $frm_inc_tax; |
@@ -75,18 +75,18 @@ discard block |
||
75 | 75 | |
76 | 76 | foreach ( (array) $terms as $term ) { |
77 | 77 | if ( in_array( $term->term_id, $frm_inc_tax ) ) { |
78 | - return; |
|
78 | + return; |
|
79 | 79 | } |
80 | 80 | |
81 | - $frm_inc_tax[] = $term->term_id; |
|
82 | - $label = ($term->taxonomy == 'category' || $term->taxonomy == 'tag') ? $term->taxonomy : 'term'; ?> |
|
81 | + $frm_inc_tax[] = $term->term_id; |
|
82 | + $label = ($term->taxonomy == 'category' || $term->taxonomy == 'tag') ? $term->taxonomy : 'term'; ?> |
|
83 | 83 | <term><term_id><?php echo $term->term_id ?></term_id><term_taxonomy><?php echo $term->taxonomy; ?></term_taxonomy><?php |
84 | - if ( ! empty( $term->name ) ) { |
|
85 | - echo '<term_name>' . FrmXMLHelper::cdata( $term->name ) . '</term_name>'; |
|
86 | - } |
|
87 | - if ( ! empty( $term->description ) ) { |
|
88 | - ?><term_description><?php echo FrmXMLHelper::cdata( $term->description ) ?></term_description><?php |
|
89 | - } |
|
90 | - ?><term_slug><?php echo $term->slug; ?></term_slug></term> |
|
84 | + if ( ! empty( $term->name ) ) { |
|
85 | + echo '<term_name>' . FrmXMLHelper::cdata( $term->name ) . '</term_name>'; |
|
86 | + } |
|
87 | + if ( ! empty( $term->description ) ) { |
|
88 | + ?><term_description><?php echo FrmXMLHelper::cdata( $term->description ) ?></term_description><?php |
|
89 | + } |
|
90 | + ?><term_slug><?php echo $term->slug; ?></term_slug></term> |
|
91 | 91 | <?php |
92 | 92 | } |
@@ -79,7 +79,7 @@ |
||
79 | 79 | } |
80 | 80 | |
81 | 81 | $frm_inc_tax[] = $term->term_id; |
82 | - $label = ($term->taxonomy == 'category' || $term->taxonomy == 'tag') ? $term->taxonomy : 'term'; ?> |
|
82 | + $label = ( $term->taxonomy == 'category' || $term->taxonomy == 'tag' ) ? $term->taxonomy : 'term'; ?> |
|
83 | 83 | <term><term_id><?php echo $term->term_id ?></term_id><term_taxonomy><?php echo $term->taxonomy; ?></term_taxonomy><?php |
84 | 84 | if ( ! empty( $term->name ) ) { |
85 | 85 | echo '<term_name>' . FrmXMLHelper::cdata( $term->name ) . '</term_name>'; |