@@ -128,7 +128,7 @@ |
||
| 128 | 128 | |
| 129 | 129 | if( !$version || version_compare($version,'5.999','>')){ |
| 130 | 130 | $url .= 'assets/js/fa-iconpicker-v6.min.js'; |
| 131 | - }else{ |
|
| 131 | + } else{ |
|
| 132 | 132 | $url .= 'assets/js/fa-iconpicker-v5.min.js'; |
| 133 | 133 | } |
| 134 | 134 | |
@@ -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) |