| @@ -425,11 +425,11 @@ | ||
| 425 | 425 | ); |
| 426 | 426 | } |
| 427 | 427 | |
| 428 | 428 | public function enqueue_scripts() { |
| 429 | - wp_enqueue_style( 'bricks-animate' ); | |
| 430 | - wp_enqueue_style( 'ba-content-toggle' ); | |
| 431 | - wp_enqueue_script( 'ba-content-toggle' ); | |
| 429 | + if ( '' === get_option( 'bricksable_combine_minify_js' ) || false === get_option( 'bricksable_combine_minify_js' ) ) { | |
| 430 | + wp_enqueue_script( 'ba-content-toggle' ); | |
| 431 | + } | |
| 432 | 432 | } |
| 433 | 433 | |
| 434 | 434 | public function render() { |
| 435 | 435 | $settings = $this->settings; |
| @@ -441,16 +441,10 @@ | ||
| 441 | 441 | $this->set_attribute( 'wrapper', 'div' ); |
| 442 | 442 | $this->set_attribute( 'wrapper', 'class', $wrapper_classes ); |
| 443 | 443 | |
| 444 | 444 | // Render. |
| 445 | - $output = ''; | |
| 446 | - | |
| 447 | - if ( substr( BRICKS_VERSION, 0, 3 ) > '1.3' ) { | |
| 448 | - $output .= "<div {$this->render_attributes( '_root' )}>"; | |
| 449 | - } | |
| 450 | - | |
| 451 | 445 | //phpcs:ignore |
| 452 | - $output .= '<' . $this->render_attributes( 'wrapper' ) . '>'; | |
| 446 | + $output = '<' . $this->render_attributes( 'wrapper' ) . '>'; | |
| 453 | 447 | |
| 454 | 448 | $toggle_style = isset( $settings['toggle_style'] ) ? $settings['toggle_style'] : 'animated'; |
| 455 | 449 | |
| 456 | 450 | $label_classes = array( |
| @@ -551,12 +545,8 @@ | ||
| 551 | 545 | $output .= '</div>'; |
| 552 | 546 | } |
| 553 | 547 | |
| 554 | 548 | $output .= '</div>'; |
| 555 | - | |
| 556 | - if ( substr( BRICKS_VERSION, 0, 3 ) > '1.3' ) { | |
| 557 | - $output .= '</div>'; | |
| 558 | - } | |
| 559 | 549 | |
| 560 | 550 | //phpcs:ignore |
| 561 | 551 | echo $output; |
| 562 | 552 | |