PluginProbe
Bricksable for Bricks Builder / 1.3.0
Bricksable for Bricks Builder v1.3.0
1.2.9 1.3.0 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.31 1.4.32 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 All 132 releases
← All changes | includes/elements/element-text-notation.php +12 -17 1.4.321.3.0 View file →
@@ -118,9 +118,9 @@
118 118 'type' => 'select',
119 119 'options' => array(
120 120 'underline' => esc_html__( 'Underline', 'bricksable' ),
121 121 'box' => esc_html__( 'Box', 'bricksable' ),
122 - 'circle' => esc_html__( 'Circle', 'bricksable' ),
122 + 'circle' => esc_html__( 'circle', 'bricksable' ),
123 123 'highlight' => esc_html__( 'Highlight', 'bricksable' ),
124 124 'strike-through' => esc_html__( 'Strike through', 'bricksable' ),
125 125 'crossed-off' => esc_html__( 'Crossed-off', 'bricksable' ),
126 126 'bracket' => esc_html__( 'Bracket', 'bricksable' ),
@@ -479,18 +479,19 @@
479 479 );
480 480 }
481 481
482 482 public function enqueue_scripts() {
483 - wp_enqueue_script( 'ba-text-notation' );
484 - wp_localize_script(
485 - 'ba-text-notation',
486 - 'BricksabletextNotationData',
487 - array(
488 - 'textNotationInstances' => array(),
489 - )
490 - );
483 + if ( '' === get_option( 'bricksable_combine_minify_js' ) || false === get_option( 'bricksable_combine_minify_js' ) ) {
484 + wp_enqueue_script( 'ba-text-notation' );
485 + wp_localize_script(
486 + 'ba-text-notation',
487 + 'BricksabletextNotationData',
488 + array(
489 + 'textNotationInstances' => array(),
490 + )
491 + );
492 + }
491 493 }
492 -
493 494 public function render() {
494 495 $settings = $this->settings;
495 496
496 497 $notation_tag = isset( $settings['notation_tag'] ) ? esc_html( $settings['notation_tag'] ) : 'h3';
@@ -534,12 +535,8 @@
534 535 $this->set_attribute( 'notation_text', 'class', 'ba-text-notation-wrapper' );
535 536 $this->set_attribute( 'notation_text', 'data-ba-bricks-text-notation-options', wp_json_encode( $notation_options ) );
536 537
537 538 // Render.
538 - if ( substr( BRICKS_VERSION, 0, 3 ) > '1.3' ) {
539 - //phpcs:ignore
540 - echo "<div {$this->render_attributes( '_root' )}>";
541 - }
542 539 //phpcs:ignore
543 540 echo '<' . $this->render_attributes( 'notation_wrapper' ) . '>';
544 541
545 542 if ( isset( $settings['prefix'] ) ) {
@@ -560,9 +557,7 @@
560 557 <span class="suffix"><?php echo esc_html( $settings['suffix'] ); ?></span>
561 558 <?php
562 559 }
563 560 echo '</' . esc_attr( $wrapper_tag ) . '>';
564 - if ( substr( BRICKS_VERSION, 0, 3 ) > '1.3' ) {
565 - echo '</div>';
566 - }
561 +
567 562 }
568 563 }