@@ -18,7 +18,7 @@ |
||
18 | 18 | if ( current_user_can( 'frm_edit_displays' ) ) { ?> |
19 | 19 | <li> <a<?php |
20 | 20 | if ( $current_page == 'frm_display' || $pagenow == 'post.php' || $pagenow == 'post-new.php' || $current_page == 'formidable-entry-templates' ) { |
21 | - echo ' class="current_page"'; |
|
21 | + echo ' class="current_page"'; |
|
22 | 22 | } ?> href="<?php echo esc_url( (FrmAppHelper::pro_is_installed() ? admin_url('edit.php?post_type=frm_display') : admin_url( 'admin.php?page=formidable-entry-templates')) .'&form='. $id .'&show_nav=1' ); ?>"><?php _e( 'Views', 'formidable' ) ?></a></li> |
23 | 23 | <?php |
24 | 24 | } |
@@ -3,28 +3,28 @@ discard block |
||
3 | 3 | <?php |
4 | 4 | $class = ' class="first"'; |
5 | 5 | if ( current_user_can( 'frm_edit_forms' ) ) { ?> |
6 | - <li<?php echo $class ?>><a<?php FrmAppHelper::select_current_page( 'formidable', $current_page, array( 'edit', 'new', 'duplicate' ) ); ?> href="<?php echo esc_url( admin_url('admin.php?page=formidable&frm_action=edit&id='. $id) ) ?>"><?php _e( 'Build', 'formidable' ) ?></a> </li> |
|
6 | + <li<?php echo $class ?>><a<?php FrmAppHelper::select_current_page( 'formidable', $current_page, array( 'edit', 'new', 'duplicate' ) ); ?> href="<?php echo esc_url( admin_url( 'admin.php?page=formidable&frm_action=edit&id=' . $id ) ) ?>"><?php _e( 'Build', 'formidable' ) ?></a> </li> |
|
7 | 7 | <?php |
8 | 8 | $class = ''; |
9 | 9 | } |
10 | 10 | |
11 | 11 | if ( current_user_can( 'frm_edit_forms' ) ) { ?> |
12 | - <li<?php echo $class ?>><a<?php FrmAppHelper::select_current_page( 'formidable', $current_page, array( 'settings' ) ); ?> href="<?php echo esc_url( admin_url('admin.php?page=formidable&frm_action=settings&id='. $id) ) ?>"><?php _e( 'Settings', 'formidable' ) ?></a> </li> |
|
12 | + <li<?php echo $class ?>><a<?php FrmAppHelper::select_current_page( 'formidable', $current_page, array( 'settings' ) ); ?> href="<?php echo esc_url( admin_url( 'admin.php?page=formidable&frm_action=settings&id=' . $id ) ) ?>"><?php _e( 'Settings', 'formidable' ) ?></a> </li> |
|
13 | 13 | <?php |
14 | 14 | $class = ''; |
15 | 15 | } ?> |
16 | - <li<?php echo $class ?>> <a<?php FrmAppHelper::select_current_page( 'formidable-entries', $current_page ); ?> href="<?php echo esc_url( admin_url('admin.php?page=formidable-entries&frm_action=list&form='. $id) ) ?>"><?php _e( 'Entries', 'formidable' ) ?></a></li> |
|
16 | + <li<?php echo $class ?>> <a<?php FrmAppHelper::select_current_page( 'formidable-entries', $current_page ); ?> href="<?php echo esc_url( admin_url( 'admin.php?page=formidable-entries&frm_action=list&form=' . $id ) ) ?>"><?php _e( 'Entries', 'formidable' ) ?></a></li> |
|
17 | 17 | <?php |
18 | 18 | if ( current_user_can( 'frm_edit_displays' ) ) { ?> |
19 | 19 | <li> <a<?php |
20 | 20 | if ( $current_page == 'frm_display' || $pagenow == 'post.php' || $pagenow == 'post-new.php' || $current_page == 'formidable-entry-templates' ) { |
21 | 21 | echo ' class="current_page"'; |
22 | -} ?> href="<?php echo esc_url( (FrmAppHelper::pro_is_installed() ? admin_url('edit.php?post_type=frm_display') : admin_url( 'admin.php?page=formidable-entry-templates')) .'&form='. $id .'&show_nav=1' ); ?>"><?php _e( 'Views', 'formidable' ) ?></a></li> |
|
22 | +} ?> href="<?php echo esc_url( ( FrmAppHelper::pro_is_installed() ? admin_url( 'edit.php?post_type=frm_display' ) : admin_url( 'admin.php?page=formidable-entry-templates' ) ) . '&form=' . $id . '&show_nav=1' ); ?>"><?php _e( 'Views', 'formidable' ) ?></a></li> |
|
23 | 23 | <?php |
24 | 24 | } |
25 | 25 | |
26 | 26 | if ( current_user_can( 'frm_view_reports' ) ) { ?> |
27 | - <li> <a<?php FrmAppHelper::select_current_page( 'formidable', $current_page, array( 'reports' ) ); ?> href="<?php echo esc_url( admin_url('admin.php?page=formidable&frm_action=reports&form='. $id .'&show_nav=1') ) ?>"><?php _e( 'Reports', 'formidable' ) ?></a></li> |
|
27 | + <li> <a<?php FrmAppHelper::select_current_page( 'formidable', $current_page, array( 'reports' ) ); ?> href="<?php echo esc_url( admin_url( 'admin.php?page=formidable&frm_action=reports&form=' . $id . '&show_nav=1' ) ) ?>"><?php _e( 'Reports', 'formidable' ) ?></a></li> |
|
28 | 28 | <?php |
29 | 29 | } |
30 | 30 | |
@@ -33,6 +33,6 @@ discard block |
||
33 | 33 | </ul> |
34 | 34 | |
35 | 35 | <?php if ( $form && $title == 'show' ) { ?> |
36 | - <input id="title" type="text" value="<?php echo esc_attr($form->name == '' ? __( '(no title)') : $form->name) ?>" readonly="readonly" disabled="disabled" /> |
|
36 | + <input id="title" type="text" value="<?php echo esc_attr( $form->name == '' ? __( '(no title)' ) : $form->name ) ?>" readonly="readonly" disabled="disabled" /> |
|
37 | 37 | <?php } ?> |
38 | 38 | </div> |
@@ -1,2 +1,2 @@ |
||
1 | 1 | <?php |
2 | -_deprecated_file( basename(__FILE__), '2.0', null, __( 'Use wp_enqueue_script and wp_enqueue_style.', 'formidable' ) ); |
|
2 | +_deprecated_file( basename( __FILE__ ), '2.0', null, __( 'Use wp_enqueue_script and wp_enqueue_style.', 'formidable' ) ); |
@@ -40,51 +40,51 @@ discard block |
||
40 | 40 | |
41 | 41 | if ( $f->type == 'data' ) { |
42 | 42 | //get all fields from linked form |
43 | - if ( isset($f->field_options['form_select']) && is_numeric($f->field_options['form_select']) ) { |
|
44 | - $linked_form = FrmDb::get_var( $wpdb->prefix .'frm_fields', array( 'id' => $f->field_options['form_select'] ), 'form_id' ); |
|
45 | - if ( ! in_array( $linked_form, $linked_forms ) ) { |
|
46 | - $linked_forms[] = $linked_form; |
|
43 | + if ( isset($f->field_options['form_select']) && is_numeric($f->field_options['form_select']) ) { |
|
44 | + $linked_form = FrmDb::get_var( $wpdb->prefix .'frm_fields', array( 'id' => $f->field_options['form_select'] ), 'form_id' ); |
|
45 | + if ( ! in_array( $linked_form, $linked_forms ) ) { |
|
46 | + $linked_forms[] = $linked_form; |
|
47 | 47 | $linked_fields = FrmField::getAll( array( 'fi.type not' => FrmField::no_save_fields(), 'fi.form_id' => $linked_form ) ); |
48 | - $ldfe = ''; |
|
48 | + $ldfe = ''; |
|
49 | 49 | if ( $linked_fields ) { |
50 | 50 | foreach ( $linked_fields as $linked_field ) { |
51 | - 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 ) ); |
|
52 | - |
|
53 | - $ldfe = $linked_field->id; |
|
54 | - unset($linked_field); |
|
55 | - } |
|
56 | - } |
|
57 | - } |
|
58 | - } |
|
59 | - $dfe = $f->id; |
|
60 | - } |
|
61 | - unset($f); |
|
62 | - } |
|
63 | - } ?> |
|
51 | + 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 ) ); |
|
52 | + |
|
53 | + $ldfe = $linked_field->id; |
|
54 | + unset($linked_field); |
|
55 | + } |
|
56 | + } |
|
57 | + } |
|
58 | + } |
|
59 | + $dfe = $f->id; |
|
60 | + } |
|
61 | + unset($f); |
|
62 | + } |
|
63 | + } ?> |
|
64 | 64 | </ul> |
65 | 65 | |
66 | 66 | <?php _e( 'Helpers', 'formidable' ) ?>: |
67 | 67 | <ul class="frm_code_list"> |
68 | 68 | <?php |
69 | - $col = 'one'; |
|
69 | + $col = 'one'; |
|
70 | 70 | foreach ( $entry_shortcodes as $skey => $sname ) { |
71 | 71 | if ( empty( $skey ) ) { |
72 | - $col = 'one'; |
|
73 | - echo '<li class="clear frm_block"></li>'; |
|
74 | - continue; |
|
75 | - } |
|
76 | - ?> |
|
72 | + $col = 'one'; |
|
73 | + echo '<li class="clear frm_block"></li>'; |
|
74 | + continue; |
|
75 | + } |
|
76 | + ?> |
|
77 | 77 | <li class="frm_col_<?php echo esc_attr( $col ) ?>"> |
78 | 78 | <a href="javascript:void(0)" class="frmbutton button <?php |
79 | 79 | echo ( in_array( $skey, array( 'siteurl', 'sitename', 'entry_count' ) ) ) ? 'show_before_content show_after_content' : ''; |
80 | - echo ( strpos( $skey, 'default-' ) === 0 ) ? 'hide_frm_not_email_subject' : ''; |
|
81 | - ?> frm_insert_code" data-code="<?php echo esc_attr( $skey ) ?>"><?php echo esc_html( $sname ) ?></a> |
|
80 | + echo ( strpos( $skey, 'default-' ) === 0 ) ? 'hide_frm_not_email_subject' : ''; |
|
81 | + ?> frm_insert_code" data-code="<?php echo esc_attr( $skey ) ?>"><?php echo esc_html( $sname ) ?></a> |
|
82 | 82 | </li> |
83 | 83 | <?php |
84 | - $col = ( $col == 'one' ) ? 'two' : 'one'; |
|
85 | - unset($skey, $sname); |
|
86 | - } |
|
87 | - ?> |
|
84 | + $col = ( $col == 'one' ) ? 'two' : 'one'; |
|
85 | + unset($skey, $sname); |
|
86 | + } |
|
87 | + ?> |
|
88 | 88 | </ul> |
89 | 89 | </div> |
90 | 90 | |
@@ -97,11 +97,11 @@ discard block |
||
97 | 97 | <ul class="alignleft"><li><?php _e( 'Fields from your form', 'formidable' ) ?>:</li></ul> |
98 | 98 | <ul class="frm_code_list frm_full_width"> |
99 | 99 | <?php if ( ! empty( $fields ) ) { |
100 | - foreach ( $fields as $f ) { |
|
100 | + foreach ( $fields as $f ) { |
|
101 | 101 | 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'] == '' ) ) ) { |
102 | - continue; |
|
103 | - } |
|
104 | - ?> |
|
102 | + continue; |
|
103 | + } |
|
104 | + ?> |
|
105 | 105 | <li> |
106 | 106 | <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> |
107 | 107 | <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> |
@@ -109,50 +109,50 @@ discard block |
||
109 | 109 | </li> |
110 | 110 | <?php |
111 | 111 | |
112 | - if ( $f->type == 'user_id' ) { |
|
113 | - $uid = $f; |
|
114 | - } else if ( $f->type == 'file' ) { |
|
115 | - $file = $f; |
|
116 | - } |
|
117 | - unset($f); |
|
118 | - } |
|
119 | - } ?> |
|
112 | + if ( $f->type == 'user_id' ) { |
|
113 | + $uid = $f; |
|
114 | + } else if ( $f->type == 'file' ) { |
|
115 | + $file = $f; |
|
116 | + } |
|
117 | + unset($f); |
|
118 | + } |
|
119 | + } ?> |
|
120 | 120 | </ul> |
121 | 121 | |
122 | 122 | <p class="howto"><?php _e( 'Click a button below to insert sample logic into your view', 'formidable' ) ?></p> |
123 | 123 | <ul class="frm_code_list"> |
124 | 124 | <?php |
125 | - $col = 'one'; |
|
125 | + $col = 'one'; |
|
126 | 126 | foreach ( $cond_shortcodes as $skey => $sname ) { |
127 | - ?> |
|
127 | + ?> |
|
128 | 128 | <li class="frm_col_<?php echo esc_attr( $col ) ?>"> |
129 | 129 | <a href="javascript:void(0)" class="frmbutton button frm_insert_code" data-code="if 125 <?php echo esc_attr($skey) ?>][/if 125"><?php echo esc_html( $sname ) ?></a> |
130 | 130 | </li> |
131 | 131 | <?php |
132 | - $col = ( $col == 'one' ) ? 'two' : 'one'; |
|
133 | - unset($skey, $sname); |
|
134 | - } |
|
135 | - ?> |
|
132 | + $col = ( $col == 'one' ) ? 'two' : 'one'; |
|
133 | + unset($skey, $sname); |
|
134 | + } |
|
135 | + ?> |
|
136 | 136 | </ul> |
137 | 137 | <?php } else { |
138 | - FrmAppHelper::update_message('use inline conditional logic'); |
|
139 | - } ?> |
|
138 | + FrmAppHelper::update_message('use inline conditional logic'); |
|
139 | + } ?> |
|
140 | 140 | </div> |
141 | 141 | |
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="125 <?php echo esc_attr( $skey ) ?>" <?php echo is_array( $sname ) ? 'title="'. esc_attr( $sname['title'] ) .'"' : ''; ?>><?php echo is_array( $sname ) ? $sname['label'] : $sname; ?></a> |
150 | 150 | </li> |
151 | 151 | <?php |
152 | - $col = ($col == 'one') ? 'two' : 'one'; |
|
153 | - unset($skey, $sname); |
|
154 | - } |
|
155 | - ?> |
|
152 | + $col = ($col == 'one') ? 'two' : 'one'; |
|
153 | + unset($skey, $sname); |
|
154 | + } |
|
155 | + ?> |
|
156 | 156 | <?php if ( isset($file) ) { ?> |
157 | 157 | <li class="frm_col_<?php echo esc_attr( $col ) ?>"> |
158 | 158 | <a href="javascript:void(0)" class="frmbutton button frm_insert_code" data-code="<?php echo esc_attr($file->id) ?> size=thumbnail html=1"><?php _e( 'Image Size', 'formidable' ) ?></a> |
@@ -168,10 +168,10 @@ discard block |
||
168 | 168 | |
169 | 169 | <div class="clear"></div> |
170 | 170 | <?php |
171 | - //FrmAppHelper::update_message('all of the advanced shortcode options'); |
|
171 | + //FrmAppHelper::update_message('all of the advanced shortcode options'); |
|
172 | 172 | |
173 | - if ( isset($uid) && ! empty($user_fields) ) { |
|
174 | - $col = 'one'; ?> |
|
173 | + if ( isset($uid) && ! empty($user_fields) ) { |
|
174 | + $col = 'one'; ?> |
|
175 | 175 | <p class="howto"><?php _e( 'Insert user information', 'formidable' ) ?></p> |
176 | 176 | <ul class="frm_code_list"> |
177 | 177 | <?php foreach ( $user_fields as $uk => $uf ) { ?> |
@@ -179,14 +179,14 @@ discard block |
||
179 | 179 | <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> |
180 | 180 | </li> |
181 | 181 | <?php |
182 | - $col = ($col == 'one') ? 'two' : 'one'; |
|
183 | - unset($uf, $uk); |
|
184 | - } |
|
185 | - unset($uid); ?> |
|
182 | + $col = ($col == 'one') ? 'two' : 'one'; |
|
183 | + unset($uf, $uk); |
|
184 | + } |
|
185 | + unset($uid); ?> |
|
186 | 186 | </ul> |
187 | 187 | <?php } |
188 | 188 | |
189 | - if ( isset($repeat_field) ) { ?> |
|
189 | + if ( isset($repeat_field) ) { ?> |
|
190 | 190 | <div class="clear"></div> |
191 | 191 | <p class="howto"><?php _e( 'Repeating field options', 'formidable' ) ?></p> |
192 | 192 | <ul class="frm_code_list"> |
@@ -195,9 +195,9 @@ discard block |
||
195 | 195 | </li> |
196 | 196 | </ul> |
197 | 197 | <?php |
198 | - } |
|
198 | + } |
|
199 | 199 | |
200 | - if ( isset($dfe) ) { ?> |
|
200 | + if ( isset($dfe) ) { ?> |
|
201 | 201 | |
202 | 202 | <div class="clear"></div> |
203 | 203 | <p class="howto"><?php _e( 'Dynamic field options', 'formidable' ) ?></p> |
@@ -216,8 +216,8 @@ discard block |
||
216 | 216 | </div> |
217 | 217 | |
218 | 218 | <?php |
219 | - if ( $settings_tab ) { |
|
220 | - include(FrmAppHelper::plugin_path() .'/classes/views/frm-forms/mb_html_tab.php'); |
|
221 | - } |
|
222 | - ?> |
|
219 | + if ( $settings_tab ) { |
|
220 | + include(FrmAppHelper::plugin_path() .'/classes/views/frm-forms/mb_html_tab.php'); |
|
221 | + } |
|
222 | + ?> |
|
223 | 223 | </div> |
@@ -40,8 +40,8 @@ discard block |
||
40 | 40 | |
41 | 41 | if ( $f->type == 'data' ) { |
42 | 42 | //get all fields from linked form |
43 | - if ( isset($f->field_options['form_select']) && is_numeric($f->field_options['form_select']) ) { |
|
44 | - $linked_form = FrmDb::get_var( $wpdb->prefix .'frm_fields', array( 'id' => $f->field_options['form_select'] ), 'form_id' ); |
|
43 | + if ( isset( $f->field_options['form_select'] ) && is_numeric( $f->field_options['form_select'] ) ) { |
|
44 | + $linked_form = FrmDb::get_var( $wpdb->prefix . 'frm_fields', array( 'id' => $f->field_options['form_select'] ), 'form_id' ); |
|
45 | 45 | if ( ! in_array( $linked_form, $linked_forms ) ) { |
46 | 46 | $linked_forms[] = $linked_form; |
47 | 47 | $linked_fields = FrmField::getAll( array( 'fi.type not' => FrmField::no_save_fields(), 'fi.form_id' => $linked_form ) ); |
@@ -51,14 +51,14 @@ discard block |
||
51 | 51 | 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 ) ); |
52 | 52 | |
53 | 53 | $ldfe = $linked_field->id; |
54 | - unset($linked_field); |
|
54 | + unset( $linked_field ); |
|
55 | 55 | } |
56 | 56 | } |
57 | 57 | } |
58 | 58 | } |
59 | 59 | $dfe = $f->id; |
60 | 60 | } |
61 | - unset($f); |
|
61 | + unset( $f ); |
|
62 | 62 | } |
63 | 63 | } ?> |
64 | 64 | </ul> |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | </li> |
83 | 83 | <?php |
84 | 84 | $col = ( $col == 'one' ) ? 'two' : 'one'; |
85 | - unset($skey, $sname); |
|
85 | + unset( $skey, $sname ); |
|
86 | 86 | } |
87 | 87 | ?> |
88 | 88 | </ul> |
@@ -104,8 +104,8 @@ discard block |
||
104 | 104 | ?> |
105 | 105 | <li> |
106 | 106 | <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> |
107 | - <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> |
|
108 | - <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> |
|
107 | + <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> |
|
108 | + <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 | 109 | </li> |
110 | 110 | <?php |
111 | 111 | |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | } else if ( $f->type == 'file' ) { |
115 | 115 | $file = $f; |
116 | 116 | } |
117 | - unset($f); |
|
117 | + unset( $f ); |
|
118 | 118 | } |
119 | 119 | } ?> |
120 | 120 | </ul> |
@@ -126,16 +126,16 @@ discard block |
||
126 | 126 | foreach ( $cond_shortcodes as $skey => $sname ) { |
127 | 127 | ?> |
128 | 128 | <li class="frm_col_<?php echo esc_attr( $col ) ?>"> |
129 | - <a href="javascript:void(0)" class="frmbutton button frm_insert_code" data-code="if 125 <?php echo esc_attr($skey) ?>][/if 125"><?php echo esc_html( $sname ) ?></a> |
|
129 | + <a href="javascript:void(0)" class="frmbutton button frm_insert_code" data-code="if 125 <?php echo esc_attr( $skey ) ?>][/if 125"><?php echo esc_html( $sname ) ?></a> |
|
130 | 130 | </li> |
131 | 131 | <?php |
132 | 132 | $col = ( $col == 'one' ) ? 'two' : 'one'; |
133 | - unset($skey, $sname); |
|
133 | + unset( $skey, $sname ); |
|
134 | 134 | } |
135 | 135 | ?> |
136 | 136 | </ul> |
137 | 137 | <?php } else { |
138 | - FrmAppHelper::update_message('use inline conditional logic'); |
|
138 | + FrmAppHelper::update_message( 'use inline conditional logic' ); |
|
139 | 139 | } ?> |
140 | 140 | </div> |
141 | 141 | |
@@ -146,22 +146,22 @@ discard block |
||
146 | 146 | foreach ( $adv_shortcodes as $skey => $sname ) { |
147 | 147 | ?> |
148 | 148 | <li class="frm_col_<?php echo esc_attr( $col ) ?>"> |
149 | - <a href="javascript:void(0)" class="frmbutton button frm_insert_code <?php echo is_array( $sname ) ? 'frm_help' : ''; ?>" data-code="125 <?php echo esc_attr( $skey ) ?>" <?php echo is_array( $sname ) ? 'title="'. esc_attr( $sname['title'] ) .'"' : ''; ?>><?php echo is_array( $sname ) ? $sname['label'] : $sname; ?></a> |
|
149 | + <a href="javascript:void(0)" class="frmbutton button frm_insert_code <?php echo is_array( $sname ) ? 'frm_help' : ''; ?>" data-code="125 <?php echo esc_attr( $skey ) ?>" <?php echo is_array( $sname ) ? 'title="' . esc_attr( $sname['title'] ) . '"' : ''; ?>><?php echo is_array( $sname ) ? $sname['label'] : $sname; ?></a> |
|
150 | 150 | </li> |
151 | 151 | <?php |
152 | - $col = ($col == 'one') ? 'two' : 'one'; |
|
153 | - unset($skey, $sname); |
|
152 | + $col = ( $col == 'one' ) ? 'two' : 'one'; |
|
153 | + unset( $skey, $sname ); |
|
154 | 154 | } |
155 | 155 | ?> |
156 | - <?php if ( isset($file) ) { ?> |
|
156 | + <?php if ( isset( $file ) ) { ?> |
|
157 | 157 | <li class="frm_col_<?php echo esc_attr( $col ) ?>"> |
158 | - <a href="javascript:void(0)" class="frmbutton button frm_insert_code" data-code="<?php echo esc_attr($file->id) ?> size=thumbnail html=1"><?php _e( 'Image Size', 'formidable' ) ?></a> |
|
158 | + <a href="javascript:void(0)" class="frmbutton button frm_insert_code" data-code="<?php echo esc_attr( $file->id ) ?> size=thumbnail html=1"><?php _e( 'Image Size', 'formidable' ) ?></a> |
|
159 | 159 | </li> |
160 | - <li class="frm_col_<?php echo $col = (($col == 'one') ? 'two' : 'one') ?>"> |
|
161 | - <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> |
|
160 | + <li class="frm_col_<?php echo $col = ( ( $col == 'one' ) ? 'two' : 'one' ) ?>"> |
|
161 | + <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> |
|
162 | 162 | </li> |
163 | - <li class="frm_col_<?php echo $col = (($col == 'one') ? 'two' : 'one') ?>"> |
|
164 | - <a href="javascript:void(0)" class="frmbutton button frm_insert_code" data-code="<?php echo esc_attr($file->id) ?> show=label"><?php _e( 'Image Name', 'formidable' ) ?></a> |
|
163 | + <li class="frm_col_<?php echo $col = ( ( $col == 'one' ) ? 'two' : 'one' ) ?>"> |
|
164 | + <a href="javascript:void(0)" class="frmbutton button frm_insert_code" data-code="<?php echo esc_attr( $file->id ) ?> show=label"><?php _e( 'Image Name', 'formidable' ) ?></a> |
|
165 | 165 | </li> |
166 | 166 | <?php } ?> |
167 | 167 | </ul> |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | <?php |
171 | 171 | //FrmAppHelper::update_message('all of the advanced shortcode options'); |
172 | 172 | |
173 | - if ( isset($uid) && ! empty($user_fields) ) { |
|
173 | + if ( isset( $uid ) && ! empty( $user_fields ) ) { |
|
174 | 174 | $col = 'one'; ?> |
175 | 175 | <p class="howto"><?php _e( 'Insert user information', 'formidable' ) ?></p> |
176 | 176 | <ul class="frm_code_list"> |
@@ -179,14 +179,14 @@ discard block |
||
179 | 179 | <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> |
180 | 180 | </li> |
181 | 181 | <?php |
182 | - $col = ($col == 'one') ? 'two' : 'one'; |
|
183 | - unset($uf, $uk); |
|
182 | + $col = ( $col == 'one' ) ? 'two' : 'one'; |
|
183 | + unset( $uf, $uk ); |
|
184 | 184 | } |
185 | - unset($uid); ?> |
|
185 | + unset( $uid ); ?> |
|
186 | 186 | </ul> |
187 | 187 | <?php } |
188 | 188 | |
189 | - if ( isset($repeat_field) ) { ?> |
|
189 | + if ( isset( $repeat_field ) ) { ?> |
|
190 | 190 | <div class="clear"></div> |
191 | 191 | <p class="howto"><?php _e( 'Repeating field options', 'formidable' ) ?></p> |
192 | 192 | <ul class="frm_code_list"> |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | <?php |
198 | 198 | } |
199 | 199 | |
200 | - if ( isset($dfe) ) { ?> |
|
200 | + if ( isset( $dfe ) ) { ?> |
|
201 | 201 | |
202 | 202 | <div class="clear"></div> |
203 | 203 | <p class="howto"><?php _e( 'Dynamic field options', 'formidable' ) ?></p> |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | <li class="frm_col_one"> |
206 | 206 | <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> |
207 | 207 | </li> |
208 | - <?php if ( isset($ldfe) ) { ?> |
|
208 | + <?php if ( isset( $ldfe ) ) { ?> |
|
209 | 209 | <li class="frm_col_two"> |
210 | 210 | <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> |
211 | 211 | </li> |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | |
218 | 218 | <?php |
219 | 219 | if ( $settings_tab ) { |
220 | - include(FrmAppHelper::plugin_path() .'/classes/views/frm-forms/mb_html_tab.php'); |
|
220 | + include( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/mb_html_tab.php' ); |
|
221 | 221 | } |
222 | 222 | ?> |
223 | 223 | </div> |
@@ -1,4 +1,4 @@ |
||
1 | 1 | <div class="frm_update_msg <?php echo esc_attr( $class ) ?>"> |
2 | 2 | This plugin version does not give you access to <?php echo $features ?>.<br/> |
3 | - <a href="http://formidablepro.com/pricing/" target="_blank">Compare</a> our plans or enter your license number <a href="<?php echo esc_url( admin_url('admin.php?page=formidable-settings') ) ?>">here</a> |
|
3 | + <a href="http://formidablepro.com/pricing/" target="_blank">Compare</a> our plans or enter your license number <a href="<?php echo esc_url( admin_url( 'admin.php?page=formidable-settings' ) ) ?>">here</a> |
|
4 | 4 | </div> |
@@ -1,14 +1,14 @@ discard block |
||
1 | 1 | <p class="frm_no_top_margin"> |
2 | - <label for="frm_submit_style"><input type="checkbox" name="<?php echo esc_attr( $frm_style->get_field_name('submit_style') ) ?>" id="frm_submit_style" <?php echo $style->post_content['submit_style'] ? 'checked="checked"': ''; ?> value="1" /> <?php _e( 'Disable submit button styling', 'formidable' ); ?> <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Note: If disabled, you may not see the change take effect until you make 2 more styling changes or click "Update Options".', 'formidable' ) ?>" ></span></label> |
|
2 | + <label for="frm_submit_style"><input type="checkbox" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_style' ) ) ?>" id="frm_submit_style" <?php echo $style->post_content['submit_style'] ? 'checked="checked"' : ''; ?> value="1" /> <?php _e( 'Disable submit button styling', 'formidable' ); ?> <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Note: If disabled, you may not see the change take effect until you make 2 more styling changes or click "Update Options".', 'formidable' ) ?>" ></span></label> |
|
3 | 3 | </p> |
4 | 4 | |
5 | 5 | <div class="posttypediv"> |
6 | 6 | <ul class="posttype-tabs add-menu-item-tabs"> |
7 | 7 | <li <?php echo ( 'default' == $current_tab ? ' class="tabs"' : '' ); ?>> |
8 | - <a href="<?php echo esc_url('?page=formidable-styles&page-tab=default#tabs-panel-button-default') ?>" class="nav-tab-link" data-type="tabs-panel-button-default" ><?php _e( 'Default', 'formidable' ) ?></a> |
|
8 | + <a href="<?php echo esc_url( '?page=formidable-styles&page-tab=default#tabs-panel-button-default' ) ?>" class="nav-tab-link" data-type="tabs-panel-button-default" ><?php _e( 'Default', 'formidable' ) ?></a> |
|
9 | 9 | </li> |
10 | 10 | <li <?php echo ( 'button-hover' == $current_tab ? ' class="tabs"' : '' ); ?>> |
11 | - <a href="<?php echo esc_url('?page=formidable-styles&page-tab=button-hover#page-button-hover') ?>" class="nav-tab-link" data-type="tabs-panel-button-hover" ><?php _e( 'Hover', 'formidable' ) ?></a> |
|
11 | + <a href="<?php echo esc_url( '?page=formidable-styles&page-tab=button-hover#page-button-hover' ) ?>" class="nav-tab-link" data-type="tabs-panel-button-hover" ><?php _e( 'Hover', 'formidable' ) ?></a> |
|
12 | 12 | </li> |
13 | 13 | <li <?php echo ( 'button-click' == $current_tab ? ' class="tabs"' : '' ); ?>> |
14 | 14 | <a href="?page=formidable-styles&page-tab=button-click#tabs-panel-button-click" class="nav-tab-link" data-type="tabs-panel-button-click"><?php _e( 'Click', 'formidable' ) ?></a> |
@@ -20,22 +20,22 @@ discard block |
||
20 | 20 | ?>"> |
21 | 21 | <div class="field-group field-group-border clearfix"> |
22 | 22 | <label><?php _e( 'Size', 'formidable' ) ?></label> |
23 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_font_size') ) ?>" id="frm_submit_font_size" value="<?php echo esc_attr( $style->post_content['submit_font_size'] ) ?>" size="3" /> |
|
23 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_font_size' ) ) ?>" id="frm_submit_font_size" value="<?php echo esc_attr( $style->post_content['submit_font_size'] ) ?>" size="3" /> |
|
24 | 24 | </div> |
25 | 25 | |
26 | 26 | <div class="field-group clearfix"> |
27 | 27 | <label><?php _e( 'Width', 'formidable' ) ?></label> |
28 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_width') ) ?>" id="frm_submit_width" value="<?php echo esc_attr( $style->post_content['submit_width'] ) ?>" size="5" /> |
|
28 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_width' ) ) ?>" id="frm_submit_width" value="<?php echo esc_attr( $style->post_content['submit_width'] ) ?>" size="5" /> |
|
29 | 29 | </div> |
30 | 30 | |
31 | 31 | <div class="field-group clearfix"> |
32 | 32 | <label><?php _e( 'Height', 'formidable' ) ?></label> |
33 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_height') ) ?>" id="frm_submit_height" value="<?php echo esc_attr( $style->post_content['submit_height'] ) ?>" size="5" /> |
|
33 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_height' ) ) ?>" id="frm_submit_height" value="<?php echo esc_attr( $style->post_content['submit_height'] ) ?>" size="5" /> |
|
34 | 34 | </div> |
35 | 35 | |
36 | 36 | <div class="field-group clearfix"> |
37 | 37 | <label><?php _e( 'Weight', 'formidable' ) ?></label> |
38 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('submit_weight') ) ?>" id="frm_submit_weight"> |
|
38 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_weight' ) ) ?>" id="frm_submit_weight"> |
|
39 | 39 | <?php foreach ( FrmStyle::get_bold_options() as $value => $name ) { ?> |
40 | 40 | <option value="<?php echo esc_attr( $value ) ?>" <?php selected( $style->post_content['submit_weight'], $value ) ?>><?php echo $name ?></option> |
41 | 41 | <?php } ?> |
@@ -44,48 +44,48 @@ discard block |
||
44 | 44 | |
45 | 45 | <div class="field-group clearfix"> |
46 | 46 | <label><?php _e( 'Corners', 'formidable' ) ?></label> |
47 | - <input type="text" value="<?php echo esc_attr( $style->post_content['submit_border_radius'] ) ?>" name="<?php echo esc_attr( $frm_style->get_field_name('submit_border_radius') ) ?>" id="frm_submit_border_radius" size="4"/> |
|
47 | + <input type="text" value="<?php echo esc_attr( $style->post_content['submit_border_radius'] ) ?>" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_border_radius' ) ) ?>" id="frm_submit_border_radius" size="4"/> |
|
48 | 48 | </div> |
49 | 49 | |
50 | 50 | <div class="field-group field-group-border clearfix"> |
51 | 51 | <label><?php _e( 'BG Color', 'formidable' ) ?></label> |
52 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_bg_color') ) ?>" id="frm_submit_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_bg_color'] ) ?>" /> |
|
52 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_bg_color' ) ) ?>" id="frm_submit_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_bg_color'] ) ?>" /> |
|
53 | 53 | </div> |
54 | 54 | |
55 | 55 | <div class="field-group clearfix"> |
56 | 56 | <label><?php _e( 'Text', 'formidable' ) ?></label> |
57 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_text_color') ) ?>" id="frm_submit_text_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_text_color'] ) ?>" /> |
|
57 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_text_color' ) ) ?>" id="frm_submit_text_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_text_color'] ) ?>" /> |
|
58 | 58 | </div> |
59 | 59 | |
60 | 60 | <div class="field-group field-group-border clearfix"> |
61 | 61 | <label><?php _e( 'Border', 'formidable' ) ?></label> |
62 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_border_color') ) ?>" id="frm_submit_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_border_color'] ) ?>" /> |
|
62 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_border_color' ) ) ?>" id="frm_submit_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_border_color'] ) ?>" /> |
|
63 | 63 | </div> |
64 | 64 | |
65 | 65 | <div class="field-group clearfix"> |
66 | 66 | <label><?php _e( 'Thickness', 'formidable' ) ?></label> |
67 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_border_width') ) ?>" id="frm_submit_border_width" value="<?php echo esc_attr( $style->post_content['submit_border_width'] ) ?>" size="4" /> |
|
67 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_border_width' ) ) ?>" id="frm_submit_border_width" value="<?php echo esc_attr( $style->post_content['submit_border_width'] ) ?>" size="4" /> |
|
68 | 68 | </div> |
69 | 69 | |
70 | 70 | <div class="field-group clearfix"> |
71 | 71 | <label><?php _e( 'Shadow', 'formidable' ) ?></label> |
72 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_shadow_color') ) ?>" id="frm_submit_shadow_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_shadow_color'] ) ?>" /> |
|
72 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_shadow_color' ) ) ?>" id="frm_submit_shadow_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_shadow_color'] ) ?>" /> |
|
73 | 73 | </div> |
74 | 74 | |
75 | 75 | <div class="clear"></div> |
76 | 76 | <div class="field-group field-group-border frm-full"> |
77 | 77 | <label><?php _e( 'BG Image', 'formidable' ) ?></label> |
78 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_bg_img') ) ?>" id="frm_submit_bg_img" value="<?php echo esc_attr( $style->post_content['submit_bg_img'] ) ?>" /> |
|
78 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_bg_img' ) ) ?>" id="frm_submit_bg_img" value="<?php echo esc_attr( $style->post_content['submit_bg_img'] ) ?>" /> |
|
79 | 79 | </div> |
80 | 80 | |
81 | 81 | <div class="field-group field-group-border clearfix"> |
82 | 82 | <label><?php _e( 'Margin', 'formidable' ) ?></label> |
83 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_margin') ) ?>" id="frm_submit_margin" value="<?php echo esc_attr( $style->post_content['submit_margin'] ) ?>" size="6" /> |
|
83 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_margin' ) ) ?>" id="frm_submit_margin" value="<?php echo esc_attr( $style->post_content['submit_margin'] ) ?>" size="6" /> |
|
84 | 84 | </div> |
85 | 85 | |
86 | 86 | <div class="field-group clearfix"> |
87 | 87 | <label><?php _e( 'Padding', 'formidable' ) ?></label> |
88 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_padding') ) ?>" id="frm_submit_padding" value="<?php echo esc_attr( $style->post_content['submit_padding'] ) ?>" size="6" /> |
|
88 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_padding' ) ) ?>" id="frm_submit_padding" value="<?php echo esc_attr( $style->post_content['submit_padding'] ) ?>" size="6" /> |
|
89 | 89 | </div> |
90 | 90 | <div class="clear"></div> |
91 | 91 | </div><!-- /.tabs-panel --> |
@@ -95,17 +95,17 @@ discard block |
||
95 | 95 | ?>"> |
96 | 96 | <div class="field-group clearfix"> |
97 | 97 | <label><?php _e( 'BG Color', 'formidable' ) ?></label> |
98 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_hover_bg_color') ) ?>" id="frm_submit_hover_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_hover_bg_color'] ) ?>" /> |
|
98 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_hover_bg_color' ) ) ?>" id="frm_submit_hover_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_hover_bg_color'] ) ?>" /> |
|
99 | 99 | </div> |
100 | 100 | |
101 | 101 | <div class="field-group clearfix"> |
102 | 102 | <label><?php _e( 'Text', 'formidable' ) ?></label> |
103 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_hover_color') ) ?>" id="frm_submit_hover_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_hover_color'] ) ?>" /> |
|
103 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_hover_color' ) ) ?>" id="frm_submit_hover_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_hover_color'] ) ?>" /> |
|
104 | 104 | </div> |
105 | 105 | |
106 | 106 | <div class="field-group clearfix"> |
107 | 107 | <label><?php _e( 'Border', 'formidable' ) ?></label> |
108 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_hover_border_color') ) ?>" id="frm_submit_hover_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_hover_border_color'] ) ?>" /> |
|
108 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_hover_border_color' ) ) ?>" id="frm_submit_hover_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_hover_border_color'] ) ?>" /> |
|
109 | 109 | </div> |
110 | 110 | |
111 | 111 | <div class="clear"></div> |
@@ -116,17 +116,17 @@ discard block |
||
116 | 116 | ?>"> |
117 | 117 | <div class="field-group clearfix"> |
118 | 118 | <label><?php _e( 'BG Color', 'formidable' ) ?></label> |
119 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_active_bg_color') ) ?>" id="frm_submit_active_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_active_bg_color'] ) ?>" /> |
|
119 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_active_bg_color' ) ) ?>" id="frm_submit_active_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_active_bg_color'] ) ?>" /> |
|
120 | 120 | </div> |
121 | 121 | |
122 | 122 | <div class="field-group clearfix"> |
123 | 123 | <label><?php _e( 'Text', 'formidable' ) ?></label> |
124 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_active_color') ) ?>" id="frm_submit_active_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_active_color'] ) ?>" /> |
|
124 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_active_color' ) ) ?>" id="frm_submit_active_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_active_color'] ) ?>" /> |
|
125 | 125 | </div> |
126 | 126 | |
127 | 127 | <div class="field-group clearfix"> |
128 | 128 | <label><?php _e( 'Border', 'formidable' ) ?></label> |
129 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_active_border_color') ) ?>" id="frm_submit_active_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_active_border_color'] ) ?>" /> |
|
129 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_active_border_color' ) ) ?>" id="frm_submit_active_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_active_border_color'] ) ?>" /> |
|
130 | 130 | </div> |
131 | 131 | |
132 | 132 | <div class="clear"></div> |
@@ -1,26 +1,26 @@ discard block |
||
1 | 1 | <div class="field-group clearfix frm-half frm-first-row"> |
2 | 2 | <label><?php _e( 'Radio', 'formidable' ) ?></label> |
3 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('radio_align') ) ?>" id="frm_radio_align"> |
|
4 | - <option value="block" <?php selected($style->post_content['radio_align'], 'block') ?>><?php _e( 'Multiple Rows' , 'formidable' ) ?></option> |
|
5 | - <option value="inline" <?php selected($style->post_content['radio_align'], 'inline') ?>><?php _e( 'Single Row' , 'formidable' ) ?></option> |
|
3 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'radio_align' ) ) ?>" id="frm_radio_align"> |
|
4 | + <option value="block" <?php selected( $style->post_content['radio_align'], 'block' ) ?>><?php _e( 'Multiple Rows', 'formidable' ) ?></option> |
|
5 | + <option value="inline" <?php selected( $style->post_content['radio_align'], 'inline' ) ?>><?php _e( 'Single Row', 'formidable' ) ?></option> |
|
6 | 6 | </select> |
7 | 7 | </div> |
8 | 8 | |
9 | 9 | <div class="field-group clearfix frm-half frm-first-row"> |
10 | 10 | <label><?php _e( 'Check Box', 'formidable' ) ?></label> |
11 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('check_align') ) ?>" id="frm_check_align"> |
|
12 | - <option value="block" <?php selected($style->post_content['check_align'], 'block') ?>><?php _e( 'Multiple Rows' , 'formidable' ) ?></option> |
|
13 | - <option value="inline" <?php selected($style->post_content['check_align'], 'inline') ?>><?php _e( 'Single Row' , 'formidable' ) ?></option> |
|
11 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'check_align' ) ) ?>" id="frm_check_align"> |
|
12 | + <option value="block" <?php selected( $style->post_content['check_align'], 'block' ) ?>><?php _e( 'Multiple Rows', 'formidable' ) ?></option> |
|
13 | + <option value="inline" <?php selected( $style->post_content['check_align'], 'inline' ) ?>><?php _e( 'Single Row', 'formidable' ) ?></option> |
|
14 | 14 | </select> |
15 | 15 | </div> |
16 | 16 | |
17 | 17 | <div class="field-group field-group-background clearfix"> |
18 | 18 | <label><?php _e( 'Color', 'formidable' ) ?></label> |
19 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('check_label_color') ) ?>" id="frm_check_label_color" class="hex" value="<?php echo esc_attr( $style->post_content['check_label_color'] ) ?>" /> |
|
19 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'check_label_color' ) ) ?>" id="frm_check_label_color" class="hex" value="<?php echo esc_attr( $style->post_content['check_label_color'] ) ?>" /> |
|
20 | 20 | </div> |
21 | 21 | <div class="field-group clearfix"> |
22 | 22 | <label><?php _e( 'Weight', 'formidable' ) ?></label> |
23 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('check_weight') ) ?>" id="frm_check_weight"> |
|
23 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'check_weight' ) ) ?>" id="frm_check_weight"> |
|
24 | 24 | <?php foreach ( FrmStyle::get_bold_options() as $value => $name ) { ?> |
25 | 25 | <option value="<?php echo esc_attr( $value ) ?>" <?php selected( $style->post_content['check_weight'], $value ) ?>><?php echo $name ?></option> |
26 | 26 | <?php } ?> |
@@ -28,5 +28,5 @@ discard block |
||
28 | 28 | </div> |
29 | 29 | <div class="field-group clearfix"> |
30 | 30 | <label><?php _e( 'Size', 'formidable' ) ?></label> |
31 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('check_font_size') ) ?>" id="frm_check_font_size" value="<?php echo esc_attr( $style->post_content['check_font_size'] ) ?>" size="3" /> |
|
31 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'check_font_size' ) ) ?>" id="frm_check_font_size" value="<?php echo esc_attr( $style->post_content['check_font_size'] ) ?>" size="3" /> |
|
32 | 32 | </div> |
@@ -2,19 +2,19 @@ |
||
2 | 2 | $jquery_themes = FrmStylesHelper::jquery_themes(); |
3 | 3 | |
4 | 4 | $alt_img_name = array( |
5 | - 'ui-lightness' => 'ui_light', |
|
6 | - 'ui-darkness' => 'ui_dark', |
|
7 | - 'start' => 'start_menu', |
|
8 | - 'redmond' => 'windoze', |
|
9 | - 'vader' => 'black_matte', |
|
10 | - 'mint-choc' => 'mint_choco', |
|
5 | + 'ui-lightness' => 'ui_light', |
|
6 | + 'ui-darkness' => 'ui_dark', |
|
7 | + 'start' => 'start_menu', |
|
8 | + 'redmond' => 'windoze', |
|
9 | + 'vader' => 'black_matte', |
|
10 | + 'mint-choc' => 'mint_choco', |
|
11 | 11 | ); |
12 | 12 | $theme_names = array_keys($jquery_themes); |
13 | 13 | $theme_names = array_combine($theme_names, $theme_names); |
14 | 14 | |
15 | 15 | foreach ( $theme_names as $k => $v ) { |
16 | 16 | $theme_names[ $k ] = str_replace( '-', '_', $v ); |
17 | - unset($k, $v); |
|
17 | + unset($k, $v); |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | $alt_img_name = array_merge($theme_names, $alt_img_name); |
@@ -9,32 +9,32 @@ |
||
9 | 9 | 'vader' => 'black_matte', |
10 | 10 | 'mint-choc' => 'mint_choco', |
11 | 11 | ); |
12 | -$theme_names = array_keys($jquery_themes); |
|
13 | -$theme_names = array_combine($theme_names, $theme_names); |
|
12 | +$theme_names = array_keys( $jquery_themes ); |
|
13 | +$theme_names = array_combine( $theme_names, $theme_names ); |
|
14 | 14 | |
15 | 15 | foreach ( $theme_names as $k => $v ) { |
16 | - $theme_names[ $k ] = str_replace( '-', '_', $v ); |
|
17 | - unset($k, $v); |
|
16 | + $theme_names[$k] = str_replace( '-', '_', $v ); |
|
17 | + unset( $k, $v ); |
|
18 | 18 | } |
19 | 19 | |
20 | -$alt_img_name = array_merge($theme_names, $alt_img_name); |
|
21 | -unset($theme_names); |
|
20 | +$alt_img_name = array_merge( $theme_names, $alt_img_name ); |
|
21 | +unset( $theme_names ); |
|
22 | 22 | |
23 | 23 | ?> |
24 | 24 | |
25 | 25 | <div class="field-group clearfix frm-half frm-first-row"> |
26 | 26 | <label><?php _e( 'Theme', 'formidable' ) ?></label> |
27 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('theme_selector') ) ?>"> |
|
27 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'theme_selector' ) ) ?>"> |
|
28 | 28 | <?php foreach ( $jquery_themes as $theme_name => $theme_title ) { ?> |
29 | - <option value="<?php echo esc_attr( $theme_name ) ?>" id="90_<?php echo esc_attr( $alt_img_name[ $theme_name ] ); ?>" <?php selected($theme_title, $style->post_content['theme_name']) ?>><?php echo esc_html( $theme_title ) ?></option> |
|
29 | + <option value="<?php echo esc_attr( $theme_name ) ?>" id="90_<?php echo esc_attr( $alt_img_name[$theme_name] ); ?>" <?php selected( $theme_title, $style->post_content['theme_name'] ) ?>><?php echo esc_html( $theme_title ) ?></option> |
|
30 | 30 | <?php } ?> |
31 | - <option value="-1" <?php selected('-1', $style->post_content['theme_name']) ?>>— <?php _e( 'None', 'formidable' ) ?> —</option> |
|
31 | + <option value="-1" <?php selected( '-1', $style->post_content['theme_name'] ) ?>>— <?php _e( 'None', 'formidable' ) ?> —</option> |
|
32 | 32 | </select> |
33 | 33 | </div> |
34 | 34 | |
35 | 35 | <div class="field-group clearfix frm-half frm-first-row frm_right_text"> |
36 | - <img id="frm_show_cal" src="//jqueryui.com/resources/images/themeGallery/theme_90_<?php echo esc_attr( $alt_img_name[ $style->post_content['theme_css'] ] ) ?>.png" alt="" /> |
|
37 | - <input type="hidden" value="<?php echo esc_attr($style->post_content['theme_css']) ?>" id="frm_theme_css" name="<?php echo esc_attr( $frm_style->get_field_name('theme_css') ) ?>" /> |
|
38 | - <input type="hidden" value="<?php echo esc_attr($style->post_content['theme_name']) ?>" id="frm_theme_name" name="<?php echo esc_attr( $frm_style->get_field_name('theme_name') ) ?>" /> |
|
36 | + <img id="frm_show_cal" src="//jqueryui.com/resources/images/themeGallery/theme_90_<?php echo esc_attr( $alt_img_name[$style->post_content['theme_css']] ) ?>.png" alt="" /> |
|
37 | + <input type="hidden" value="<?php echo esc_attr( $style->post_content['theme_css'] ) ?>" id="frm_theme_css" name="<?php echo esc_attr( $frm_style->get_field_name( 'theme_css' ) ) ?>" /> |
|
38 | + <input type="hidden" value="<?php echo esc_attr( $style->post_content['theme_name'] ) ?>" id="frm_theme_name" name="<?php echo esc_attr( $frm_style->get_field_name( 'theme_name' ) ) ?>" /> |
|
39 | 39 | </div> |
40 | 40 | <div class="clear"></div> |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | <a href="?page=formidable-styles&page-tab=default#tabs-panel-default-color" class="nav-tab-link" data-type="tabs-panel-default-color"><?php _e( 'Default', 'formidable' ) ?></a> |
5 | 5 | </li> |
6 | 6 | <li <?php echo ( 'active-color' == $current_tab ? ' class="tabs"' : '' ); ?>> |
7 | - <a href="<?php echo esc_url('?page=formidable-styles&page-tab=active-color#page-active-color') ?>" class="nav-tab-link" data-type="tabs-panel-active-color"><?php _e( 'Active', 'formidable' ) ?></a> |
|
7 | + <a href="<?php echo esc_url( '?page=formidable-styles&page-tab=active-color#page-active-color' ) ?>" class="nav-tab-link" data-type="tabs-panel-active-color"><?php _e( 'Active', 'formidable' ) ?></a> |
|
8 | 8 | </li> |
9 | 9 | <li <?php echo ( 'active-error' == $current_tab ? ' class="tabs"' : '' ); ?>> |
10 | 10 | <a href="?page=formidable-styles&page-tab=active-error#tabs-panel-active-error" class="nav-tab-link" data-type="tabs-panel-active-error"><?php _e( 'Error', 'formidable' ) ?></a> |
@@ -19,28 +19,28 @@ discard block |
||
19 | 19 | ?>"> |
20 | 20 | <div class="field-group field-group-border clearfix"> |
21 | 21 | <label class="background"><?php _e( 'BG color', 'formidable' ) ?></label> |
22 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('bg_color') ) ?>" id="frm_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['bg_color'] ) ?>" /> |
|
22 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'bg_color' ) ) ?>" id="frm_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['bg_color'] ) ?>" /> |
|
23 | 23 | </div> |
24 | 24 | <div class="field-group clearfix"> |
25 | 25 | <label><?php _e( 'Text', 'formidable' ) ?></label> |
26 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('text_color') ) ?>" id="frm_text_color" class="hex" value="<?php echo esc_attr( $style->post_content['text_color'] ) ?>" /> |
|
26 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'text_color' ) ) ?>" id="frm_text_color" class="hex" value="<?php echo esc_attr( $style->post_content['text_color'] ) ?>" /> |
|
27 | 27 | </div> |
28 | 28 | |
29 | 29 | <div class="field-group field-group-border clearfix"> |
30 | 30 | <label><?php _e( 'Border', 'formidable' ) ?></label> |
31 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('border_color') ) ?>" id="frm_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['border_color'] ) ?>" /> |
|
31 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'border_color' ) ) ?>" id="frm_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['border_color'] ) ?>" /> |
|
32 | 32 | </div> |
33 | 33 | <div class="field-group clearfix"> |
34 | 34 | <label><?php _e( 'Thickness', 'formidable' ) ?></label> |
35 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('field_border_width') ) ?>" id="frm_field_border_width" value="<?php echo esc_attr( $style->post_content['field_border_width'] ) ?>" size="4" /> |
|
35 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'field_border_width' ) ) ?>" id="frm_field_border_width" value="<?php echo esc_attr( $style->post_content['field_border_width'] ) ?>" size="4" /> |
|
36 | 36 | </div> |
37 | 37 | <div class="field-group clearfix"> |
38 | 38 | <label><?php _e( 'Style', 'formidable' ) ?></label> |
39 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('field_border_style') ) ?>" id="frm_field_border_style"> |
|
40 | - <option value="solid" <?php selected($style->post_content['field_border_style'], 'solid') ?>><?php _e( 'solid', 'formidable' ) ?></option> |
|
41 | - <option value="dotted" <?php selected($style->post_content['field_border_style'], 'dotted') ?>><?php _e( 'dotted', 'formidable' ) ?></option> |
|
42 | - <option value="dashed" <?php selected($style->post_content['field_border_style'], 'dashed') ?>><?php _e( 'dashed', 'formidable' ) ?></option> |
|
43 | - <option value="double" <?php selected($style->post_content['field_border_style'], 'double') ?>><?php _e( 'double', 'formidable' ) ?></option> |
|
39 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'field_border_style' ) ) ?>" id="frm_field_border_style"> |
|
40 | + <option value="solid" <?php selected( $style->post_content['field_border_style'], 'solid' ) ?>><?php _e( 'solid', 'formidable' ) ?></option> |
|
41 | + <option value="dotted" <?php selected( $style->post_content['field_border_style'], 'dotted' ) ?>><?php _e( 'dotted', 'formidable' ) ?></option> |
|
42 | + <option value="dashed" <?php selected( $style->post_content['field_border_style'], 'dashed' ) ?>><?php _e( 'dashed', 'formidable' ) ?></option> |
|
43 | + <option value="double" <?php selected( $style->post_content['field_border_style'], 'double' ) ?>><?php _e( 'double', 'formidable' ) ?></option> |
|
44 | 44 | </select> |
45 | 45 | </div> |
46 | 46 | <div class="clear"></div> |
@@ -51,11 +51,11 @@ discard block |
||
51 | 51 | ?>"> |
52 | 52 | <div class="field-group field-group-border clearfix"> |
53 | 53 | <label class="background"><?php _e( 'BG color', 'formidable' ) ?></label> |
54 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('bg_color_active') ) ?>" id="frm_bg_color_active" class="hex" value="<?php echo esc_attr( $style->post_content['bg_color_active'] ) ?>" /> |
|
54 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'bg_color_active' ) ) ?>" id="frm_bg_color_active" class="hex" value="<?php echo esc_attr( $style->post_content['bg_color_active'] ) ?>" /> |
|
55 | 55 | </div> |
56 | 56 | <div class="field-group clearfix"> |
57 | 57 | <label><?php _e( 'Border', 'formidable' ) ?></label> |
58 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('border_color_active') ) ?>" id="frm_border_color_active" class="hex" value="<?php echo esc_attr( $style->post_content['border_color_active'] ) ?>" /> |
|
58 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'border_color_active' ) ) ?>" id="frm_border_color_active" class="hex" value="<?php echo esc_attr( $style->post_content['border_color_active'] ) ?>" /> |
|
59 | 59 | </div> |
60 | 60 | <div class="clear"></div> |
61 | 61 | </div><!-- /.tabs-panel --> |
@@ -65,28 +65,28 @@ discard block |
||
65 | 65 | ?>"> |
66 | 66 | <div class="field-group field-group-border clearfix"> |
67 | 67 | <label class="background"><?php _e( 'BG color', 'formidable' ) ?></label> |
68 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('bg_color_error') ) ?>" id="frm_bg_color_error" class="hex" value="<?php echo esc_attr( $style->post_content['bg_color_error'] ) ?>" /> |
|
68 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'bg_color_error' ) ) ?>" id="frm_bg_color_error" class="hex" value="<?php echo esc_attr( $style->post_content['bg_color_error'] ) ?>" /> |
|
69 | 69 | </div> |
70 | 70 | <div class="field-group clearfix"> |
71 | 71 | <label><?php _e( 'Text', 'formidable' ) ?></label> |
72 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('text_color_error') ) ?>" id="frm_text_color_error" class="hex" value="<?php echo esc_attr( $style->post_content['text_color_error'] ) ?>" /> |
|
72 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'text_color_error' ) ) ?>" id="frm_text_color_error" class="hex" value="<?php echo esc_attr( $style->post_content['text_color_error'] ) ?>" /> |
|
73 | 73 | </div> |
74 | 74 | |
75 | 75 | <div class="field-group field-group-border clearfix"> |
76 | 76 | <label><?php _e( 'Border', 'formidable' ) ?></label> |
77 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('border_color_error') ) ?>" id="frm_border_color_error" class="hex" value="<?php echo esc_attr( $style->post_content['border_color_error'] ) ?>" /> |
|
77 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'border_color_error' ) ) ?>" id="frm_border_color_error" class="hex" value="<?php echo esc_attr( $style->post_content['border_color_error'] ) ?>" /> |
|
78 | 78 | </div> |
79 | 79 | <div class="field-group clearfix"> |
80 | 80 | <label><?php _e( 'Thickness', 'formidable' ) ?></label> |
81 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('border_width_error') ) ?>" id="frm_border_width_error" value="<?php echo esc_attr( $style->post_content['border_width_error'] ) ?>" size="4" /> |
|
81 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'border_width_error' ) ) ?>" id="frm_border_width_error" value="<?php echo esc_attr( $style->post_content['border_width_error'] ) ?>" size="4" /> |
|
82 | 82 | </div> |
83 | 83 | <div class="field-group clearfix"> |
84 | 84 | <label><?php _e( 'Style', 'formidable' ) ?></label> |
85 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('border_style_error') ) ?>" id="frm_border_style_error"> |
|
86 | - <option value="solid" <?php selected($style->post_content['border_style_error'], 'solid') ?>><?php _e( 'solid', 'formidable' ) ?></option> |
|
87 | - <option value="dotted" <?php selected($style->post_content['border_style_error'], 'dotted') ?>><?php _e( 'dotted', 'formidable' ) ?></option> |
|
88 | - <option value="dashed" <?php selected($style->post_content['border_style_error'], 'dashed') ?>><?php _e( 'dashed', 'formidable' ) ?></option> |
|
89 | - <option value="double" <?php selected($style->post_content['border_style_error'], 'double') ?>><?php _e( 'double', 'formidable' ) ?></option> |
|
85 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'border_style_error' ) ) ?>" id="frm_border_style_error"> |
|
86 | + <option value="solid" <?php selected( $style->post_content['border_style_error'], 'solid' ) ?>><?php _e( 'solid', 'formidable' ) ?></option> |
|
87 | + <option value="dotted" <?php selected( $style->post_content['border_style_error'], 'dotted' ) ?>><?php _e( 'dotted', 'formidable' ) ?></option> |
|
88 | + <option value="dashed" <?php selected( $style->post_content['border_style_error'], 'dashed' ) ?>><?php _e( 'dashed', 'formidable' ) ?></option> |
|
89 | + <option value="double" <?php selected( $style->post_content['border_style_error'], 'double' ) ?>><?php _e( 'double', 'formidable' ) ?></option> |
|
90 | 90 | </select> |
91 | 91 | </div> |
92 | 92 | |
@@ -98,16 +98,16 @@ discard block |
||
98 | 98 | ?>"> |
99 | 99 | <div class="field-group field-group-border clearfix"> |
100 | 100 | <label class="background"><?php _e( 'BG color', 'formidable' ) ?></label> |
101 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('bg_color_disabled') ) ?>" id="frm_bg_color_disabled" class="hex" value="<?php echo esc_attr( $style->post_content['bg_color_disabled'] ) ?>" /> |
|
101 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'bg_color_disabled' ) ) ?>" id="frm_bg_color_disabled" class="hex" value="<?php echo esc_attr( $style->post_content['bg_color_disabled'] ) ?>" /> |
|
102 | 102 | </div> |
103 | 103 | <div class="field-group clearfix"> |
104 | 104 | <label><?php _e( 'Text', 'formidable' ) ?></label> |
105 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('text_color_disabled') ) ?>" id="frm_text_color_disabled" class="hex" value="<?php echo esc_attr( $style->post_content['text_color_disabled'] ) ?>" /> |
|
105 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'text_color_disabled' ) ) ?>" id="frm_text_color_disabled" class="hex" value="<?php echo esc_attr( $style->post_content['text_color_disabled'] ) ?>" /> |
|
106 | 106 | </div> |
107 | 107 | |
108 | 108 | <div class="field-group clearfix"> |
109 | 109 | <label><?php _e( 'Border', 'formidable' ) ?></label> |
110 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('border_color_disabled') ) ?>" id="frm_border_color_disabled" class="hex" value="<?php echo esc_attr( $style->post_content['border_color_disabled'] ) ?>" /> |
|
110 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'border_color_disabled' ) ) ?>" id="frm_border_color_disabled" class="hex" value="<?php echo esc_attr( $style->post_content['border_color_disabled'] ) ?>" /> |
|
111 | 111 | </div> |
112 | 112 | <div class="clear"></div> |
113 | 113 | </div><!-- /.tabs-panel --> |
@@ -1,10 +1,10 @@ discard block |
||
1 | 1 | <div class="field-group field-group-background clearfix frm-first-row"> |
2 | 2 | <label><?php _e( 'Color', 'formidable' ) ?></label> |
3 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('description_color') ) ?>" id="frm_description_color" class="hex" value="<?php echo esc_attr( $style->post_content['description_color'] ) ?>" /> |
|
3 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'description_color' ) ) ?>" id="frm_description_color" class="hex" value="<?php echo esc_attr( $style->post_content['description_color'] ) ?>" /> |
|
4 | 4 | </div> |
5 | 5 | <div class="field-group clearfix frm-first-row"> |
6 | 6 | <label><?php _e( 'Weight', 'formidable' ) ?></label> |
7 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('description_weight') ) ?>" id="frm_description_weight"> |
|
7 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'description_weight' ) ) ?>" id="frm_description_weight"> |
|
8 | 8 | <?php foreach ( FrmStyle::get_bold_options() as $value => $name ) { ?> |
9 | 9 | <option value="<?php echo esc_attr( $value ) ?>" <?php selected( $style->post_content['description_weight'], $value ) ?>><?php echo $name ?></option> |
10 | 10 | <?php } ?> |
@@ -12,21 +12,21 @@ discard block |
||
12 | 12 | </div> |
13 | 13 | <div class="field-group clearfix frm-first-row"> |
14 | 14 | <label><?php _e( 'Style', 'formidable' ) ?></label> |
15 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('description_style') ) ?>" id="frm_description_style"> |
|
16 | - <option value="normal" <?php selected($style->post_content['description_style'], 'normal') ?>><?php _e( 'normal', 'formidable' ) ?></option> |
|
17 | - <option value="italic" <?php selected($style->post_content['description_style'], 'italic') ?>><?php _e( 'italic', 'formidable' ) ?></option> |
|
15 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'description_style' ) ) ?>" id="frm_description_style"> |
|
16 | + <option value="normal" <?php selected( $style->post_content['description_style'], 'normal' ) ?>><?php _e( 'normal', 'formidable' ) ?></option> |
|
17 | + <option value="italic" <?php selected( $style->post_content['description_style'], 'italic' ) ?>><?php _e( 'italic', 'formidable' ) ?></option> |
|
18 | 18 | </select> |
19 | 19 | </div> |
20 | 20 | <div class="field-group clearfix"> |
21 | 21 | <label><?php _e( 'Size', 'formidable' ) ?></label> |
22 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('description_font_size') ) ?>" id="frm_description_font_size" value="<?php echo esc_attr( $style->post_content['description_font_size'] ) ?>" size="3" /> |
|
22 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'description_font_size' ) ) ?>" id="frm_description_font_size" value="<?php echo esc_attr( $style->post_content['description_font_size'] ) ?>" size="3" /> |
|
23 | 23 | </div> |
24 | 24 | |
25 | 25 | <div class="field-group clearfix"> |
26 | 26 | <label><?php _e( 'Align', 'formidable' ) ?></label> |
27 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('description_align') ) ?>" id="frm_description_align"> |
|
28 | - <option value="left" <?php selected($style->post_content['description_align'], 'left') ?>><?php _e( 'left', 'formidable' ) ?></option> |
|
29 | - <option value="right" <?php selected($style->post_content['description_align'], 'right') ?>><?php _e( 'right', 'formidable' ) ?></option> |
|
27 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'description_align' ) ) ?>" id="frm_description_align"> |
|
28 | + <option value="left" <?php selected( $style->post_content['description_align'], 'left' ) ?>><?php _e( 'left', 'formidable' ) ?></option> |
|
29 | + <option value="right" <?php selected( $style->post_content['description_align'], 'right' ) ?>><?php _e( 'right', 'formidable' ) ?></option> |
|
30 | 30 | </select> |
31 | 31 | </div> |
32 | 32 | <div class="clear"></div> |