PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.6.0
ShopBuilder – WooCommerce Builder For Elementor v2.6.0
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
← All changes | app/Abstracts/Discount.php +8 -10 2.2.02.6.0 View file →
@@ -55,17 +55,14 @@
55 55 $current = time();
56 56 $start = strtotime( $this->options['start_date'] );
57 57 $end = strtotime( $this->options['end_date'] );
58 58
59 - if ( $this->options['global_check'] ) {
60 - return;
61 - }
62 -
59 + $global = $this->options['global_check'] ?? 'rtsb__notice';
63 60 // Black Friday Notice.
64 - if ( ! rtsb()->has_pro() && $start <= $current && $current <= $end ) {
61 + if ( $start <= $current && $current <= $end ) {
65 62 if ( get_option( $this->options['option_name'] ) != '1' ) {
66 - if ( ! isset( $GLOBALS['rtsb__notice'] ) ) {
67 - $GLOBALS['rtsb__notice'] = 'rtsb__notice';
63 + if ( ! isset( $GLOBALS[ $global ] ) ) {
64 + $GLOBALS[ $global ] = $global;
68 65 $this->offer_notice();
69 66 }
70 67 }
71 68 }
@@ -160,14 +157,14 @@
160 157 <img alt="<?php echo esc_attr( $this->options['plugin_name'] ); ?>"
161 158 src="<?php echo esc_url( $this->options['image_url'] ); ?>"
162 159 width="100px"
163 160 height="100px"/>
164 - <h3><?php echo sprintf( '%s – %s', esc_html( $this->options['plugin_name'] ), esc_html( $this->options['notice_for'] ) ); ?></h3>
161 + <h3 style="display: flex; align-items: center;"><?php echo sprintf( '%s – %s', esc_html( $this->options['plugin_name'] ), wp_kses_post( $this->options['notice_for'] ) ); ?></h3>
165 162
166 163 <p class="notice-text">
167 164 <?php echo wp_kses_post( $this->options['notice_message'] ); ?>
168 165 </p>
169 - <p>
166 + <p style="display: flex; align-items: center;">
170 167 <a class="button button-primary"
171 168 href="<?php echo esc_url( $this->options['download_link'] ); ?>" target="_blank">Buy Now</a>
172 169 <a class="button button-dismiss" href="#">Dismiss</a>
173 170 </p>
@@ -173,9 +170,10 @@
173 170 </p>
174 171 </div>
175 172
176 173 <?php
177 - }
174 + },
175 + 9
178 176 );
179 177
180 178 add_action(
181 179 'admin_footer',