@@ -462,7 +462,7 @@ discard block |
||
| 462 | 462 | |
| 463 | 463 | if( is_admin() && !$this->is_aui_screen()){ |
| 464 | 464 | // don't add wp-admin scripts if not requested to |
| 465 | - }else{ |
|
| 465 | + } else{ |
|
| 466 | 466 | $css_setting = current_action() == 'wp_enqueue_scripts' ? 'css' : 'css_backend'; |
| 467 | 467 | |
| 468 | 468 | $rtl = is_rtl() && ! $aui_bs5 ? '-rtl' : ''; |
@@ -552,7 +552,7 @@ discard block |
||
| 552 | 552 | // custom changes |
| 553 | 553 | if ( $load_fse ) { |
| 554 | 554 | wp_add_inline_style( 'ayecode-ui-fse', self::custom_css($compatibility) ); |
| 555 | - }else{ |
|
| 555 | + } else{ |
|
| 556 | 556 | wp_add_inline_style( 'ayecode-ui', self::custom_css($compatibility) ); |
| 557 | 557 | |
| 558 | 558 | } |
@@ -576,7 +576,7 @@ discard block |
||
| 576 | 576 | ob_start(); |
| 577 | 577 | if ( $aui_bs5 ) { |
| 578 | 578 | include_once( dirname( __FILE__ ) . '/inc/bs5-js.php' ); |
| 579 | - }else{ |
|
| 579 | + } else{ |
|
| 580 | 580 | include_once( dirname( __FILE__ ) . '/inc/bs4-js.php' ); |
| 581 | 581 | } |
| 582 | 582 | |
@@ -647,7 +647,7 @@ discard block |
||
| 647 | 647 | |
| 648 | 648 | if( is_admin() && !$this->is_aui_screen()){ |
| 649 | 649 | // don't add wp-admin scripts if not requested to |
| 650 | - }else { |
|
| 650 | + } else { |
|
| 651 | 651 | |
| 652 | 652 | $js_setting = current_action() == 'wp_enqueue_scripts' ? 'js' : 'js_backend'; |
| 653 | 653 | |
@@ -662,7 +662,7 @@ discard block |
||
| 662 | 662 | // iconpicker |
| 663 | 663 | if ( defined( 'FAS_ICONPICKER_JS_URL' ) ) { |
| 664 | 664 | wp_register_script( 'iconpicker', FAS_ICONPICKER_JS_URL, array(), $this->version ); |
| 665 | - }else{ |
|
| 665 | + } else{ |
|
| 666 | 666 | wp_register_script( 'iconpicker', $this->url . 'assets/js/fa-iconpicker.min.js', array(), $this->version ); |
| 667 | 667 | } |
| 668 | 668 | |
@@ -1094,7 +1094,7 @@ discard block |
||
| 1094 | 1094 | $colors[$color['slug']] = esc_attr($color['color']); |
| 1095 | 1095 | } |
| 1096 | 1096 | } |
| 1097 | - }else{ |
|
| 1097 | + } else{ |
|
| 1098 | 1098 | $settings = get_option('aui_options'); |
| 1099 | 1099 | $colors = array( |
| 1100 | 1100 | 'primary' => ! empty( $settings['color_primary'] ) ? $settings['color_primary'] : AUI_PRIMARY_COLOR, |
@@ -1232,9 +1232,9 @@ discard block |
||
| 1232 | 1232 | |
| 1233 | 1233 | if($compatibility===true || $compatibility===1){ |
| 1234 | 1234 | $compatibility = '.bsui'; |
| 1235 | - }elseif(!$compatibility){ |
|
| 1235 | + } elseif(!$compatibility){ |
|
| 1236 | 1236 | $compatibility = ''; |
| 1237 | - }else{ |
|
| 1237 | + } else{ |
|
| 1238 | 1238 | $compatibility = esc_attr($compatibility); |
| 1239 | 1239 | } |
| 1240 | 1240 | |
@@ -1517,9 +1517,9 @@ discard block |
||
| 1517 | 1517 | |
| 1518 | 1518 | if($compatibility===true || $compatibility===1){ |
| 1519 | 1519 | $compatibility = '.bsui'; |
| 1520 | - }elseif(!$compatibility){ |
|
| 1520 | + } elseif(!$compatibility){ |
|
| 1521 | 1521 | $compatibility = ''; |
| 1522 | - }else{ |
|
| 1522 | + } else{ |
|
| 1523 | 1523 | $compatibility = esc_attr($compatibility); |
| 1524 | 1524 | } |
| 1525 | 1525 | |
@@ -2385,7 +2385,9 @@ discard block |
||
| 2385 | 2385 | * @return mixed |
| 2386 | 2386 | */ |
| 2387 | 2387 | public static function minify_js($input) { |
| 2388 | - if(trim($input) === "") return $input; |
|
| 2388 | + if(trim($input) === "") { |
|
| 2389 | + return $input; |
|
| 2390 | + } |
|
| 2389 | 2391 | return preg_replace( |
| 2390 | 2392 | array( |
| 2391 | 2393 | // Remove comment(s) |
@@ -2417,7 +2419,9 @@ discard block |
||
| 2417 | 2419 | * @return mixed |
| 2418 | 2420 | */ |
| 2419 | 2421 | public static function minify_css($input) { |
| 2420 | - if(trim($input) === "") return $input; |
|
| 2422 | + if(trim($input) === "") { |
|
| 2423 | + return $input; |
|
| 2424 | + } |
|
| 2421 | 2425 | return preg_replace( |
| 2422 | 2426 | array( |
| 2423 | 2427 | // 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 | } |
@@ -715,7 +715,7 @@ discard block |
||
| 715 | 715 | <?php |
| 716 | 716 | if(! empty( $insert_shortcode_function )){ |
| 717 | 717 | echo $insert_shortcode_function; |
| 718 | - }else{ |
|
| 718 | + } else{ |
|
| 719 | 719 | |
| 720 | 720 | /** |
| 721 | 721 | * Function for super duper insert shortcode. |
@@ -2233,7 +2233,7 @@ discard block |
||
| 2233 | 2233 | $p_pl = 'ps-'; |
| 2234 | 2234 | $p_pr = 'pe-'; |
| 2235 | 2235 | <?php |
| 2236 | - }else{ |
|
| 2236 | + } else{ |
|
| 2237 | 2237 | ?> |
| 2238 | 2238 | $aui_bs5 = false; |
| 2239 | 2239 | $p_ml = 'ml-'; |
@@ -2455,7 +2455,7 @@ discard block |
||
| 2455 | 2455 | var InnerBlocks = blockEditor.InnerBlocks; |
| 2456 | 2456 | |
| 2457 | 2457 | var term_query_type = ''; |
| 2458 | - 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 "[]";} ?>; |
|
| 2458 | + 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 "[]";} ?>; |
|
| 2459 | 2459 | const taxonomies_<?php echo str_replace("-","_", $this->id);?> = [{label: "Please wait", value: 0}]; |
| 2460 | 2460 | const sort_by_<?php echo str_replace("-","_", $this->id);?> = [{label: "Please wait", value: 0}]; |
| 2461 | 2461 | const MediaUpload = wp.blockEditor.MediaUpload; |
@@ -2574,8 +2574,7 @@ discard block |
||
| 2574 | 2574 | |
| 2575 | 2575 | if ( $args['type'] == 'notice' || $args['type'] == 'tab' ) { |
| 2576 | 2576 | continue; |
| 2577 | - } |
|
| 2578 | - elseif ( $args['type'] == 'checkbox' ) { |
|
| 2577 | + } elseif ( $args['type'] == 'checkbox' ) { |
|
| 2579 | 2578 | $type = 'boolean'; |
| 2580 | 2579 | $default = isset( $args['default'] ) && $args['default'] ? 'true' : 'false'; |
| 2581 | 2580 | } elseif ( $args['type'] == 'number' ) { |
@@ -2703,7 +2702,7 @@ discard block |
||
| 2703 | 2702 | <?php |
| 2704 | 2703 | if(!empty($this->options['block-edit-raw'])) { |
| 2705 | 2704 | echo $this->options['block-edit-raw']; // strings have to be in single quotes, may cause issues |
| 2706 | - }else{ |
|
| 2705 | + } else{ |
|
| 2707 | 2706 | ?> |
| 2708 | 2707 | |
| 2709 | 2708 | function hasSelectedInnerBlock(props) { |
@@ -2838,7 +2837,7 @@ discard block |
||
| 2838 | 2837 | $current_screen = function_exists('get_current_screen') ? get_current_screen() : ''; |
| 2839 | 2838 | if(!empty($current_screen->base) && $current_screen->base==='widgets'){ |
| 2840 | 2839 | echo 'const { deviceType } = "";'; |
| 2841 | -}else{ |
|
| 2840 | +} else{ |
|
| 2842 | 2841 | ?> |
| 2843 | 2842 | /** Get device type const. */ |
| 2844 | 2843 | const { deviceType } = wp.data.useSelect != 'undefined' ? wp.data.useSelect(select => { |
@@ -2872,7 +2871,7 @@ discard block |
||
| 2872 | 2871 | 'block_parent_name': parentBlocks.length ? parentBlocks[parentBlocks.length - 1].name : '', |
| 2873 | 2872 | 'post_id': <?php global $post; if ( isset( $post->ID ) ) { |
| 2874 | 2873 | echo $post->ID; |
| 2875 | - }else{echo '0';}?>, |
|
| 2874 | + } else{echo '0';}?>, |
|
| 2876 | 2875 | '_ajax_nonce': '<?php echo wp_create_nonce( 'super_duper_output_shortcode' );?>' |
| 2877 | 2876 | }; |
| 2878 | 2877 | |
@@ -2892,7 +2891,7 @@ discard block |
||
| 2892 | 2891 | is_fetching = false; |
| 2893 | 2892 | prev_attributes[props.clientId] = props.attributes; |
| 2894 | 2893 | <?php |
| 2895 | - }else{ |
|
| 2894 | + } else{ |
|
| 2896 | 2895 | ?> |
| 2897 | 2896 | props.setAttributes({content: env}); |
| 2898 | 2897 | is_fetching = false; |
@@ -3050,7 +3049,7 @@ discard block |
||
| 3050 | 3049 | // |
| 3051 | 3050 | |
| 3052 | 3051 | } |
| 3053 | - }else { |
|
| 3052 | + } else { |
|
| 3054 | 3053 | ?> |
| 3055 | 3054 | el(wp.components.PanelBody, { |
| 3056 | 3055 | title: '<?php esc_attr_e( "Settings", 'ayecode-connect' ); ?>', |
@@ -3076,9 +3075,9 @@ discard block |
||
| 3076 | 3075 | // If the user sets block-output array then build it |
| 3077 | 3076 | if ( ! empty( $this->options['block-output'] ) ) { |
| 3078 | 3077 | $this->block_element( $this->options['block-output'] ); |
| 3079 | - }elseif(!empty($this->options['block-edit-return'])){ |
|
| 3078 | + } elseif(!empty($this->options['block-edit-return'])){ |
|
| 3080 | 3079 | echo $this->options['block-edit-return']; |
| 3081 | - }else{ |
|
| 3080 | + } else{ |
|
| 3082 | 3081 | // if no block-output is set then we try and get the shortcode html output via ajax. |
| 3083 | 3082 | $block_edit_wrap_tag = !empty($this->options['block_edit_wrap_tag']) ? esc_attr($this->options['block_edit_wrap_tag']) : 'div'; |
| 3084 | 3083 | ?> |
@@ -3183,9 +3182,9 @@ discard block |
||
| 3183 | 3182 | ); |
| 3184 | 3183 | <?php |
| 3185 | 3184 | |
| 3186 | - }elseif(!empty($this->options['block-save-return'])){ |
|
| 3185 | + } elseif(!empty($this->options['block-save-return'])){ |
|
| 3187 | 3186 | echo 'return ' . $this->options['block-save-return']; |
| 3188 | - }elseif(!empty($this->options['nested-block'])){ |
|
| 3187 | + } elseif(!empty($this->options['nested-block'])){ |
|
| 3189 | 3188 | ?> |
| 3190 | 3189 | return el( |
| 3191 | 3190 | '', |
@@ -3195,13 +3194,13 @@ discard block |
||
| 3195 | 3194 | el('', {dangerouslySetInnerHTML: {__html: "[/<?php echo $this->options['base_id'];?>]"}}) |
| 3196 | 3195 | ); |
| 3197 | 3196 | <?php |
| 3198 | - }elseif(!empty( $this->options['block-save-return'] ) ){ |
|
| 3197 | + } elseif(!empty( $this->options['block-save-return'] ) ){ |
|
| 3199 | 3198 | echo "return ". $this->options['block-edit-return'].";"; |
| 3200 | - }elseif(isset( $this->options['block-wrap'] ) && $this->options['block-wrap'] == ''){ |
|
| 3199 | + } elseif(isset( $this->options['block-wrap'] ) && $this->options['block-wrap'] == ''){ |
|
| 3201 | 3200 | ?> |
| 3202 | 3201 | return content; |
| 3203 | 3202 | <?php |
| 3204 | - }else{ |
|
| 3203 | + } else{ |
|
| 3205 | 3204 | ?> |
| 3206 | 3205 | var block_wrap = 'div'; |
| 3207 | 3206 | if (attr.hasOwnProperty("block_wrap")) { |
@@ -3252,9 +3251,9 @@ discard block |
||
| 3252 | 3251 | $device_type_icon = ''; |
| 3253 | 3252 | if($device_type=='Desktop'){ |
| 3254 | 3253 | $device_type_icon = '<span class="dashicons dashicons-desktop" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
| 3255 | - }elseif($device_type=='Tablet'){ |
|
| 3254 | + } elseif($device_type=='Tablet'){ |
|
| 3256 | 3255 | $device_type_icon = '<span class="dashicons dashicons-tablet" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
| 3257 | - }elseif($device_type=='Mobile'){ |
|
| 3256 | + } elseif($device_type=='Mobile'){ |
|
| 3258 | 3257 | $device_type_icon = '<span class="dashicons dashicons-smartphone" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
| 3259 | 3258 | } |
| 3260 | 3259 | echo $element_require; |
@@ -3299,7 +3298,7 @@ discard block |
||
| 3299 | 3298 | |
| 3300 | 3299 | <?php |
| 3301 | 3300 | if(false){?></script><?php } |
| 3302 | - }elseif(!empty($args['row']['close'])){ |
|
| 3301 | + } elseif(!empty($args['row']['close'])){ |
|
| 3303 | 3302 | if(false){?><script><?php }?> |
| 3304 | 3303 | el( |
| 3305 | 3304 | 'div', |
@@ -3308,7 +3307,7 @@ discard block |
||
| 3308 | 3307 | }, |
| 3309 | 3308 | <?php |
| 3310 | 3309 | if(false){?></script><?php } |
| 3311 | - }else{ |
|
| 3310 | + } else{ |
|
| 3312 | 3311 | if(false){?><script><?php }?> |
| 3313 | 3312 | el( |
| 3314 | 3313 | 'div', |
@@ -3413,9 +3412,9 @@ discard block |
||
| 3413 | 3412 | $device_type_icon = ''; |
| 3414 | 3413 | if($device_type=='Desktop'){ |
| 3415 | 3414 | $device_type_icon = '<span class="dashicons dashicons-desktop" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
| 3416 | - }elseif($device_type=='Tablet'){ |
|
| 3415 | + } elseif($device_type=='Tablet'){ |
|
| 3417 | 3416 | $device_type_icon = '<span class="dashicons dashicons-tablet" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
| 3418 | - }elseif($device_type=='Mobile'){ |
|
| 3417 | + } elseif($device_type=='Mobile'){ |
|
| 3419 | 3418 | $device_type_icon = '<span class="dashicons dashicons-smartphone" style="font-size: 18px;" onclick="sd_show_view_options(this);"></span>'; |
| 3420 | 3419 | } |
| 3421 | 3420 | |
@@ -3472,7 +3471,7 @@ discard block |
||
| 3472 | 3471 | $args['type'] == 'text'; |
| 3473 | 3472 | // Save numbers as numbers and not strings |
| 3474 | 3473 | $value = "props.attributes.$key ? props.attributes.$key : ''"; |
| 3475 | - }else if ( $args['type'] == 'notice' ) { |
|
| 3474 | + } else if ( $args['type'] == 'notice' ) { |
|
| 3476 | 3475 | |
| 3477 | 3476 | $notice_message = !empty($args['desc']) ? addslashes($args['desc']) : ''; |
| 3478 | 3477 | $notice_status = !empty($args['status']) ? esc_attr($args['status']) : 'info'; |
@@ -3547,7 +3546,7 @@ discard block |
||
| 3547 | 3546 | $key: value |
| 3548 | 3547 | }); |
| 3549 | 3548 | },"; |
| 3550 | - }elseif ( $args['type'] == 'gradient' ) { |
|
| 3549 | + } elseif ( $args['type'] == 'gradient' ) { |
|
| 3551 | 3550 | $type = 'GradientPicker'; |
| 3552 | 3551 | $extra .= "gradients: [{ |
| 3553 | 3552 | name: 'Vivid cyan blue to vivid purple', |
@@ -3586,7 +3585,7 @@ discard block |
||
| 3586 | 3585 | slug: 'cool-to-warm-spectrum', |
| 3587 | 3586 | }],"; |
| 3588 | 3587 | |
| 3589 | - }elseif ( $args['type'] == 'image' ) { |
|
| 3588 | + } elseif ( $args['type'] == 'image' ) { |
|
| 3590 | 3589 | // print_r($args); |
| 3591 | 3590 | |
| 3592 | 3591 | $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,{ |
@@ -3723,8 +3722,7 @@ discard block |
||
| 3723 | 3722 | $onchange = ""; |
| 3724 | 3723 | |
| 3725 | 3724 | //$inside_elements = ",el('div',{},'file upload')"; |
| 3726 | - } |
|
| 3727 | - elseif ( $args['type'] == 'checkbox' ) { |
|
| 3725 | + } elseif ( $args['type'] == 'checkbox' ) { |
|
| 3728 | 3726 | $type = 'CheckboxControl'; |
| 3729 | 3727 | $extra .= "checked: props.attributes.$key,"; |
| 3730 | 3728 | $onchange = "props.setAttributes({ $key: ! props.attributes.$key } )"; |
@@ -3736,9 +3734,9 @@ discard block |
||
| 3736 | 3734 | |
| 3737 | 3735 | if($args['name'] == 'category' && !empty($args['post_type_linked'])){ |
| 3738 | 3736 | $options .= "options: taxonomies_".str_replace("-","_", $this->id).","; |
| 3739 | - }elseif($args['name'] == 'sort_by' && !empty($args['post_type_linked'])){ |
|
| 3737 | + } elseif($args['name'] == 'sort_by' && !empty($args['post_type_linked'])){ |
|
| 3740 | 3738 | $options .= "options: sort_by_".str_replace("-","_", $this->id).","; |
| 3741 | - }else { |
|
| 3739 | + } else { |
|
| 3742 | 3740 | |
| 3743 | 3741 | if ( ! empty( $args['options'] ) ) { |
| 3744 | 3742 | $options .= "options: ["; |
@@ -3902,7 +3900,7 @@ discard block |
||
| 3902 | 3900 | foreach ( $custom_attributes as $key => $val ) { |
| 3903 | 3901 | if(is_array($val)){ |
| 3904 | 3902 | $attributes .= $key.': {'.$this->array_to_attributes( $val, $html ).'},'; |
| 3905 | - }else{ |
|
| 3903 | + } else{ |
|
| 3906 | 3904 | $attributes .= $html ? " $key='$val' " : "'$key': '$val',"; |
| 3907 | 3905 | } |
| 3908 | 3906 | } |
@@ -3942,7 +3940,7 @@ discard block |
||
| 3942 | 3940 | |
| 3943 | 3941 | if($new_args['element']=='InnerBlocks'){ |
| 3944 | 3942 | echo "\n el( InnerBlocks, {"; |
| 3945 | - }elseif($new_args['element']=='innerBlocksProps'){ |
|
| 3943 | + } elseif($new_args['element']=='innerBlocksProps'){ |
|
| 3946 | 3944 | $element = isset($new_args['inner_element']) ? esc_attr($new_args['inner_element']) : 'div'; |
| 3947 | 3945 | // echo "\n el( 'section', wp.blockEditor.useInnerBlocksProps( blockProps, {"; |
| 3948 | 3946 | // echo $save ? "\n el( '$element', wp.blockEditor.useInnerBlocksProps.save( " : "\n el( '$element', wp.blockEditor.useInnerBlocksProps( "; |
@@ -3955,11 +3953,11 @@ discard block |
||
| 3955 | 3953 | // echo '###'; |
| 3956 | 3954 | |
| 3957 | 3955 | // echo '###'; |
| 3958 | - }elseif($new_args['element']=='BlocksProps'){ |
|
| 3956 | + } elseif($new_args['element']=='BlocksProps'){ |
|
| 3959 | 3957 | |
| 3960 | 3958 | if ( isset($new_args['if_inner_element']) ) { |
| 3961 | 3959 | $element = $new_args['if_inner_element']; |
| 3962 | - }else { |
|
| 3960 | + } else { |
|
| 3963 | 3961 | $element = isset($new_args['inner_element']) ? "'".esc_attr($new_args['inner_element'])."'" : "'div'"; |
| 3964 | 3962 | } |
| 3965 | 3963 | |
@@ -3970,7 +3968,7 @@ discard block |
||
| 3970 | 3968 | |
| 3971 | 3969 | // echo "} ),"; |
| 3972 | 3970 | |
| 3973 | - }else{ |
|
| 3971 | + } else{ |
|
| 3974 | 3972 | echo "\n el( '" . $new_args['element'] . "', {"; |
| 3975 | 3973 | } |
| 3976 | 3974 | |
@@ -3995,7 +3993,7 @@ discard block |
||
| 3995 | 3993 | |
| 3996 | 3994 | if ( $new_key === 'content' ) { |
| 3997 | 3995 | echo "'" . $this->block_props_replace( wp_slash( $new_value ) ) . "'"; |
| 3998 | - }else if ( $new_key === 'if_content' ) { |
|
| 3996 | + } else if ( $new_key === 'if_content' ) { |
|
| 3999 | 3997 | echo $this->block_props_replace( $new_value ); |
| 4000 | 3998 | } |
| 4001 | 3999 | |
@@ -4025,7 +4023,7 @@ discard block |
||
| 4025 | 4023 | |
| 4026 | 4024 | if($new_args['element']=='innerBlocksProps' || $new_args['element']=='xBlocksProps'){ |
| 4027 | 4025 | echo "))";// end content |
| 4028 | - }else{ |
|
| 4026 | + } else{ |
|
| 4029 | 4027 | echo ")";// end content |
| 4030 | 4028 | } |
| 4031 | 4029 | |
@@ -4351,7 +4349,7 @@ discard block |
||
| 4351 | 4349 | |
| 4352 | 4350 | if(empty($instance['widget_title_tag'])){ |
| 4353 | 4351 | $output = $args['before_title'] . $title . $args['after_title']; |
| 4354 | - }else{ |
|
| 4352 | + } else{ |
|
| 4355 | 4353 | $title_tag = esc_attr( $instance['widget_title_tag'] ); |
| 4356 | 4354 | |
| 4357 | 4355 | // classes |
@@ -4641,11 +4639,11 @@ discard block |
||
| 4641 | 4639 | public function get_widget_icon($icon = 'box-top', $title = ''){ |
| 4642 | 4640 | if($icon=='box-top'){ |
| 4643 | 4641 | 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>'; |
| 4644 | - }elseif($icon=='box-right'){ |
|
| 4642 | + } elseif($icon=='box-right'){ |
|
| 4645 | 4643 | 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>'; |
| 4646 | - }elseif($icon=='box-bottom'){ |
|
| 4644 | + } elseif($icon=='box-bottom'){ |
|
| 4647 | 4645 | 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>'; |
| 4648 | - }elseif($icon=='box-left'){ |
|
| 4646 | + } elseif($icon=='box-left'){ |
|
| 4649 | 4647 | 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>'; |
| 4650 | 4648 | } |
| 4651 | 4649 | } |