Completed
Push — master ( 002617...fec4f5 )
by Stephanie
03:00
created
classes/views/shared/mb_adv_info.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -52,15 +52,15 @@  discard block
 block discarded – undo
52 52
 					//get all fields from linked form
53 53
 					if ( isset( $f->field_options['form_select'] ) && is_numeric( $f->field_options['form_select'] ) ) {
54 54
 						$linked_form = FrmDb::get_var( $wpdb->prefix . 'frm_fields', array( 'id' => $f->field_options['form_select'] ), 'form_id' );
55
-                        if ( ! in_array( $linked_form, $linked_forms ) ) {
56
-                            $linked_forms[] = $linked_form;
55
+						if ( ! in_array( $linked_form, $linked_forms ) ) {
56
+							$linked_forms[] = $linked_form;
57 57
 							$linked_fields = FrmField::getAll(
58 58
 								array(
59 59
 									'fi.type not' => FrmField::no_save_fields(),
60 60
 									'fi.form_id'  => $linked_form,
61 61
 								)
62 62
 							);
63
-                            $ldfe = '';
63
+							$ldfe = '';
64 64
 							if ( $linked_fields ) {
65 65
 								foreach ( $linked_fields as $linked_field ) {
66 66
 									FrmAppHelper::insert_opt_html(
@@ -72,16 +72,16 @@  discard block
 block discarded – undo
72 72
 										)
73 73
 									);
74 74
 
75
-                                    $ldfe = $linked_field->id;
75
+									$ldfe = $linked_field->id;
76 76
 									unset( $linked_field );
77
-                                }
78
-                            }
79
-                        }
80
-                    }
81
-                    $dfe = $f->id;
82
-        	    }
77
+								}
78
+							}
79
+						}
80
+					}
81
+					$dfe = $f->id;
82
+				}
83 83
 				unset( $f );
84
-                }
84
+				}
85 85
 			}
86 86
 			?>
87 87
         </ul>
@@ -93,27 +93,27 @@  discard block
 block discarded – undo
93 93
         <?php esc_html_e( 'Helpers', 'formidable' ) ?>:
94 94
         <ul class="frm_code_list">
95 95
         <?php
96
-        $col = 'one';
96
+		$col = 'one';
97 97
 		foreach ( $entry_shortcodes as $skey => $sname ) {
98 98
 			if ( empty( $skey ) ) {
99
-                 $col = 'one';
100
-                 echo '<li class="clear frm_block"></li>';
101
-                 continue;
102
-            }
99
+				 $col = 'one';
100
+				 echo '<li class="clear frm_block"></li>';
101
+				 continue;
102
+			}
103 103
 
104 104
 			$classes = ( in_array( $skey, array( 'siteurl', 'sitename', 'entry_count' ) ) ) ? 'show_before_content show_after_content' : '';
105 105
 			$classes .= ( strpos( $skey, 'default-' ) === 0 ) ? 'hide_frm_not_email_subject' : '';
106
-        ?>
106
+		?>
107 107
         <li class="frm_col_<?php echo esc_attr( $col ) ?>">
108 108
 			<a href="javascript:void(0)" class="frmbutton button <?php echo esc_attr( $classes ); ?> frm_insert_code" data-code="<?php echo esc_attr( $skey ) ?>">
109 109
 				<?php echo esc_html( $sname ) ?>
110 110
 			</a>
111 111
         </li>
112 112
         <?php
113
-            $col = ( $col == 'one' ) ? 'two' : 'one';
113
+			$col = ( $col == 'one' ) ? 'two' : 'one';
114 114
 			unset( $skey, $sname, $classes );
115
-        }
116
-        ?>
115
+		}
116
+		?>
117 117
         </ul>
118 118
 		<div class="clear"></div>
119 119
 	</div>
@@ -128,11 +128,11 @@  discard block
 block discarded – undo
128 128
 	    <ul class="frm_code_list frm_full_width">
