@@ -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 |
@@ -620,7 +620,7 @@ |
||
620 | 620 | <?php |
621 | 621 | } |
622 | 622 | |
623 | - }else{ |
|
623 | + } else{ |
|
624 | 624 | if ( ! empty( $settings ) ) { |
625 | 625 | if ( $settings['type'] != 'KIT' && $settings['pro'] && ( $settings['version'] == '' || version_compare( $settings['version'], '6', '>=' ) ) ) { |
626 | 626 | $link = admin_url('options-general.php?page=wp-font-awesome-settings'); |
@@ -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' : ''; |
@@ -1548,7 +1548,7 @@ discard block |
||
1548 | 1548 | |
1549 | 1549 | if( is_admin() && !$this->is_aui_screen()){ |
1550 | 1550 | // don't add wp-admin scripts if not requested to |
1551 | - }else { |
|
1551 | + } else { |
|
1552 | 1552 | |
1553 | 1553 | $js_setting = current_action() == 'wp_enqueue_scripts' ? 'js' : 'js_backend'; |
1554 | 1554 | |
@@ -1932,7 +1932,7 @@ discard block |
||
1932 | 1932 | $colors[$color['slug']] = esc_attr($color['color']); |
1933 | 1933 | } |
1934 | 1934 | } |
1935 | - }else{ |
|
1935 | + } else{ |
|
1936 | 1936 | $settings = get_option('aui_options'); |
1937 | 1937 | $colors = array( |
1938 | 1938 | 'primary' => ! empty( $settings['color_primary'] ) ? $settings['color_primary'] : AUI_PRIMARY_COLOR, |
@@ -2019,9 +2019,9 @@ discard block |
||
2019 | 2019 | |
2020 | 2020 | if($compatibility===true || $compatibility===1){ |
2021 | 2021 | $compatibility = '.bsui'; |
2022 | - }elseif(!$compatibility){ |
|
2022 | + } elseif(!$compatibility){ |
|
2023 | 2023 | $compatibility = ''; |
2024 | - }else{ |
|
2024 | + } else{ |
|
2025 | 2025 | $compatibility = esc_attr($compatibility); |
2026 | 2026 | } |
2027 | 2027 | |
@@ -2868,7 +2868,9 @@ discard block |
||
2868 | 2868 | * @return mixed |
2869 | 2869 | */ |
2870 | 2870 | public static function minify_js($input) { |
2871 | - if(trim($input) === "") return $input; |
|
2871 | + if(trim($input) === "") { |
|
2872 | + return $input; |
|
2873 | + } |
|
2872 | 2874 | return preg_replace( |
2873 | 2875 | array( |
2874 | 2876 | // Remove comment(s) |
@@ -2900,7 +2902,9 @@ discard block |
||
2900 | 2902 | * @return mixed |
2901 | 2903 | */ |
2902 | 2904 | public static function minify_css($input) { |
2903 | - if(trim($input) === "") return $input; |
|
2905 | + if(trim($input) === "") { |
|
2906 | + return $input; |
|
2907 | + } |
|
2904 | 2908 | return preg_replace( |
2905 | 2909 | array( |
2906 | 2910 | // Remove comment(s) |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | if(!empty($this->options['nested-block'])){ |
60 | 60 | if(empty($this->options['output_types'])){ |
61 | 61 | $this->options['output_types'] = array('shortcode','block'); |
62 | - }elseif (($key = array_search('widget', $this->options['output_types'])) !== false) { |
|
62 | + } elseif (($key = array_search('widget', $this->options['output_types'])) !== false) { |
|
63 | 63 | unset($this->options['output_types'][$key]); |
64 | 64 | } |
65 | 65 | } |
@@ -698,7 +698,7 @@ discard block |
||
698 | 698 | <?php |
699 | 699 | if(! empty( $insert_shortcode_function )){ |
700 | 700 | echo $insert_shortcode_function; |
701 | - }else{ |
|
701 | + } else{ |
|
702 | 702 | |
703 | 703 | /** |
704 | 704 | * Function for super duper insert shortcode. |
@@ -2107,7 +2107,7 @@ discard block |
||
2107 | 2107 | var InnerBlocks = blockEditor.InnerBlocks; |
2108 | 2108 | |
2109 | 2109 | var term_query_type = ''; |
2110 | - 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 "[]";} ?>; |
|
2110 | + 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 "[]";} ?>; |
|
2111 | 2111 | const taxonomies_<?php echo str_replace("-","_", $this->id);?> = [{label: "Please wait", value: 0}]; |
2112 | 2112 | const sort_by_<?php echo str_replace("-","_", $this->id);?> = [{label: "Please wait", value: 0}]; |
2113 | 2113 | const MediaUpload = wp.blockEditor.MediaUpload; |
@@ -2226,8 +2226,7 @@ discard block |
||
2226 | 2226 | |
2227 | 2227 | if ( $args['type'] == 'notice' || $args['type'] == 'tab' ) { |
2228 | 2228 | continue; |
2229 | - } |
|
2230 | - elseif ( $args['type'] == 'checkbox' ) { |
|
2229 | + } elseif ( $args['type'] == 'checkbox' ) { |
|
2231 | 2230 | $type = 'boolean'; |
2232 | 2231 | $default = isset( $args['default'] ) && $args['default'] ? 'true' : 'false'; |
2233 | 2232 | } elseif ( $args['type'] == 'number' ) { |
@@ -2355,7 +2354,7 @@ discard block |
||
2355 | 2354 | <?php |
2356 | 2355 | if(!empty($this->options['block-edit-raw'])) { |
2357 | 2356 | echo $this->options['block-edit-raw']; // strings have to be in single quotes, may cause issues |
2358 | - }else{ |
|
2357 | + } else{ |
|
2359 | 2358 | ?> |
2360 | 2359 | |
2361 | 2360 | function hasSelectedInnerBlock(props) { |
@@ -2396,7 +2395,7 @@ discard block |
||
2396 | 2395 | |
2397 | 2396 | // taxonomies |
2398 | 2397 | if( $value && 'post_type' in prev_attributes[props.clientId] && 'category' in prev_attributes[props.clientId] && run ){ |
2399 | - 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 => { |
|
2398 | + 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 => { |
|
2400 | 2399 | while (taxonomies_<?php echo str_replace("-","_", $this->id);?>.length) { |
2401 | 2400 | taxonomies_<?php echo str_replace("-","_", $this->id);?>.pop(); |
2402 | 2401 | } |
@@ -2473,7 +2472,7 @@ discard block |
||
2473 | 2472 | 'block_parent_name': parentBlocks.length ? parentBlocks[parentBlocks.length - 1].name : '', |
2474 | 2473 | 'post_id': <?php global $post; if ( isset( $post->ID ) ) { |
2475 | 2474 | echo $post->ID; |
2476 | - }else{echo '0';}?>, |
|
2475 | + } else{echo '0';}?>, |
|
2477 | 2476 | '_ajax_nonce': '<?php echo wp_create_nonce( 'super_duper_output_shortcode' );?>' |
2478 | 2477 | }; |
2479 | 2478 | |
@@ -2493,7 +2492,7 @@ discard block |
||
2493 | 2492 | is_fetching = false; |
2494 | 2493 | prev_attributes[props.clientId] = props.attributes; |
2495 | 2494 | <?php |
2496 | - }else{ |
|
2495 | + } else{ |
|
2497 | 2496 | ?> |
2498 | 2497 | props.setAttributes({content: env}); |
2499 | 2498 | is_fetching = false; |
@@ -2672,7 +2671,7 @@ discard block |
||
2672 | 2671 | // |
2673 | 2672 | |
2674 | 2673 | } |
2675 | - }else { |
|
2674 | + } else { |
|
2676 | 2675 | ?> |
2677 | 2676 | el(wp.components.PanelBody, { |
2678 | 2677 | title: '<?php esc_attr_e( "Settings" ); ?>', |
@@ -2698,9 +2697,9 @@ discard block |
||
2698 | 2697 | // If the user sets block-output array then build it |
2699 | 2698 | if ( ! empty( $this->options['block-output'] ) ) { |
2700 | 2699 | $this->block_element( $this->options['block-output'] ); |
2701 | - }elseif(!empty($this->options['block-edit-return'])){ |
|
2700 | + } elseif(!empty($this->options['block-edit-return'])){ |
|
2702 | 2701 | echo $this->options['block-edit-return']; |
2703 | - }else{ |
|
2702 | + } else{ |
|
2704 | 2703 | // if no block-output is set then we try and get the shortcode html output via ajax. |
2705 | 2704 | ?> |
2706 | 2705 | el('div', wp.blockEditor.useBlockProps({ |
@@ -2804,9 +2803,9 @@ discard block |
||
2804 | 2803 | ); |
2805 | 2804 | <?php |
2806 | 2805 | |
2807 | - }elseif(!empty($this->options['block-save-return'])){ |
|
2806 | + } elseif(!empty($this->options['block-save-return'])){ |
|
2808 | 2807 | echo 'return ' . $this->options['block-save-return']; |
2809 | - }elseif(!empty($this->options['nested-block'])){ |
|
2808 | + } elseif(!empty($this->options['nested-block'])){ |
|
2810 | 2809 | ?> |
2811 | 2810 | return el( |
2812 | 2811 | '', |
@@ -2816,13 +2815,13 @@ discard block |
||
2816 | 2815 | el('', {dangerouslySetInnerHTML: {__html: "[/<?php echo $this->options['base_id'];?>]"}}) |
2817 | 2816 | ); |
2818 | 2817 | <?php |
2819 | - }elseif(!empty( $this->options['block-save-return'] ) ){ |
|
2818 | + } elseif(!empty( $this->options['block-save-return'] ) ){ |
|
2820 | 2819 | echo "return ". $this->options['block-edit-return'].";"; |
2821 | - }elseif(isset( $this->options['block-wrap'] ) && $this->options['block-wrap'] == ''){ |
|
2820 | + } elseif(isset( $this->options['block-wrap'] ) && $this->options['block-wrap'] == ''){ |
|
2822 | 2821 | ?> |
2823 | 2822 | return content; |
2824 | 2823 | <?php |
2825 | - }else{ |
|
2824 | + } else{ |
|
2826 | 2825 | ?> |
2827 | 2826 | var block_wrap = 'div'; |
2828 | 2827 | if (attr.hasOwnProperty("block_wrap")) { |
@@ -2873,9 +2872,9 @@ discard block |
||
2873 | 2872 | $device_type_icon = ''; |
2874 | 2873 | if($device_type=='Desktop'){ |
2875 | 2874 | $device_type_icon = '<span class="dashicons dashicons-desktop" style="font-size: 18px;"></span>'; |
2876 | - }elseif($device_type=='Tablet'){ |
|
2875 | + } elseif($device_type=='Tablet'){ |
|
2877 | 2876 | $device_type_icon = '<span class="dashicons dashicons-tablet" style="font-size: 18px;"></span>'; |
2878 | - }elseif($device_type=='Mobile'){ |
|
2877 | + } elseif($device_type=='Mobile'){ |
|
2879 | 2878 | $device_type_icon = '<span class="dashicons dashicons-smartphone" style="font-size: 18px;"></span>'; |
2880 | 2879 | } |
2881 | 2880 | echo $element_require; |
@@ -2920,7 +2919,7 @@ discard block |
||
2920 | 2919 | |
2921 | 2920 | <?php |
2922 | 2921 | if(false){?></script><?php } |
2923 | - }elseif(!empty($args['row']['close'])){ |
|
2922 | + } elseif(!empty($args['row']['close'])){ |
|
2924 | 2923 | if(false){?><script><?php }?> |
2925 | 2924 | el( |
2926 | 2925 | 'div', |
@@ -2929,7 +2928,7 @@ discard block |
||
2929 | 2928 | }, |
2930 | 2929 | <?php |
2931 | 2930 | if(false){?></script><?php } |
2932 | - }else{ |
|
2931 | + } else{ |
|
2933 | 2932 | if(false){?><script><?php }?> |
2934 | 2933 | el( |
2935 | 2934 | 'div', |
@@ -3037,9 +3036,9 @@ discard block |
||
3037 | 3036 | $device_type_icon = ''; |
3038 | 3037 | if($device_type=='Desktop'){ |
3039 | 3038 | $device_type_icon = '<span class="dashicons dashicons-desktop" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
3040 | - }elseif($device_type=='Tablet'){ |
|
3039 | + } elseif($device_type=='Tablet'){ |
|
3041 | 3040 | $device_type_icon = '<span class="dashicons dashicons-tablet" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
3042 | - }elseif($device_type=='Mobile'){ |
|
3041 | + } elseif($device_type=='Mobile'){ |
|
3043 | 3042 | $device_type_icon = '<span class="dashicons dashicons-smartphone" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
3044 | 3043 | } |
3045 | 3044 | |
@@ -3073,12 +3072,12 @@ discard block |
||
3073 | 3072 | if ( $args['type'] == 'number' ) { |
3074 | 3073 | $onchange = "props.setAttributes({ $key: $key ? Number($key) : '' } )"; |
3075 | 3074 | } |
3076 | - }else if ( $args['type'] == 'styleid' ) { |
|
3075 | + } else if ( $args['type'] == 'styleid' ) { |
|
3077 | 3076 | $type = 'TextControl'; |
3078 | 3077 | $args['type'] == 'text'; |
3079 | 3078 | // Save numbers as numbers and not strings |
3080 | 3079 | $value = "props.attributes.$key ? props.attributes.$key : 'aaabbbccc'"; |
3081 | - }else if ( $args['type'] == 'notice' ) { |
|
3080 | + } else if ( $args['type'] == 'notice' ) { |
|
3082 | 3081 | |
3083 | 3082 | $notice_message = !empty($args['desc']) ? addslashes($args['desc']) : ''; |
3084 | 3083 | $notice_status = !empty($args['status']) ? esc_attr($args['status']) : 'info'; |
@@ -3153,10 +3152,10 @@ discard block |
||
3153 | 3152 | $key: value |
3154 | 3153 | }); |
3155 | 3154 | },"; |
3156 | - }elseif ( $args['type'] == 'gradient' ) { |
|
3155 | + } elseif ( $args['type'] == 'gradient' ) { |
|
3157 | 3156 | $type = 'GradientPicker'; |
3158 | 3157 | |
3159 | - }elseif ( $args['type'] == 'image' ) { |
|
3158 | + } elseif ( $args['type'] == 'image' ) { |
|
3160 | 3159 | // print_r($args); |
3161 | 3160 | |
3162 | 3161 | $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,{ |
@@ -3218,7 +3217,7 @@ discard block |
||
3218 | 3217 | $onchange = ""; |
3219 | 3218 | |
3220 | 3219 | //$inside_elements = ",el('div',{},'file upload')"; |
3221 | - }elseif ( $args['type'] == 'images' ) { |
|
3220 | + } elseif ( $args['type'] == 'images' ) { |
|
3222 | 3221 | // print_r($args); |
3223 | 3222 | |
3224 | 3223 | $img_preview = "props.attributes.$key && (function() { |
@@ -3303,8 +3302,7 @@ discard block |
||
3303 | 3302 | $onchange = ""; |
3304 | 3303 | |
3305 | 3304 | //$inside_elements = ",el('div',{},'file upload')"; |
3306 | - } |
|
3307 | - elseif ( $args['type'] == 'checkbox' ) { |
|
3305 | + } elseif ( $args['type'] == 'checkbox' ) { |
|
3308 | 3306 | $type = 'CheckboxControl'; |
3309 | 3307 | $extra .= "checked: props.attributes.$key,"; |
3310 | 3308 | $onchange = "props.setAttributes({ $key: ! props.attributes.$key } )"; |
@@ -3315,9 +3313,9 @@ discard block |
||
3315 | 3313 | |
3316 | 3314 | if($args['name'] == 'category' && !empty($args['post_type_linked'])){ |
3317 | 3315 | $options .= "options: taxonomies_".str_replace("-","_", $this->id).","; |
3318 | - }elseif($args['name'] == 'sort_by' && !empty($args['post_type_linked'])){ |
|
3316 | + } elseif($args['name'] == 'sort_by' && !empty($args['post_type_linked'])){ |
|
3319 | 3317 | $options .= "options: sort_by_".str_replace("-","_", $this->id).","; |
3320 | - }else { |
|
3318 | + } else { |
|
3321 | 3319 | |
3322 | 3320 | if ( ! empty( $args['options'] ) ) { |
3323 | 3321 | $options .= "options: ["; |
@@ -3367,7 +3365,7 @@ discard block |
||
3367 | 3365 | |
3368 | 3366 | } elseif ( $args['type'] == 'alignment' ) { |
3369 | 3367 | $type = 'AlignmentToolbar'; // @todo this does not seem to work but cant find a example |
3370 | - }elseif ( $args['type'] == 'margins' ) { |
|
3368 | + } elseif ( $args['type'] == 'margins' ) { |
|
3371 | 3369 | |
3372 | 3370 | } else { |
3373 | 3371 | return;// if we have not implemented the control then don't break the JS. |
@@ -3397,7 +3395,7 @@ discard block |
||
3397 | 3395 | label: <?php |
3398 | 3396 | if(empty($args['title'])){ |
3399 | 3397 | echo "''"; |
3400 | - }elseif(empty($args['row']) && !empty($args['device_type'])){ |
|
3398 | + } elseif(empty($args['row']) && !empty($args['device_type'])){ |
|
3401 | 3399 | ?>el('label', { |
3402 | 3400 | className: 'components-base-control__label', |
3403 | 3401 | style: {width:"100%"} |
@@ -3412,7 +3410,7 @@ discard block |
||
3412 | 3410 | |
3413 | 3411 | )<?php |
3414 | 3412 | |
3415 | - }else{ |
|
3413 | + } else{ |
|
3416 | 3414 | ?>'<?php echo addslashes( $args['title'] ); ?>'<?php |
3417 | 3415 | |
3418 | 3416 | } |
@@ -3420,7 +3418,7 @@ discard block |
||
3420 | 3418 | ?>, |
3421 | 3419 | help: <?php if ( isset( $args['desc'] ) ) { |
3422 | 3420 | echo "el('span',{dangerouslySetInnerHTML: {__html: '".wp_kses_post( addslashes($args['desc']) )."'}})"; |
3423 | - }else{ echo "''"; } ?>, |
|
3421 | + } else{ echo "''"; } ?>, |
|
3424 | 3422 | value: <?php echo $value; ?>, |
3425 | 3423 | <?php if ( $type == 'TextControl' && $args['type'] != 'text' ) { |
3426 | 3424 | echo "type: '" . addslashes( $args['type'] ) . "',"; |
@@ -3460,7 +3458,7 @@ discard block |
||
3460 | 3458 | foreach ( $custom_attributes as $key => $val ) { |
3461 | 3459 | if(is_array($val)){ |
3462 | 3460 | $attributes .= $key.': {'.$this->array_to_attributes( $val, $html ).'},'; |
3463 | - }else{ |
|
3461 | + } else{ |
|
3464 | 3462 | $attributes .= $html ? " $key='$val' " : "'$key': '$val',"; |
3465 | 3463 | } |
3466 | 3464 | } |
@@ -3500,7 +3498,7 @@ discard block |
||
3500 | 3498 | |
3501 | 3499 | if($new_args['element']=='InnerBlocks'){ |
3502 | 3500 | echo "\n el( InnerBlocks, {"; |
3503 | - }elseif($new_args['element']=='innerBlocksProps'){ |
|
3501 | + } elseif($new_args['element']=='innerBlocksProps'){ |
|
3504 | 3502 | $element = isset($new_args['inner_element']) ? esc_attr($new_args['inner_element']) : 'div'; |
3505 | 3503 | // echo "\n el( 'section', wp.blockEditor.useInnerBlocksProps( blockProps, {"; |
3506 | 3504 | // echo $save ? "\n el( '$element', wp.blockEditor.useInnerBlocksProps.save( " : "\n el( '$element', wp.blockEditor.useInnerBlocksProps( "; |
@@ -3513,11 +3511,11 @@ discard block |
||
3513 | 3511 | // echo '###'; |
3514 | 3512 | |
3515 | 3513 | // echo '###'; |
3516 | - }elseif($new_args['element']=='BlocksProps'){ |
|
3514 | + } elseif($new_args['element']=='BlocksProps'){ |
|
3517 | 3515 | |
3518 | 3516 | if ( isset($new_args['if_inner_element']) ) { |
3519 | 3517 | $element = $new_args['if_inner_element']; |
3520 | - }else { |
|
3518 | + } else { |
|
3521 | 3519 | $element = isset($new_args['inner_element']) ? "'".esc_attr($new_args['inner_element'])."'" : "'div'"; |
3522 | 3520 | } |
3523 | 3521 | |
@@ -3528,7 +3526,7 @@ discard block |
||
3528 | 3526 | |
3529 | 3527 | // echo "} ),"; |
3530 | 3528 | |
3531 | - }else{ |
|
3529 | + } else{ |
|
3532 | 3530 | echo "\n el( '" . $new_args['element'] . "', {"; |
3533 | 3531 | } |
3534 | 3532 | |
@@ -3553,7 +3551,7 @@ discard block |
||
3553 | 3551 | |
3554 | 3552 | if ( $new_key === 'content' ) { |
3555 | 3553 | echo "'" . $this->block_props_replace( wp_slash( $new_value ) ) . "'"; |
3556 | - }else if ( $new_key === 'if_content' ) { |
|
3554 | + } else if ( $new_key === 'if_content' ) { |
|
3557 | 3555 | echo $this->block_props_replace( $new_value ); |
3558 | 3556 | } |
3559 | 3557 | |
@@ -3583,7 +3581,7 @@ discard block |
||
3583 | 3581 | |
3584 | 3582 | if($new_args['element']=='innerBlocksProps' || $new_args['element']=='xBlocksProps'){ |
3585 | 3583 | echo "))";// end content |
3586 | - }else{ |
|
3584 | + } else{ |
|
3587 | 3585 | echo ")";// end content |
3588 | 3586 | } |
3589 | 3587 | |
@@ -3869,7 +3867,7 @@ discard block |
||
3869 | 3867 | |
3870 | 3868 | if(empty($instance['widget_title_tag'])){ |
3871 | 3869 | $output = $args['before_title'] . $title . $args['after_title']; |
3872 | - }else{ |
|
3870 | + } else{ |
|
3873 | 3871 | $title_tag = esc_attr( $instance['widget_title_tag'] ); |
3874 | 3872 | |
3875 | 3873 | // classes |
@@ -3974,9 +3972,9 @@ discard block |
||
3974 | 3972 | <div class='row <?php if(!empty($args['row']['class'])){ echo esc_attr($args['row']['class']);} ?>'> |
3975 | 3973 | <div class='col pr-2'> |
3976 | 3974 | <?php |
3977 | - }elseif(!empty($args['row']['close'])){ |
|
3975 | + } elseif(!empty($args['row']['close'])){ |
|
3978 | 3976 | echo "<div class='col pl-0'>"; |
3979 | - }else{ |
|
3977 | + } else{ |
|
3980 | 3978 | echo "<div class='col pl-0 pr-2'>"; |
3981 | 3979 | } |
3982 | 3980 | } |
@@ -4194,11 +4192,11 @@ discard block |
||
4194 | 4192 | public function get_widget_icon($icon = 'box-top', $title = ''){ |
4195 | 4193 | if($icon=='box-top'){ |
4196 | 4194 | 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>'; |
4197 | - }elseif($icon=='box-right'){ |
|
4195 | + } elseif($icon=='box-right'){ |
|
4198 | 4196 | 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>'; |
4199 | - }elseif($icon=='box-bottom'){ |
|
4197 | + } elseif($icon=='box-bottom'){ |
|
4200 | 4198 | 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>'; |
4201 | - }elseif($icon=='box-left'){ |
|
4199 | + } elseif($icon=='box-left'){ |
|
4202 | 4200 | 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>'; |
4203 | 4201 | } |
4204 | 4202 | } |