@@ -38,8 +38,11 @@ |
||
38 | 38 | )); |
39 | 39 | ?>" |
40 | 40 | class="btn btn-sm btn-outline-primary"><?php esc_html_e( 'Connect', 'invoicing' ); ?></a> |
41 | - <?php else : ?> |
|
42 | - <span class="btn btn-sm btn-success"><?php esc_html_e( 'Connected', 'invoicing' ); ?></span> |
|
41 | + <?php else { |
|
42 | + : ?> |
|
43 | + <span class="btn btn-sm btn-success"><?php esc_html_e( 'Connected', 'invoicing' ); |
|
44 | +} |
|
45 | +?></span> |
|
43 | 46 | <?php endif; ?> |
44 | 47 | </li> |
45 | 48 |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | if ( $args['size'] == 'lg' || $args['size'] == 'large' ) { |
96 | 96 | $size = 'lg'; |
97 | 97 | $args['class'] .= ' form-control-lg'; |
98 | - }elseif ( $args['size'] == 'sm' || $args['size'] == 'small' ) { |
|
98 | + } elseif ( $args['size'] == 'sm' || $args['size'] == 'small' ) { |
|
99 | 99 | $size = 'sm'; |
100 | 100 | $args['class'] .= ' form-control-sm'; |
101 | 101 | } |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | $help_text = ''; |
237 | 237 | //$label_args['class'] .= ' d-inline '; |
238 | 238 | $args['wrap_class'] .= ' align-items-center '; |
239 | - }else{ |
|
239 | + } else{ |
|
240 | 240 | |
241 | 241 | } |
242 | 242 |
@@ -420,7 +420,7 @@ discard block |
||
420 | 420 | |
421 | 421 | if( is_admin() && !$this->is_aui_screen()){ |
422 | 422 | // don't add wp-admin scripts if not requested to |
423 | - }else{ |
|
423 | + } else{ |
|
424 | 424 | $css_setting = current_action() == 'wp_enqueue_scripts' ? 'css' : 'css_backend'; |
425 | 425 | |
426 | 426 | $rtl = is_rtl() ? '-rtl' : ''; |
@@ -1562,7 +1562,7 @@ discard block |
||
1562 | 1562 | |
1563 | 1563 | if( is_admin() && !$this->is_aui_screen()){ |
1564 | 1564 | // don't add wp-admin scripts if not requested to |
1565 | - }else { |
|
1565 | + } else { |
|
1566 | 1566 | |
1567 | 1567 | $js_setting = current_action() == 'wp_enqueue_scripts' ? 'js' : 'js_backend'; |
1568 | 1568 | |
@@ -1949,7 +1949,7 @@ discard block |
||
1949 | 1949 | $colors[$color['slug']] = esc_attr($color['color']); |
1950 | 1950 | } |
1951 | 1951 | } |
1952 | - }else{ |
|
1952 | + } else{ |
|
1953 | 1953 | $settings = get_option('aui_options'); |
1954 | 1954 | $colors = array( |
1955 | 1955 | 'primary' => ! empty( $settings['color_primary'] ) ? $settings['color_primary'] : AUI_PRIMARY_COLOR, |
@@ -2036,9 +2036,9 @@ discard block |
||
2036 | 2036 | |
2037 | 2037 | if($compatibility===true || $compatibility===1){ |
2038 | 2038 | $compatibility = '.bsui'; |
2039 | - }elseif(!$compatibility){ |
|
2039 | + } elseif(!$compatibility){ |
|
2040 | 2040 | $compatibility = ''; |
2041 | - }else{ |
|
2041 | + } else{ |
|
2042 | 2042 | $compatibility = esc_attr($compatibility); |
2043 | 2043 | } |
2044 | 2044 | |
@@ -2885,7 +2885,9 @@ discard block |
||
2885 | 2885 | * @return mixed |
2886 | 2886 | */ |
2887 | 2887 | public static function minify_js($input) { |
2888 | - if(trim($input) === "") return $input; |
|
2888 | + if(trim($input) === "") { |
|
2889 | + return $input; |
|
2890 | + } |
|
2889 | 2891 | return preg_replace( |
2890 | 2892 | array( |
2891 | 2893 | // Remove comment(s) |
@@ -2917,7 +2919,9 @@ discard block |
||
2917 | 2919 | * @return mixed |
2918 | 2920 | */ |
2919 | 2921 | public static function minify_css($input) { |
2920 | - if(trim($input) === "") return $input; |
|
2922 | + if(trim($input) === "") { |
|
2923 | + return $input; |
|
2924 | + } |
|
2921 | 2925 | return preg_replace( |
2922 | 2926 | array( |
2923 | 2927 | // Remove comment(s) |
@@ -60,7 +60,7 @@ discard block |
||
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 |
||
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. |
@@ -2132,7 +2132,7 @@ discard block |
||
2132 | 2132 | var InnerBlocks = blockEditor.InnerBlocks; |
2133 | 2133 | |
2134 | 2134 | var term_query_type = ''; |
2135 | - 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 "[]";} ?>; |
|
2135 | + 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 "[]";} ?>; |
|
2136 | 2136 | const taxonomies_<?php echo str_replace("-","_", $this->id);?> = [{label: "Please wait", value: 0}]; |
2137 | 2137 | const sort_by_<?php echo str_replace("-","_", $this->id);?> = [{label: "Please wait", value: 0}]; |
2138 | 2138 | const MediaUpload = wp.blockEditor.MediaUpload; |
@@ -2251,8 +2251,7 @@ discard block |
||
2251 | 2251 | |
2252 | 2252 | if ( $args['type'] == 'notice' || $args['type'] == 'tab' ) { |
2253 | 2253 | continue; |
2254 | - } |
|
2255 | - elseif ( $args['type'] == 'checkbox' ) { |
|
2254 | + } elseif ( $args['type'] == 'checkbox' ) { |
|
2256 | 2255 | $type = 'boolean'; |
2257 | 2256 | $default = isset( $args['default'] ) && $args['default'] ? 'true' : 'false'; |
2258 | 2257 | } elseif ( $args['type'] == 'number' ) { |
@@ -2380,7 +2379,7 @@ discard block |
||
2380 | 2379 | <?php |
2381 | 2380 | if(!empty($this->options['block-edit-raw'])) { |
2382 | 2381 | echo $this->options['block-edit-raw']; // strings have to be in single quotes, may cause issues |
2383 | - }else{ |
|
2382 | + } else{ |
|
2384 | 2383 | ?> |
2385 | 2384 | |
2386 | 2385 | function hasSelectedInnerBlock(props) { |
@@ -2421,7 +2420,7 @@ discard block |
||
2421 | 2420 | |
2422 | 2421 | // taxonomies |
2423 | 2422 | if( $value && 'post_type' in prev_attributes[props.clientId] && 'category' in prev_attributes[props.clientId] && run ){ |
2424 | - wp.apiFetch({path: "<?php if(isset($this->arguments['post_type']['onchange_rest']['path'])){echo $this->arguments['post_type']['onchange_rest']['path'];}else{'/wp/v2/"+$value+"/categories/?per_page=100';} ?>"}).then(terms => { |
|
2423 | + wp.apiFetch({path: "<?php if(isset($this->arguments['post_type']['onchange_rest']['path'])){echo $this->arguments['post_type']['onchange_rest']['path'];} else{'/wp/v2/"+$value+"/categories/?per_page=100';} ?>"}).then(terms => { |
|
2425 | 2424 | while (taxonomies_<?php echo str_replace("-","_", $this->id);?>.length) { |
2426 | 2425 | taxonomies_<?php echo str_replace("-","_", $this->id);?>.pop(); |
2427 | 2426 | } |
@@ -2470,7 +2469,7 @@ discard block |
||
2470 | 2469 | $current_screen = function_exists('get_current_screen') ? get_current_screen() : ''; |
2471 | 2470 | if(!empty($current_screen->base) && $current_screen->base==='widgets'){ |
2472 | 2471 | echo 'const { deviceType } = "";'; |
2473 | -}else{ |
|
2472 | +} else{ |
|
2474 | 2473 | ?> |
2475 | 2474 | /** Get device type const. */ |
2476 | 2475 | const { deviceType } = wp.data.useSelect != 'undefined' ? wp.data.useSelect(select => { |
@@ -2504,7 +2503,7 @@ discard block |
||
2504 | 2503 | 'block_parent_name': parentBlocks.length ? parentBlocks[parentBlocks.length - 1].name : '', |
2505 | 2504 | 'post_id': <?php global $post; if ( isset( $post->ID ) ) { |
2506 | 2505 | echo $post->ID; |
2507 | - }else{echo '0';}?>, |
|
2506 | + } else{echo '0';}?>, |
|
2508 | 2507 | '_ajax_nonce': '<?php echo wp_create_nonce( 'super_duper_output_shortcode' );?>' |
2509 | 2508 | }; |
2510 | 2509 | |
@@ -2524,7 +2523,7 @@ discard block |
||
2524 | 2523 | is_fetching = false; |
2525 | 2524 | prev_attributes[props.clientId] = props.attributes; |
2526 | 2525 | <?php |
2527 | - }else{ |
|
2526 | + } else{ |
|
2528 | 2527 | ?> |
2529 | 2528 | props.setAttributes({content: env}); |
2530 | 2529 | is_fetching = false; |
@@ -2703,7 +2702,7 @@ discard block |
||
2703 | 2702 | // |
2704 | 2703 | |
2705 | 2704 | } |
2706 | - }else { |
|
2705 | + } else { |
|
2707 | 2706 | ?> |
2708 | 2707 | el(wp.components.PanelBody, { |
2709 | 2708 | title: '<?php esc_attr_e( "Settings" ); ?>', |
@@ -2729,9 +2728,9 @@ discard block |
||
2729 | 2728 | // If the user sets block-output array then build it |
2730 | 2729 | if ( ! empty( $this->options['block-output'] ) ) { |
2731 | 2730 | $this->block_element( $this->options['block-output'] ); |
2732 | - }elseif(!empty($this->options['block-edit-return'])){ |
|
2731 | + } elseif(!empty($this->options['block-edit-return'])){ |
|
2733 | 2732 | echo $this->options['block-edit-return']; |
2734 | - }else{ |
|
2733 | + } else{ |
|
2735 | 2734 | // if no block-output is set then we try and get the shortcode html output via ajax. |
2736 | 2735 | ?> |
2737 | 2736 | el('div', wp.blockEditor.useBlockProps({ |
@@ -2835,9 +2834,9 @@ discard block |
||
2835 | 2834 | ); |
2836 | 2835 | <?php |
2837 | 2836 | |
2838 | - }elseif(!empty($this->options['block-save-return'])){ |
|
2837 | + } elseif(!empty($this->options['block-save-return'])){ |
|
2839 | 2838 | echo 'return ' . $this->options['block-save-return']; |
2840 | - }elseif(!empty($this->options['nested-block'])){ |
|
2839 | + } elseif(!empty($this->options['nested-block'])){ |
|
2841 | 2840 | ?> |
2842 | 2841 | return el( |
2843 | 2842 | '', |
@@ -2847,13 +2846,13 @@ discard block |
||
2847 | 2846 | el('', {dangerouslySetInnerHTML: {__html: "[/<?php echo $this->options['base_id'];?>]"}}) |
2848 | 2847 | ); |
2849 | 2848 | <?php |
2850 | - }elseif(!empty( $this->options['block-save-return'] ) ){ |
|
2849 | + } elseif(!empty( $this->options['block-save-return'] ) ){ |
|
2851 | 2850 | echo "return ". $this->options['block-edit-return'].";"; |
2852 | - }elseif(isset( $this->options['block-wrap'] ) && $this->options['block-wrap'] == ''){ |
|
2851 | + } elseif(isset( $this->options['block-wrap'] ) && $this->options['block-wrap'] == ''){ |
|
2853 | 2852 | ?> |
2854 | 2853 | return content; |
2855 | 2854 | <?php |
2856 | - }else{ |
|
2855 | + } else{ |
|
2857 | 2856 | ?> |
2858 | 2857 | var block_wrap = 'div'; |
2859 | 2858 | if (attr.hasOwnProperty("block_wrap")) { |
@@ -2904,9 +2903,9 @@ discard block |
||
2904 | 2903 | $device_type_icon = ''; |
2905 | 2904 | if($device_type=='Desktop'){ |
2906 | 2905 | $device_type_icon = '<span class="dashicons dashicons-desktop" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
2907 | - }elseif($device_type=='Tablet'){ |
|
2906 | + } elseif($device_type=='Tablet'){ |
|
2908 | 2907 | $device_type_icon = '<span class="dashicons dashicons-tablet" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
2909 | - }elseif($device_type=='Mobile'){ |
|
2908 | + } elseif($device_type=='Mobile'){ |
|
2910 | 2909 | $device_type_icon = '<span class="dashicons dashicons-smartphone" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
2911 | 2910 | } |
2912 | 2911 | echo $element_require; |
@@ -2951,7 +2950,7 @@ discard block |
||
2951 | 2950 | |
2952 | 2951 | <?php |
2953 | 2952 | if(false){?></script><?php } |
2954 | - }elseif(!empty($args['row']['close'])){ |
|
2953 | + } elseif(!empty($args['row']['close'])){ |
|
2955 | 2954 | if(false){?><script><?php }?> |
2956 | 2955 | el( |
2957 | 2956 | 'div', |
@@ -2960,7 +2959,7 @@ discard block |
||
2960 | 2959 | }, |
2961 | 2960 | <?php |
2962 | 2961 | if(false){?></script><?php } |
2963 | - }else{ |
|
2962 | + } else{ |
|
2964 | 2963 | if(false){?><script><?php }?> |
2965 | 2964 | el( |
2966 | 2965 | 'div', |
@@ -3069,9 +3068,9 @@ discard block |
||
3069 | 3068 | $device_type_icon = ''; |
3070 | 3069 | if($device_type=='Desktop'){ |
3071 | 3070 | $device_type_icon = '<span class="dashicons dashicons-desktop" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
3072 | - }elseif($device_type=='Tablet'){ |
|
3071 | + } elseif($device_type=='Tablet'){ |
|
3073 | 3072 | $device_type_icon = '<span class="dashicons dashicons-tablet" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
3074 | - }elseif($device_type=='Mobile'){ |
|
3073 | + } elseif($device_type=='Mobile'){ |
|
3075 | 3074 | $device_type_icon = '<span class="dashicons dashicons-smartphone" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
3076 | 3075 | } |
3077 | 3076 | |
@@ -3105,12 +3104,12 @@ discard block |
||
3105 | 3104 | if ( $args['type'] == 'number' ) { |
3106 | 3105 | $onchange = "props.setAttributes({ $key: $key ? Number($key) : '' } )"; |
3107 | 3106 | } |
3108 | - }else if ( $args['type'] == 'styleid' ) { |
|
3107 | + } else if ( $args['type'] == 'styleid' ) { |
|
3109 | 3108 | $type = 'TextControl'; |
3110 | 3109 | $args['type'] == 'text'; |
3111 | 3110 | // Save numbers as numbers and not strings |
3112 | 3111 | $value = "props.attributes.$key ? props.attributes.$key : 'aaabbbccc'"; |
3113 | - }else if ( $args['type'] == 'notice' ) { |
|
3112 | + } else if ( $args['type'] == 'notice' ) { |
|
3114 | 3113 | |
3115 | 3114 | $notice_message = !empty($args['desc']) ? addslashes($args['desc']) : ''; |
3116 | 3115 | $notice_status = !empty($args['status']) ? esc_attr($args['status']) : 'info'; |
@@ -3185,10 +3184,10 @@ discard block |
||
3185 | 3184 | $key: value |
3186 | 3185 | }); |
3187 | 3186 | },"; |
3188 | - }elseif ( $args['type'] == 'gradient' ) { |
|
3187 | + } elseif ( $args['type'] == 'gradient' ) { |
|
3189 | 3188 | $type = 'GradientPicker'; |
3190 | 3189 | |
3191 | - }elseif ( $args['type'] == 'image' ) { |
|
3190 | + } elseif ( $args['type'] == 'image' ) { |
|
3192 | 3191 | // print_r($args); |
3193 | 3192 | |
3194 | 3193 | $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,{ |
@@ -3250,7 +3249,7 @@ discard block |
||
3250 | 3249 | $onchange = ""; |
3251 | 3250 | |
3252 | 3251 | //$inside_elements = ",el('div',{},'file upload')"; |
3253 | - }elseif ( $args['type'] == 'images' ) { |
|
3252 | + } elseif ( $args['type'] == 'images' ) { |
|
3254 | 3253 | // print_r($args); |
3255 | 3254 | |
3256 | 3255 | $img_preview = "props.attributes.$key && (function() { |
@@ -3335,8 +3334,7 @@ discard block |
||
3335 | 3334 | $onchange = ""; |
3336 | 3335 | |
3337 | 3336 | //$inside_elements = ",el('div',{},'file upload')"; |
3338 | - } |
|
3339 | - elseif ( $args['type'] == 'checkbox' ) { |
|
3337 | + } elseif ( $args['type'] == 'checkbox' ) { |
|
3340 | 3338 | $type = 'CheckboxControl'; |
3341 | 3339 | $extra .= "checked: props.attributes.$key,"; |
3342 | 3340 | $onchange = "props.setAttributes({ $key: ! props.attributes.$key } )"; |
@@ -3348,9 +3346,9 @@ discard block |
||
3348 | 3346 | |
3349 | 3347 | if($args['name'] == 'category' && !empty($args['post_type_linked'])){ |
3350 | 3348 | $options .= "options: taxonomies_".str_replace("-","_", $this->id).","; |
3351 | - }elseif($args['name'] == 'sort_by' && !empty($args['post_type_linked'])){ |
|
3349 | + } elseif($args['name'] == 'sort_by' && !empty($args['post_type_linked'])){ |
|
3352 | 3350 | $options .= "options: sort_by_".str_replace("-","_", $this->id).","; |
3353 | - }else { |
|
3351 | + } else { |
|
3354 | 3352 | |
3355 | 3353 | if ( ! empty( $args['options'] ) ) { |
3356 | 3354 | $options .= "options: ["; |
@@ -3414,7 +3412,7 @@ discard block |
||
3414 | 3412 | |
3415 | 3413 | } elseif ( $args['type'] == 'alignment' ) { |
3416 | 3414 | $type = 'AlignmentToolbar'; // @todo this does not seem to work but cant find a example |
3417 | - }elseif ( $args['type'] == 'margins' ) { |
|
3415 | + } elseif ( $args['type'] == 'margins' ) { |
|
3418 | 3416 | |
3419 | 3417 | } else { |
3420 | 3418 | return;// if we have not implemented the control then don't break the JS. |
@@ -3444,7 +3442,7 @@ discard block |
||
3444 | 3442 | label: <?php |
3445 | 3443 | if(empty($args['title'])){ |
3446 | 3444 | echo "''"; |
3447 | - }elseif(empty($args['row']) && !empty($args['device_type'])){ |
|
3445 | + } elseif(empty($args['row']) && !empty($args['device_type'])){ |
|
3448 | 3446 | ?>el('label', { |
3449 | 3447 | className: 'components-base-control__label', |
3450 | 3448 | style: {width:"100%"} |
@@ -3459,7 +3457,7 @@ discard block |
||
3459 | 3457 | |
3460 | 3458 | )<?php |
3461 | 3459 | |
3462 | - }else{ |
|
3460 | + } else{ |
|
3463 | 3461 | ?>'<?php echo addslashes( $args['title'] ); ?>'<?php |
3464 | 3462 | |
3465 | 3463 | } |
@@ -3467,7 +3465,7 @@ discard block |
||
3467 | 3465 | ?>, |
3468 | 3466 | help: <?php if ( isset( $args['desc'] ) ) { |
3469 | 3467 | echo "el('span',{dangerouslySetInnerHTML: {__html: '".wp_kses_post( addslashes($args['desc']) )."'}})"; |
3470 | - }else{ echo "''"; } ?>, |
|
3468 | + } else{ echo "''"; } ?>, |
|
3471 | 3469 | value: <?php echo $value; ?>, |
3472 | 3470 | <?php if ( $type == 'TextControl' && $args['type'] != 'text' ) { |
3473 | 3471 | echo "type: '" . addslashes( $args['type'] ) . "',"; |
@@ -3507,7 +3505,7 @@ discard block |
||
3507 | 3505 | foreach ( $custom_attributes as $key => $val ) { |
3508 | 3506 | if(is_array($val)){ |
3509 | 3507 | $attributes .= $key.': {'.$this->array_to_attributes( $val, $html ).'},'; |
3510 | - }else{ |
|
3508 | + } else{ |
|
3511 | 3509 | $attributes .= $html ? " $key='$val' " : "'$key': '$val',"; |
3512 | 3510 | } |
3513 | 3511 | } |
@@ -3547,7 +3545,7 @@ discard block |
||
3547 | 3545 | |
3548 | 3546 | if($new_args['element']=='InnerBlocks'){ |
3549 | 3547 | echo "\n el( InnerBlocks, {"; |
3550 | - }elseif($new_args['element']=='innerBlocksProps'){ |
|
3548 | + } elseif($new_args['element']=='innerBlocksProps'){ |
|
3551 | 3549 | $element = isset($new_args['inner_element']) ? esc_attr($new_args['inner_element']) : 'div'; |
3552 | 3550 | // echo "\n el( 'section', wp.blockEditor.useInnerBlocksProps( blockProps, {"; |
3553 | 3551 | // echo $save ? "\n el( '$element', wp.blockEditor.useInnerBlocksProps.save( " : "\n el( '$element', wp.blockEditor.useInnerBlocksProps( "; |
@@ -3560,11 +3558,11 @@ discard block |
||
3560 | 3558 | // echo '###'; |
3561 | 3559 | |
3562 | 3560 | // echo '###'; |
3563 | - }elseif($new_args['element']=='BlocksProps'){ |
|
3561 | + } elseif($new_args['element']=='BlocksProps'){ |
|
3564 | 3562 | |
3565 | 3563 | if ( isset($new_args['if_inner_element']) ) { |
3566 | 3564 | $element = $new_args['if_inner_element']; |
3567 | - }else { |
|
3565 | + } else { |
|
3568 | 3566 | $element = isset($new_args['inner_element']) ? "'".esc_attr($new_args['inner_element'])."'" : "'div'"; |
3569 | 3567 | } |
3570 | 3568 | |
@@ -3575,7 +3573,7 @@ discard block |
||
3575 | 3573 | |
3576 | 3574 | // echo "} ),"; |
3577 | 3575 | |
3578 | - }else{ |
|
3576 | + } else{ |
|
3579 | 3577 | echo "\n el( '" . $new_args['element'] . "', {"; |
3580 | 3578 | } |
3581 | 3579 | |
@@ -3600,7 +3598,7 @@ discard block |
||
3600 | 3598 | |
3601 | 3599 | if ( $new_key === 'content' ) { |
3602 | 3600 | echo "'" . $this->block_props_replace( wp_slash( $new_value ) ) . "'"; |
3603 | - }else if ( $new_key === 'if_content' ) { |
|
3601 | + } else if ( $new_key === 'if_content' ) { |
|
3604 | 3602 | echo $this->block_props_replace( $new_value ); |
3605 | 3603 | } |
3606 | 3604 | |
@@ -3630,7 +3628,7 @@ discard block |
||
3630 | 3628 | |
3631 | 3629 | if($new_args['element']=='innerBlocksProps' || $new_args['element']=='xBlocksProps'){ |
3632 | 3630 | echo "))";// end content |
3633 | - }else{ |
|
3631 | + } else{ |
|
3634 | 3632 | echo ")";// end content |
3635 | 3633 | } |
3636 | 3634 | |
@@ -3916,7 +3914,7 @@ discard block |
||
3916 | 3914 | |
3917 | 3915 | if(empty($instance['widget_title_tag'])){ |
3918 | 3916 | $output = $args['before_title'] . $title . $args['after_title']; |
3919 | - }else{ |
|
3917 | + } else{ |
|
3920 | 3918 | $title_tag = esc_attr( $instance['widget_title_tag'] ); |
3921 | 3919 | |
3922 | 3920 | // classes |
@@ -4021,9 +4019,9 @@ discard block |
||
4021 | 4019 | <div class='row <?php if(!empty($args['row']['class'])){ echo esc_attr($args['row']['class']);} ?>'> |
4022 | 4020 | <div class='col pr-2'> |
4023 | 4021 | <?php |
4024 | - }elseif(!empty($args['row']['close'])){ |
|
4022 | + } elseif(!empty($args['row']['close'])){ |
|
4025 | 4023 | echo "<div class='col pl-0'>"; |
4026 | - }else{ |
|
4024 | + } else{ |
|
4027 | 4025 | echo "<div class='col pl-0 pr-2'>"; |
4028 | 4026 | } |
4029 | 4027 | } |
@@ -4241,11 +4239,11 @@ discard block |
||
4241 | 4239 | public function get_widget_icon($icon = 'box-top', $title = ''){ |
4242 | 4240 | if($icon=='box-top'){ |
4243 | 4241 | 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>'; |
4244 | - }elseif($icon=='box-right'){ |
|
4242 | + } elseif($icon=='box-right'){ |
|
4245 | 4243 | 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>'; |
4246 | - }elseif($icon=='box-bottom'){ |
|
4244 | + } elseif($icon=='box-bottom'){ |
|
4247 | 4245 | 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>'; |
4248 | - }elseif($icon=='box-left'){ |
|
4246 | + } elseif($icon=='box-left'){ |
|
4249 | 4247 | 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>'; |
4250 | 4248 | } |
4251 | 4249 | } |