@@ -163,9 +163,12 @@ discard block |
||
163 | 163 | <?php echo wp_kses_post( wpinv_currency_symbol( $currency ) ); ?></span> |
164 | 164 | </span> |
165 | 165 | </div> |
166 | - <?php else : ?> |
|
166 | + <?php else { |
|
167 | + : ?> |
|
167 | 168 | <span class="input-group-text"> |
168 | - <?php echo wp_kses_post( wpinv_currency_symbol( $currency ) ); ?></span> |
|
169 | + <?php echo wp_kses_post( wpinv_currency_symbol( $currency ) ); |
|
170 | +} |
|
171 | +?></span> |
|
169 | 172 | </span> |
170 | 173 | <?php endif; ?> |
171 | 174 | <?php endif; ?> |
@@ -185,9 +188,12 @@ discard block |
||
185 | 188 | <?php echo wp_kses_post( wpinv_currency_symbol( $currency ) ); ?></span> |
186 | 189 | </span> |
187 | 190 | </div> |
188 | - <?php else : ?> |
|
191 | + <?php else { |
|
192 | + : ?> |
|
189 | 193 | <span class="input-group-text"> |
190 | - <?php echo wp_kses_post( wpinv_currency_symbol( $currency ) ); ?></span> |
|
194 | + <?php echo wp_kses_post( wpinv_currency_symbol( $currency ) ); |
|
195 | +} |
|
196 | +?></span> |
|
191 | 197 | </span> |
192 | 198 | <?php endif; ?> |
193 | 199 | <?php endif; ?> |
@@ -31,8 +31,11 @@ discard block |
||
31 | 31 | <div class="input-group-prepend "> |
32 | 32 | <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span> |
33 | 33 | </div> |
34 | - <?php else : ?> |
|
35 | - <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span> |
|
34 | + <?php else { |
|
35 | + : ?> |
|
36 | + <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); |
|
37 | +} |
|
38 | +?></span> |
|
36 | 39 | <?php endif; ?> |
37 | 40 | <?php endif; ?> |
38 | 41 | |
@@ -43,8 +46,11 @@ discard block |
||
43 | 46 | <div class="input-group-append "> |
44 | 47 | <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span> |
45 | 48 | </div> |
46 | - <?php else : ?> |
|
47 | - <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span> |
|
49 | + <?php else { |
|
50 | + : ?> |
|
51 | + <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); |
|
52 | +} |
|
53 | +?></span> |
|
48 | 54 | <?php endif; ?> |
49 | 55 | <?php endif; ?> |
50 | 56 | </div> |
@@ -63,9 +63,12 @@ |
||
63 | 63 | <div class="input-group-append "> |
64 | 64 | <button class='button button-secondary border' type='button' @click.prevent='active_form_element.options.splice(index, 1)'><span class='dashicons dashicons-trash'></span></button> |
65 | 65 | </div> |
66 | - <?php else : ?> |
|
66 | + <?php else { |
|
67 | + : ?> |
|
67 | 68 | <button class='button button-secondary border' type='button' @click.prevent='active_form_element.options.splice(index, 1)'><span class='dashicons dashicons-trash'></span></button> |
68 | - <?php endif; ?> |
|
69 | + <?php endif; |
|
70 | +} |
|
71 | +?> |
|
69 | 72 | </div> |
70 | 73 | |
71 | 74 | <div class='form-group mb-3'> |
@@ -63,9 +63,12 @@ |
||
63 | 63 | <div class="input-group-append "> |
64 | 64 | <button class='button button-secondary border' type='button' @click.prevent='active_form_element.options.splice(index, 1)'><span class='dashicons dashicons-trash'></span></button> |
65 | 65 | </div> |
66 | - <?php else : ?> |
|
66 | + <?php else { |
|
67 | + : ?> |
|
67 | 68 | <button class='button button-secondary border' type='button' @click.prevent='active_form_element.options.splice(index, 1)'><span class='dashicons dashicons-trash'></span></button> |
68 | - <?php endif; ?> |
|
69 | + <?php endif; |
|
70 | +} |
|
71 | +?> |
|
69 | 72 | </div> |
70 | 73 | |
71 | 74 | <div class='form-group mb-3'> |
@@ -43,10 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | // set default icon |
45 | 45 | if(!$icon && $args['icon']!==false && $type){ |
46 | - if($type=='danger'){$icon = '<i class="fas fa-exclamation-circle"></i>';} |
|
47 | - elseif($type=='warning'){$icon = '<i class="fas fa-exclamation-triangle"></i>';} |
|
48 | - elseif($type=='success'){$icon = '<i class="fas fa-check-circle"></i>';} |
|
49 | - elseif($type=='info'){$icon = '<i class="fas fa-info-circle"></i>';} |
|
46 | + if($type=='danger'){$icon = '<i class="fas fa-exclamation-circle"></i>';} elseif($type=='warning'){$icon = '<i class="fas fa-exclamation-triangle"></i>';} elseif($type=='success'){$icon = '<i class="fas fa-check-circle"></i>';} elseif($type=='info'){$icon = '<i class="fas fa-info-circle"></i>';} |
|
50 | 47 | } |
51 | 48 | |
52 | 49 | $data = ''; |
@@ -74,7 +71,7 @@ discard block |
||
74 | 71 | |
75 | 72 | if ( $aui_bs5 ) { |
76 | 73 | $output .= '<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>'; |
77 | - }else{ |
|
74 | + } else{ |
|
78 | 75 | $output .= '<button type="button" class="close" data-dismiss="alert" aria-label="Close">'; |
79 | 76 | $output .= '<span aria-hidden="true">×</span>'; |
80 | 77 | $output .= '</button>'; |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | if ( $args['size'] == 'lg' || $args['size'] == 'large' ) { |
100 | 100 | $size = 'lg'; |
101 | 101 | $args['class'] .= ' form-control-lg'; |
102 | - }elseif ( $args['size'] == 'sm' || $args['size'] == 'small' ) { |
|
102 | + } elseif ( $args['size'] == 'sm' || $args['size'] == 'small' ) { |
|
103 | 103 | $size = 'sm'; |
104 | 104 | $args['class'] .= ' form-control-sm'; |
105 | 105 | } |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | $help_text = ''; |
249 | 249 | //$label_args['class'] .= ' d-inline '; |
250 | 250 | $args['wrap_class'] .= ' align-items-center '; |
251 | - }else{ |
|
251 | + } else{ |
|
252 | 252 | |
253 | 253 | } |
254 | 254 | |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | $switch_size_class = $args['switch'] && !is_bool( $args['switch'] ) ? ' custom-switch-'.esc_attr( $args['switch'] ) : ''; |
283 | 283 | if ( $aui_bs5 ) { |
284 | 284 | $wrap_class = $args['switch'] ? 'form-check form-switch' . $switch_size_class : 'form-check'; |
285 | - }else{ |
|
285 | + } else{ |
|
286 | 286 | $wrap_class = $args['switch'] ? 'custom-switch' . $switch_size_class : 'custom-checkbox' ; |
287 | 287 | } |
288 | 288 | if ( ! empty( $args['label_force_left'] ) ) { |
@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | if ( ! $args['no_wrap'] ) { |
357 | 357 | if ( ! empty( $args['form_group_class'] ) ) { |
358 | 358 | $fg_class = esc_attr( $args['form_group_class'] ); |
359 | - }else{ |
|
359 | + } else{ |
|
360 | 360 | $fg_class = $aui_bs5 ? 'mb-3' : 'form-group'; |
361 | 361 | } |
362 | 362 | $form_group_class = $args['label_type'] == 'floating' && $type != 'checkbox' ? 'form-label-group' : $fg_class; |
@@ -759,7 +759,7 @@ discard block |
||
759 | 759 | if ( ! $args['no_wrap'] ) { |
760 | 760 | if ( ! empty( $args['form_group_class'] ) ) { |
761 | 761 | $fg_class = esc_attr( $args['form_group_class'] ); |
762 | - }else{ |
|
762 | + } else{ |
|
763 | 763 | $fg_class = $aui_bs5 ? 'mb-3' : 'form-group'; |
764 | 764 | } |
765 | 765 | $form_group_class = $args['label_type'] == 'floating' ? 'form-label-group' : $fg_class; |
@@ -1051,7 +1051,7 @@ discard block |
||
1051 | 1051 | if ( ! $args['no_wrap'] ) { |
1052 | 1052 | if ( ! empty( $args['form_group_class'] ) ) { |
1053 | 1053 | $fg_class = esc_attr( $args['form_group_class'] ); |
1054 | - }else{ |
|
1054 | + } else{ |
|
1055 | 1055 | $fg_class = $aui_bs5 ? 'mb-3' : 'form-group'; |
1056 | 1056 | } |
1057 | 1057 | $wrap_class = $args['label_type'] == 'horizontal' ? $fg_class . ' row' : $fg_class; |
@@ -128,7 +128,7 @@ |
||
128 | 128 | |
129 | 129 | if( !$version || version_compare($version,'5.999','>')){ |
130 | 130 | $url .= 'assets/js/fa-iconpicker-v6.min.js'; |
131 | - }else{ |
|
131 | + } else{ |
|
132 | 132 | $url .= 'assets/js/fa-iconpicker-v5.min.js'; |
133 | 133 | } |
134 | 134 |
@@ -159,12 +159,10 @@ |
||
159 | 159 | if ( 'stripe-payment-gateway' == $addon->info->slug ) { |
160 | 160 | $addon->info->slug = 'getpaid-stripe-payments'; |
161 | 161 | $addon->info->link = 'https://wordpress.org/plugins/getpaid-stripe-payments/'; |
162 | - } |
|
163 | - elseif( 'wallet' == $addon->info->slug ){ |
|
162 | + } elseif( 'wallet' == $addon->info->slug ){ |
|
164 | 163 | $addon->info->slug = 'getpaid-wallet'; |
165 | 164 | $addon->info->link = 'https://wordpress.org/plugins/getpaid-wallet/'; |
166 | - } |
|
167 | - elseif( 'item-inventory' == $addon->info->slug ){ |
|
165 | + } elseif( 'item-inventory' == $addon->info->slug ){ |
|
168 | 166 | $addon->info->slug = 'getpaid-item-inventory'; |
169 | 167 | $addon->info->link = 'https://wordpress.org/plugins/getpaid-item-inventory/'; |
170 | 168 | } |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | if ( ! $result && $option) { |
86 | 86 | if( $option == 'color_primary' ){ |
87 | 87 | $result = AUI_PRIMARY_COLOR; |
88 | - }elseif( $option == 'color_secondary' ){ |
|
88 | + } elseif( $option == 'color_secondary' ){ |
|
89 | 89 | $result = AUI_SECONDARY_COLOR; |
90 | 90 | } |
91 | 91 | } |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | |
107 | 107 | if ( $echo ) { |
108 | 108 | echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
109 | - }else{ |
|
109 | + } else{ |
|
110 | 110 | return $output; |
111 | 111 | } |
112 | 112 | |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | |
128 | 128 | if ( $echo ) { |
129 | 129 | echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
130 | - }else{ |
|
130 | + } else{ |
|
131 | 131 | return $output; |
132 | 132 | } |
133 | 133 | } |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | |
148 | 148 | if ( $echo ) { |
149 | 149 | echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
150 | - }else{ |
|
150 | + } else{ |
|
151 | 151 | return $output; |
152 | 152 | } |
153 | 153 | } |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | |
168 | 168 | if ( $echo ) { |
169 | 169 | echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
170 | - }else{ |
|
170 | + } else{ |
|
171 | 171 | return $output; |
172 | 172 | } |
173 | 173 | } |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | |
188 | 188 | if ( $echo ) { |
189 | 189 | echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
190 | - }else{ |
|
190 | + } else{ |
|
191 | 191 | return $output; |
192 | 192 | } |
193 | 193 | } |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | |
222 | 222 | if ( $echo ) { |
223 | 223 | echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
224 | - }else{ |
|
224 | + } else{ |
|
225 | 225 | return $output; |
226 | 226 | } |
227 | 227 | } |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | |
242 | 242 | if ( $echo ) { |
243 | 243 | echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
244 | - }else{ |
|
244 | + } else{ |
|
245 | 245 | return $output; |
246 | 246 | } |
247 | 247 | } |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | |
262 | 262 | if ( $echo ) { |
263 | 263 | echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
264 | - }else{ |
|
264 | + } else{ |
|
265 | 265 | return $output; |
266 | 266 | } |
267 | 267 | } |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | |
282 | 282 | if ( $echo ) { |
283 | 283 | echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
284 | - }else{ |
|
284 | + } else{ |
|
285 | 285 | return $output; |
286 | 286 | } |
287 | 287 | } |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | |
302 | 302 | if ( $echo ) { |
303 | 303 | echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
304 | - }else{ |
|
304 | + } else{ |
|
305 | 305 | return $output; |
306 | 306 | } |
307 | 307 | } |