@@ -538,7 +538,7 @@ discard block |
||
538 | 538 | // custom changes |
539 | 539 | if ( $load_fse ) { |
540 | 540 | wp_add_inline_style( 'ayecode-ui-fse', self::custom_css($compatibility, true) ); |
541 | - }else{ |
|
541 | + } else{ |
|
542 | 542 | wp_add_inline_style( 'ayecode-ui', self::custom_css($compatibility) ); |
543 | 543 | } |
544 | 544 | } |
@@ -558,7 +558,7 @@ discard block |
||
558 | 558 | ob_start(); |
559 | 559 | if ( $aui_bs5 ) { |
560 | 560 | include_once( dirname( __FILE__ ) . '/inc/bs5-js.php' ); |
561 | - }else{ |
|
561 | + } else{ |
|
562 | 562 | include_once( dirname( __FILE__ ) . '/inc/bs4-js.php' ); |
563 | 563 | } |
564 | 564 | |
@@ -642,7 +642,7 @@ discard block |
||
642 | 642 | // iconpicker |
643 | 643 | if ( defined( 'FAS_ICONPICKER_JS_URL' ) ) { |
644 | 644 | wp_register_script( 'iconpicker', FAS_ICONPICKER_JS_URL, array(), $this->version ); |
645 | - }else{ |
|
645 | + } else{ |
|
646 | 646 | wp_register_script( 'iconpicker', $this->url . 'assets/js/fa-iconpicker.min.js', array(), $this->version ); |
647 | 647 | } |
648 | 648 | |
@@ -1371,9 +1371,9 @@ discard block |
||
1371 | 1371 | |
1372 | 1372 | if($compatibility===true || $compatibility===1){ |
1373 | 1373 | $compatibility = '.bsui'; |
1374 | - }elseif(!$compatibility){ |
|
1374 | + } elseif(!$compatibility){ |
|
1375 | 1375 | $compatibility = ''; |
1376 | - }else{ |
|
1376 | + } else{ |
|
1377 | 1377 | $compatibility = esc_attr($compatibility); |
1378 | 1378 | } |
1379 | 1379 | |
@@ -1659,9 +1659,9 @@ discard block |
||
1659 | 1659 | |
1660 | 1660 | if($compatibility===true || $compatibility===1){ |
1661 | 1661 | $compatibility = '.bsui'; |
1662 | - }elseif(!$compatibility){ |
|
1662 | + } elseif(!$compatibility){ |
|
1663 | 1663 | $compatibility = ''; |
1664 | - }else{ |
|
1664 | + } else{ |
|
1665 | 1665 | $compatibility = esc_attr($compatibility); |
1666 | 1666 | } |
1667 | 1667 | |
@@ -2531,7 +2531,9 @@ discard block |
||
2531 | 2531 | * @return mixed |
2532 | 2532 | */ |
2533 | 2533 | public static function minify_js($input) { |
2534 | - if(trim($input) === "") return $input; |
|
2534 | + if(trim($input) === "") { |
|
2535 | + return $input; |
|
2536 | + } |
|
2535 | 2537 | return preg_replace( |
2536 | 2538 | array( |
2537 | 2539 | // Remove comment(s) |
@@ -2563,7 +2565,9 @@ discard block |
||
2563 | 2565 | * @return mixed |
2564 | 2566 | */ |
2565 | 2567 | public static function minify_css($input) { |
2566 | - if(trim($input) === "") return $input; |
|
2568 | + if(trim($input) === "") { |
|
2569 | + return $input; |
|
2570 | + } |
|
2567 | 2571 | return preg_replace( |
2568 | 2572 | array( |
2569 | 2573 | // Remove comment(s) |
@@ -1,7 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
|
4 | +if ( ! defined( 'ABSPATH' ) ) { |
|
5 | + exit; |
|
6 | +} |
|
7 | +// Exit if accessed directly |
|
5 | 8 | |
6 | 9 | |
7 | 10 | class Super_Duper_Bricks_Element extends \Bricks\Element { |