Passed
Push — master ( 98a9e1...506bd5 )
by Brian
07:05
created
ayecode/wp-ayecode-ui/includes/components/class-aui-component-alert.php 1 patch
Braces   +2 added lines, -5 removed lines patch added patch discarded remove patch
@@ -43,10 +43,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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">&times;</span>';
80 77
 					$output .= '</button>';
Please login to merge, or discard this patch.
ayecode/wp-ayecode-ui/includes/components/class-aui-component-input.php 1 patch
Braces   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
vendor/ayecode/wp-ayecode-ui/includes/ayecode-ui-settings.php 1 patch
Braces   +13 added lines, -9 removed lines patch added patch discarded remove patch
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
 
460 460
 			if( is_admin() && !$this->is_aui_screen()){
461 461
 				// don't add wp-admin scripts if not requested to
462
-			}else{
462
+			} else{
463 463
 				$css_setting = current_action() == 'wp_enqueue_scripts' ? 'css' : 'css_backend';
464 464
 
465 465
 				$rtl = is_rtl() && ! $aui_bs5 ? '-rtl' : '';
@@ -549,7 +549,7 @@  discard block
 block discarded – undo
549 549
 					// custom changes
550 550
 					if ( $load_fse ) {
551 551
 						wp_add_inline_style( 'ayecode-ui-fse', self::custom_css($compatibility) );
552
-					}else{
552
+					} else{
553 553
 						wp_add_inline_style( 'ayecode-ui', self::custom_css($compatibility) );
554 554
 
555 555
 					}
@@ -573,7 +573,7 @@  discard block
 block discarded – undo
573 573
 			ob_start();
574 574
 			if ( $aui_bs5 ) {
575 575
 				include_once( dirname( __FILE__ ) . '/inc/bs5-js.php' );
576
-			}else{
576
+			} else{
577 577
 				include_once( dirname( __FILE__ ) . '/inc/bs4-js.php' );
578 578
             }
579 579
 			$output = ob_get_clean();
@@ -643,7 +643,7 @@  discard block
 block discarded – undo
643 643
 
644 644
 			if( is_admin() && !$this->is_aui_screen()){
645 645
 				// don't add wp-admin scripts if not requested to
646
-			}else {
646
+			} else {
647 647
 
648 648
 				$js_setting = current_action() == 'wp_enqueue_scripts' ? 'js' : 'js_backend';
649 649
 
@@ -1066,7 +1066,7 @@  discard block
 block discarded – undo
1066 1066
 						$colors[$color['slug']] = esc_attr($color['color']);
1067 1067
 					}
1068 1068
 				}