129 129
 			<?php
130 130
 			if ( ! empty( $fields ) ) {
131
-		        foreach ( $fields as $f ) {
131
+				foreach ( $fields as $f ) {
132 132
 					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'] == '' ) ) ) {
133
-                        continue;
134
-                }
135
-            ?>
133
+						continue;
134
+				}
135
+			?>
136 136
                 <li>
137 137
                     <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>
138 138
 					<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 ); // WPCS: XSS ok. ?>]</a>
@@ -154,17 +154,17 @@  discard block
 block discarded – undo
154 154
         <p class="howto"><?php esc_html_e( 'Click a button below to insert sample logic into your view', 'formidable' ) ?></p>
155 155
         <ul class="frm_code_list">
156 156
         <?php
157
-        $col = 'one';
157
+		$col = 'one';
158 158
 		foreach ( $cond_shortcodes as $skey => $sname ) {
159
-	    ?>
159
+		?>
160 160
 	    <li class="frm_col_<?php echo esc_attr( $col ) ?>">
161 161
 			<a href="javascript:void(0)" class="frmbutton button frm_insert_code" data-code="if x <?php echo esc_attr( $skey ); ?>][/if x"><?php echo esc_html( $sname ); ?></a>
162 162
 	    </li>
163 163
 	    <?php
164
-	        $col = ( $col == 'one' ) ? 'two' : 'one';
164
+			$col = ( $col == 'one' ) ? 'two' : 'one';
165 165
 			unset( $skey, $sname );
166
-	    }
167
-        ?>
166
+		}
167
+		?>
168 168
         </ul>
169 169
 	</div>
170 170
 	<?php } ?>
@@ -175,9 +175,9 @@  discard block
 block discarded – undo
175 175
 		</p>
176 176
 		<ul class="frm_code_list">
177 177
         <?php
178
-        $col = 'one';
178
+		$col = 'one';
179 179
 		foreach ( $adv_shortcodes as $skey => $sname ) {
180
-	    ?>
180
+		?>
181 181
 	    <li class="frm_col_<?php echo esc_attr( $col ) ?>">
182 182
 			<a href="javascript:void(0)" class="frmbutton button frm_insert_code <?php echo is_array( $sname ) ? 'frm_help' : ''; ?>" data-code="x <?php echo esc_attr( $skey ) ?>" <?php echo is_array( $sname ) ? 'title="' . esc_attr( $sname['title'] ) . '"' : ''; ?>>
183 183
 				<?php echo esc_html( is_array( $sname ) ? $sname['label'] : $sname ); ?>
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 	    </li>
186 186
 		<?php
187 187
 			$col = ( $col == 'one' ) ? 'two' : 'one';
188
-	        unset( $skey, $sname );
188
+			unset( $skey, $sname );
189 189
 		}
190 190
 		?>
191 191
 		<?php if ( isset( $file ) ) { ?>
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 		?>
224 224
         </ul>
225 225
 		<?php
226
-        }
226
+		}
227 227
 
228 228
 		if ( isset( $repeat_field ) ) {
229 229
 		?>
@@ -235,10 +235,10 @@  discard block
 block discarded – undo
235 235
         	    </li>
236 236
             </ul>
237 237
         <?php
238
-        }
238
+		}
239 239
 
240 240
 		if ( isset( $dfe ) ) {
241
-        ?>
241
+		?>
242 242
 
243 243
         <div class="clear"></div>
244 244
         <p class="howto"><?php esc_html_e( 'Dynamic field options', 'formidable' ); ?></p>
@@ -257,8 +257,8 @@  discard block
 block discarded – undo
257 257
 	</div>
258 258
 
259 259
     <?php
260
-    if ( $settings_tab ) {
260
+	if ( $settings_tab ) {
261 261
 		include( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/mb_html_tab.php' );
262
-    }
263
-    ?>
262
+	}
263
+	?>
264 264
 </div>
Please login to merge, or discard this patch.