1069
-			}else{
1069
+			} else{
1070 1070
 				$settings = get_option('aui_options');
1071 1071
 				$colors = array(
1072 1072
 					'primary'   => ! empty( $settings['color_primary'] ) ? $settings['color_primary'] : AUI_PRIMARY_COLOR,
@@ -1180,9 +1180,9 @@  discard block
 block discarded – undo
1180 1180
 
1181 1181
 			if($compatibility===true || $compatibility===1){
1182 1182
 				$compatibility = '.bsui';
1183
-			}elseif(!$compatibility){
1183
+			} elseif(!$compatibility){
1184 1184
 				$compatibility = '';
1185
-			}else{
1185
+			} else{
1186 1186
 				$compatibility = esc_attr($compatibility);
1187 1187
 			}
1188 1188
 
@@ -2039,7 +2039,9 @@  discard block
 block discarded – undo
2039 2039
 		 * @return mixed
2040 2040
 		 */
2041 2041
 		public static function minify_js($input) {
2042
-			if(trim($input) === "") return $input;
2042
+			if(trim($input) === "") {
2043
+			    return $input;
2044
+			}
2043 2045
 			return preg_replace(
2044 2046
 				array(
2045 2047
 					// Remove comment(s)
@@ -2071,7 +2073,9 @@  discard block
 block discarded – undo
2071 2073
 		 * @return mixed
2072 2074
 		 */
2073 2075
 		public static function minify_css($input) {
2074
-			if(trim($input) === "") return $input;
2076
+			if(trim($input) === "") {
2077
+			    return $input;
2078
+			}
2075 2079
 			return preg_replace(
2076 2080
 				array(
2077 2081
 					// Remove comment(s)
Please login to merge, or discard this patch.
vendor/ayecode/wp-super-duper/wp-super-duper.php 1 patch
Braces   +48 added lines, -50 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             if(!empty($this->options['nested-block'])){
61 61
                 if(empty($this->options['output_types'])){
62 62
                     $this->options['output_types'] = array('shortcode','block');
63
-                }elseif (($key = array_search('widget', $this->options['output_types'])) !== false) {
63
+                } elseif (($key = array_search('widget', $this->options['output_types'])) !== false) {
64 64
                     unset($this->options['output_types'][$key]);
65 65
                 }
66 66
             }
@@ -699,7 +699,7 @@  discard block
 block discarded – undo
699 699
 				<?php
700 700
 				if(! empty( $insert_shortcode_function )){
701 701
 					echo $insert_shortcode_function;
702
-				}else{
702
+				} else{
703 703
 
704 704
 				/**
705 705
 				 * Function for super duper insert shortcode.
@@ -1972,7 +1972,7 @@  discard block
 block discarded – undo
1972 1972
 				$p_pl = 'ps-';
1973 1973
 				$p_pr = 'pe-';
1974 1974
 					<?php
1975
-				}else{
1975
+				} else{
1976 1976
 						?>
1977 1977
 				$aui_bs5 = false;
1978 1978
 				$p_ml = 'ml-';
@@ -2194,7 +2194,7 @@  discard block
 block discarded – undo
2194 2194
                     var InnerBlocks = blockEditor.InnerBlocks;
2195 2195
 
2196 2196
 					var term_query_type = '';
2197
-					var post_type_rest_slugs = <?php if(! empty( $this->arguments ) && isset($this->arguments['post_type']['onchange_rest']['values'])){echo "[".json_encode($this->arguments['post_type']['onchange_rest']['values'])."]";}else{echo "[]";} ?>;
2197
+					var post_type_rest_slugs = <?php if(! empty( $this->arguments ) && isset($this->arguments['post_type']['onchange_rest']['values'])){echo "[".json_encode($this->arguments['post_type']['onchange_rest']['values'])."]";} else{echo "[]";} ?>;
2198 2198
 					const taxonomies_<?php echo str_replace("-","_", $this->id);?> = [{label: "Please wait", value: 0}];
2199 2199
 					const sort_by_<?php echo str_replace("-","_", $this->id);?> = [{label: "Please wait", value: 0}];
2200 2200
                     const MediaUpload = wp.blockEditor.MediaUpload;
@@ -2313,8 +2313,7 @@  discard block
 block discarded – undo
2313 2313
 
2314 2314
 								if ( $args['type'] == 'notice' ||  $args['type'] == 'tab' ) {
2315 2315
 									continue;
2316
-								}
2317
-								elseif ( $args['type'] == 'checkbox' ) {
2316
+								} elseif ( $args['type'] == 'checkbox' ) {
2318 2317
 									$type    = 'boolean';
2319 2318
 									$default = isset( $args['default'] ) && $args['default'] ? 'true' : 'false';
2320 2319
 								} elseif ( $args['type'] == 'number' ) {
@@ -2442,7 +2441,7 @@  discard block
 block discarded – undo
2442 2441
                             <?php
2443 2442
                             if(!empty($this->options['block-edit-raw'])) {
2444 2443
                                 echo $this->options['block-edit-raw']; // strings have to be in single quotes, may cause issues
2445
-                            }else{
2444
+                            } else{
2446 2445
                             ?>
2447 2446
 
2448 2447
 function hasSelectedInnerBlock(props) {
@@ -2577,7 +2576,7 @@  discard block
 block discarded – undo
2577 2576
 $current_screen = function_exists('get_current_screen') ? get_current_screen() : '';
2578 2577
 if(!empty($current_screen->base) && $current_screen->base==='widgets'){
2579 2578
 	echo 'const { deviceType } = "";';
2580
-}else{
2579
+} else{
2581 2580
 ?>
2582 2581
 /** Get device type const. */
2583 2582
 const { deviceType } = wp.data.useSelect != 'undefined' ?  wp.data.useSelect(select => {
@@ -2611,7 +2610,7 @@  discard block
 block discarded – undo
2611 2610
 										'block_parent_name': parentBlocks.length ? parentBlocks[parentBlocks.length - 1].name : '',
2612 2611
 										'post_id': <?php global $post; if ( isset( $post->ID ) ) {
2613 2612
 										echo $post->ID;
2614
-									}else{echo '0';}?>,
2613
+									} else{echo '0';}?>,
2615 2614
 										'_ajax_nonce': '<?php echo wp_create_nonce( 'super_duper_output_shortcode' );?>'
2616 2615
 									};
2617 2616
 
@@ -2631,7 +2630,7 @@  discard block
 block discarded – undo
2631 2630
 										is_fetching = false;
2632 2631
 										prev_attributes[props.clientId] = props.attributes;
2633 2632
                                              <?php
2634
-                                        }else{
2633
+                                        } else{
2635 2634
                                         ?>
2636 2635
                                         props.setAttributes({content: env});
2637 2636
 										is_fetching = false;
@@ -2810,7 +2809,7 @@  discard block
 block discarded – undo
2810 2809
 //
2811 2810
 
2812 2811
 									}
2813
-									}else {
2812
+									} else {
2814 2813
 									?>
2815 2814
 									el(wp.components.PanelBody, {
2816 2815
 											title: '<?php esc_attr_e( "Settings" ); ?>',
@@ -2836,9 +2835,9 @@  discard block
 block discarded – undo
2836 2835
 								// If the user sets block-output array then build it
2837 2836
 								if ( ! empty( $this->options['block-output'] ) ) {
2838 2837
 								$this->block_element( $this->options['block-output'] );
2839
-							}elseif(!empty($this->options['block-edit-return'])){
2838
+							} elseif(!empty($this->options['block-edit-return'])){
2840 2839
                                    echo $this->options['block-edit-return'];
2841
-							}else{
2840
+							} else{
2842 2841
 								// if no block-output is set then we try and get the shortcode html output via ajax.
2843 2842
 								$block_edit_wrap_tag = !empty($this->options['block_edit_wrap_tag']) ? esc_attr($this->options['block_edit_wrap_tag']) : 'div';
2844 2843
 								?>
@@ -2943,9 +2942,9 @@  discard block
 block discarded – undo
2943 2942
                                );
2944 2943
                                 <?php
2945 2944
 
2946
-							}elseif(!empty($this->options['block-save-return'])){
2945
+							} elseif(!empty($this->options['block-save-return'])){
2947 2946
                                    echo 'return ' . $this->options['block-save-return'];
2948
-							}elseif(!empty($this->options['nested-block'])){
2947
+							} elseif(!empty($this->options['nested-block'])){
2949 2948
                                 ?>
2950 2949
                               return el(
2951 2950
                                    '',
@@ -2955,13 +2954,13 @@  discard block
 block discarded – undo
2955 2954
                                    el('', {dangerouslySetInnerHTML: {__html: "[/<?php echo $this->options['base_id'];?>]"}})
2956 2955
                                );
2957 2956
                                 <?php
2958
-							}elseif(!empty( $this->options['block-save-return'] ) ){
2957
+							} elseif(!empty( $this->options['block-save-return'] ) ){
2959 2958
                                 echo "return ". $this->options['block-edit-return'].";";
2960
-							}elseif(isset( $this->options['block-wrap'] ) && $this->options['block-wrap'] == ''){
2959
+							} elseif(isset( $this->options['block-wrap'] ) && $this->options['block-wrap'] == ''){
2961 2960
 							?>
2962 2961
 							return content;
2963 2962
 							<?php
2964
-							}else{
2963
+							} else{
2965 2964
 							?>
2966 2965
 							var block_wrap = 'div';
2967 2966
 							if (attr.hasOwnProperty("block_wrap")) {
@@ -3012,9 +3011,9 @@  discard block
 block discarded – undo
3012 3011
                 $device_type_icon = '';
3013 3012
                 if($device_type=='Desktop'){
3014 3013
                     $device_type_icon = '<span class="dashicons dashicons-desktop" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>';
3015
-                }elseif($device_type=='Tablet'){
3014
+                } elseif($device_type=='Tablet'){
3016 3015
                     $device_type_icon = '<span class="dashicons dashicons-tablet" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>';
3017
-                }elseif($device_type=='Mobile'){
3016
+                } elseif($device_type=='Mobile'){
3018 3017
                     $device_type_icon = '<span class="dashicons dashicons-smartphone" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>';
3019 3018
                 }
3020 3019
 				echo $element_require;
@@ -3059,7 +3058,7 @@  discard block
 block discarded – undo
3059 3058
 
3060 3059
 					<?php
3061 3060
 					if(false){?></script><?php }
3062
-				}elseif(!empty($args['row']['close'])){
3061
+				} elseif(!empty($args['row']['close'])){
3063 3062
 					if(false){?><script><?php }?>
3064 3063
 						el(
3065 3064
 							'div',
@@ -3068,7 +3067,7 @@  discard block
 block discarded – undo
3068 3067
 							},
3069 3068
 					<?php
3070 3069
 					if(false){?></script><?php }
3071
-				}else{
3070
+				} else{
3072 3071
 					if(false){?><script><?php }?>
3073 3072
 						el(
3074 3073
 							'div',
@@ -3177,9 +3176,9 @@  discard block
 block discarded – undo
3177 3176
             $device_type_icon = '';
3178 3177
             if($device_type=='Desktop'){
3179 3178
                 $device_type_icon = '<span class="dashicons dashicons-desktop" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>';
3180
-            }elseif($device_type=='Tablet'){
3179
+            } elseif($device_type=='Tablet'){
3181 3180
                 $device_type_icon = '<span class="dashicons dashicons-tablet" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>';
3182
-            }elseif($device_type=='Mobile'){
3181
+            } elseif($device_type=='Mobile'){
3183 3182
                 $device_type_icon = '<span class="dashicons dashicons-smartphone" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>';
3184 3183
             }
3185 3184
 
@@ -3213,12 +3212,12 @@  discard block
 block discarded – undo
3213 3212
 				if ( $args['type'] == 'number' ) {
3214 3213
 					$onchange = "props.setAttributes({ $key: $key ? Number($key) : '' } )";
3215 3214
 				}
3216
-			}else if ( $args['type'] == 'styleid' ) {
3215
+			} else if ( $args['type'] == 'styleid' ) {
3217 3216
 				$type = 'TextControl';
3218 3217
 				$args['type'] == 'text';
3219 3218
 				// Save numbers as numbers and not strings
3220 3219
 				$value     = "props.attributes.$key ? props.attributes.$key : 'aaabbbccc'";
3221
-			}else if ( $args['type'] == 'notice' ) {
3220
+			} else if ( $args['type'] == 'notice' ) {
3222 3221
 
3223 3222
 				$notice_message = !empty($args['desc']) ? addslashes($args['desc']) : '';
3224 3223
 				$notice_status = !empty($args['status']) ? esc_attr($args['status']) : 'info';
@@ -3293,10 +3292,10 @@  discard block
 block discarded – undo
3293 3292
                             $key: value
3294 3293
                         });
3295 3294
                     },";
3296
-			}elseif ( $args['type'] == 'gradient' ) {
3295
+			} elseif ( $args['type'] == 'gradient' ) {
3297 3296
 				$type = 'GradientPicker';
3298 3297
 
3299
-			}elseif ( $args['type'] == 'image' ) {
3298
+			} elseif ( $args['type'] == 'image' ) {
3300 3299
 //                print_r($args);
3301 3300
 
3302 3301
                 $img_preview = isset($args['focalpoint']) && !$args['focalpoint'] ? " props.attributes.$key && el('img', { src: props.attributes.$key,style: {maxWidth:'100%',background: '#ccc'}})," : " ( props.attributes.$key ||  props.attributes.{$key}_use_featured ) && el(wp.components.FocalPointPicker,{
@@ -3358,7 +3357,7 @@  discard block
 block discarded – undo
3358 3357
                 $onchange = "";
3359 3358
 
3360 3359
                 //$inside_elements = ",el('div',{},'file upload')";
3361
-			}elseif ( $args['type'] == 'images' ) {
3360
+			} elseif ( $args['type'] == 'images' ) {
3362 3361
 				//                print_r($args);
3363 3362
 
3364 3363
                 $img_preview = "props.attributes.$key && (function() {
@@ -3443,8 +3442,7 @@  discard block
 block discarded – undo
3443 3442
                 $onchange = "";
3444 3443
 
3445 3444
                 //$inside_elements = ",el('div',{},'file upload')";
3446
-			}
3447
-			elseif ( $args['type'] == 'checkbox' ) {
3445
+			} elseif ( $args['type'] == 'checkbox' ) {
3448 3446
 				$type = 'CheckboxControl';
3449 3447
 				$extra .= "checked: props.attributes.$key,";
3450 3448
 				$onchange = "props.setAttributes({ $key: ! props.attributes.$key } )";
@@ -3456,9 +3454,9 @@  discard block
 block discarded – undo
3456 3454
 
3457 3455
 				if($args['name'] == 'category' && !empty($args['post_type_linked'])){
3458 3456
 					$options .= "options: taxonomies_".str_replace("-","_", $this->id).",";
3459
-				}elseif($args['name'] == 'sort_by' && !empty($args['post_type_linked'])){
3457
+				} elseif($args['name'] == 'sort_by' && !empty($args['post_type_linked'])){
3460 3458
 					$options .= "options: sort_by_".str_replace("-","_", $this->id).",";
3461
-				}else {
3459
+				} else {
3462 3460
 
3463 3461
 					if ( ! empty( $args['options'] ) ) {
3464 3462
 						$options .= "options: [";
@@ -3522,7 +3520,7 @@  discard block
 block discarded – undo
3522 3520
 
3523 3521
 			} elseif ( $args['type'] == 'alignment' ) {
3524 3522
 				$type = 'AlignmentToolbar'; // @todo this does not seem to work but cant find a example
3525
-			}elseif ( $args['type'] == 'margins' ) {
3523
+			} elseif ( $args['type'] == 'margins' ) {
3526 3524
 
3527 3525
 			} else {
3528 3526
 				return;// if we have not implemented the control then don't break the JS.
@@ -3552,7 +3550,7 @@  discard block
 block discarded – undo
3552 3550
 			label: <?php
3553 3551
 			if(empty($args['title'])){
3554 3552
                 echo "''";
3555
-			}elseif(empty($args['row']) && !empty($args['device_type'])){
3553
+			} elseif(empty($args['row']) && !empty($args['device_type'])){
3556 3554
                 ?>el('label', {
3557 3555
 									className: 'components-base-control__label',
3558 3556
 									style: {width:"100%"}
@@ -3567,7 +3565,7 @@  discard block
 block discarded – undo
3567 3565
 
3568 3566
 							)<?php
3569 3567
 
3570
-			}else{
3568
+			} else{
3571 3569
                  ?>'<?php echo addslashes( $args['title'] ); ?>'<?php
3572 3570
 
3573 3571
 			}
@@ -3575,7 +3573,7 @@  discard block
 block discarded – undo
3575 3573
 			?>,
3576 3574
 			help: <?php if ( isset( $args['desc'] ) ) {
3577 3575
 				echo "el('span',{dangerouslySetInnerHTML: {__html: '".wp_kses_post( addslashes($args['desc']) )."'}})";
3578
-			}else{ echo "''"; } ?>,
3576
+			} else{ echo "''"; } ?>,
3579 3577
 			value: <?php echo $value; ?>,
3580 3578
 			<?php if ( $type == 'TextControl' && $args['type'] != 'text' ) {
3581 3579
 				echo "type: '" . addslashes( $args['type'] ) . "',";
@@ -3615,7 +3613,7 @@  discard block
 block discarded – undo
3615 3613
 				foreach ( $custom_attributes as $key => $val ) {
3616 3614
 					if(is_array($val)){
3617 3615
 						$attributes .= $key.': {'.$this->array_to_attributes( $val, $html ).'},';
3618
-					}else{
3616
+					} else{
3619 3617
 						$attributes .= $html ?  " $key='$val' " : "'$key': '$val',";
3620 3618
 					}
3621 3619
 				}
@@ -3655,7 +3653,7 @@  discard block
 block discarded – undo
3655 3653
 
3656 3654
                             if($new_args['element']=='InnerBlocks'){
3657 3655
                                 echo "\n el( InnerBlocks, {";
3658
-                            }elseif($new_args['element']=='innerBlocksProps'){
3656
+                            } elseif($new_args['element']=='innerBlocksProps'){
3659 3657
                                 $element = isset($new_args['inner_element']) ? esc_attr($new_args['inner_element']) : 'div';
3660 3658
                               //  echo "\n el( 'section', wp.blockEditor.useInnerBlocksProps( blockProps, {";
3661 3659
 //                                echo $save ? "\n el( '$element', wp.blockEditor.useInnerBlocksProps.save( " : "\n el( '$element', wp.blockEditor.useInnerBlocksProps( ";
@@ -3668,11 +3666,11 @@  discard block
 block discarded – undo
3668 3666
                             //    echo '###';
3669 3667
 
3670 3668
                               //  echo '###';
3671
-                            }elseif($new_args['element']=='BlocksProps'){
3669
+                            } elseif($new_args['element']=='BlocksProps'){
3672 3670
 
3673 3671
 								if ( isset($new_args['if_inner_element']) ) {
3674 3672
 									$element = $new_args['if_inner_element'];
3675
-								}else {
3673
+								} else {
3676 3674
 									$element = isset($new_args['inner_element']) ? "'".esc_attr($new_args['inner_element'])."'" : "'div'";
3677 3675
 								}
3678 3676
 
@@ -3683,7 +3681,7 @@  discard block
 block discarded – undo
3683 3681
 
3684 3682
                                // echo "} ),";
3685 3683
 
3686
-                            }else{
3684
+                            } else{
3687 3685
                                 echo "\n el( '" . $new_args['element'] . "', {";
3688 3686
                             }
3689 3687
 
@@ -3708,7 +3706,7 @@  discard block
 block discarded – undo
3708 3706
 
3709 3707
 									if ( $new_key === 'content' ) {
3710 3708
 										echo "'" . $this->block_props_replace( wp_slash( $new_value ) ) . "'";
3711
-									}else if ( $new_key === 'if_content' ) {
3709
+									} else if ( $new_key === 'if_content' ) {
3712 3710
 										echo  $this->block_props_replace(  $new_value  );
3713 3711
 									}
3714 3712
 
@@ -3738,7 +3736,7 @@  discard block
 block discarded – undo
3738 3736
 
3739 3737
                             if($new_args['element']=='innerBlocksProps' || $new_args['element']=='xBlocksProps'){
3740 3738
                                 echo "))";// end content
3741
-                            }else{
3739
+                            } else{
3742 3740
                                 echo ")";// end content
3743 3741
                             }
3744 3742
 
@@ -4024,7 +4022,7 @@  discard block
 block discarded – undo
4024 4022
 
4025 4023
 				if(empty($instance['widget_title_tag'])){
4026 4024
 					$output = $args['before_title'] . $title . $args['after_title'];
4027
-				}else{
4025
+				} else{
4028 4026
 					$title_tag = esc_attr( $instance['widget_title_tag'] );
4029 4027
 
4030 4028
 					// classes
@@ -4129,9 +4127,9 @@  discard block
 block discarded – undo
4129 4127
 					<div class='row <?php if(!empty($args['row']['class'])){ echo esc_attr($args['row']['class']);} ?>'>
4130 4128
 					<div class='col pr-2'>
4131 4129
 					<?php
4132
-				}elseif(!empty($args['row']['close'])){
4130
+				} elseif(!empty($args['row']['close'])){
4133 4131
 					echo "<div class='col pl-0 ps-0'>";
4134
-				}else{
4132
+				} else{
4135 4133
 					echo "<div class='col pl-0 ps-0 pr-2 pe-2'>";
4136 4134
 				}
4137 4135
 			}
@@ -4349,11 +4347,11 @@  discard block
 block discarded – undo
4349 4347
 		public function get_widget_icon($icon = 'box-top', $title = ''){
4350 4348
 			if($icon=='box-top'){
4351 4349
 				return '<svg title="'.esc_attr($title).'" width="20px" height="20px" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414" role="img" aria-hidden="true" focusable="false"><rect x="2.714" y="5.492" width="1.048" height="9.017" fill="#555D66"></rect><rect x="16.265" y="5.498" width="1.023" height="9.003" fill="#555D66"></rect><rect x="5.518" y="2.186" width="8.964" height="2.482" fill="#272B2F"></rect><rect x="5.487" y="16.261" width="9.026" height="1.037" fill="#555D66"></rect></svg>';
4352
-			}elseif($icon=='box-right'){
4350
+			} elseif($icon=='box-right'){
4353 4351
 				return '<svg title="'.esc_attr($title).'" width="20px" height="20px" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414" role="img" aria-hidden="true" focusable="false"><rect x="2.714" y="5.492" width="1.046" height="9.017" fill="#555D66"></rect><rect x="15.244" y="5.498" width="2.518" height="9.003" fill="#272B2F"></rect><rect x="5.518" y="2.719" width="8.964" height="0.954" fill="#555D66"></rect><rect x="5.487" y="16.308" width="9.026" height="0.99" fill="#555D66"></rect></svg>';
4354
-			}elseif($icon=='box-bottom'){
4352
+			} elseif($icon=='box-bottom'){
4355 4353
 				return '<svg title="'.esc_attr($title).'" width="20px" height="20px" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414" role="img" aria-hidden="true" focusable="false"><rect x="2.714" y="5.492" width="1" height="9.017" fill="#555D66"></rect><rect x="16.261" y="5.498" width="1.027" height="9.003" fill="#555D66"></rect><rect x="5.518" y="2.719" width="8.964" height="0.968" fill="#555D66"></rect><rect x="5.487" y="15.28" width="9.026" height="2.499" fill="#272B2F"></rect></svg>';
4356
-			}elseif($icon=='box-left'){
4354
+			} elseif($icon=='box-left'){
4357 4355
 				return '<svg title="'.esc_attr($title).'" width="20px" height="20px" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414" role="img" aria-hidden="true" focusable="false"><rect x="2.202" y="5.492" width="2.503" height="9.017" fill="#272B2F"></rect><rect x="16.276" y="5.498" width="1.012" height="9.003" fill="#555D66"></rect><rect x="5.518" y="2.719" width="8.964" height="0.966" fill="#555D66"></rect><rect x="5.487" y="16.303" width="9.026" height="0.995" fill="#555D66"></rect></svg>';
4358 4356
 			}
4359 4357
 		}
Please login to merge, or discard this patch.