PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.4.0
ShopBuilder – WooCommerce Builder For Elementor v2.4.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 +10 -18 3.4.12.4.0 View file →
@@ -55,14 +55,17 @@
55 55 $current = time();
56 56 $start = strtotime( $this->options['start_date'] );
57 57 $end = strtotime( $this->options['end_date'] );
58 58
59 - $global = $this->options['global_check'] ?? 'rtsb__notice';
59 + if ( $this->options['global_check'] ) {
60 + return;
61 + }
62 +
60 63 // Black Friday Notice.
61 - if ( $start <= $current && $current <= $end ) {
64 + if ( ! rtsb()->has_pro() && $start <= $current && $current <= $end ) {
62 65 if ( get_option( $this->options['option_name'] ) != '1' ) {
63 - if ( ! isset( $GLOBALS[ $global ] ) ) {
64 - $GLOBALS[ $global ] = $global;
66 + if ( ! isset( $GLOBALS['rtsb__notice'] ) ) {
67 + $GLOBALS['rtsb__notice'] = 'rtsb__notice';
65 68 $this->offer_notice();
66 69 }
67 70 }
68 71 }
@@ -149,18 +152,8 @@
149 152 background: 0 0;
150 153 color: var(--e-button-context-color);
151 154 background: #fff;
152 155 }
153 -
154 - .rtsb-offer-notice .offer-footer {
155 - padding-top: 10px;
156 - }
157 -
158 - .rtsb-offer-notice .notice-text b {
159 - display: inline-block;
160 - transform: skewX(-10deg);
161 - line-height: 1;
162 - }
163 156 </style>
164 157
165 158 <div class="rtsb-offer-notice notice notice-info is-dismissible"
166 159 data-rtsbdismissable="rtsb_offer">
@@ -167,14 +160,14 @@
167 160 <img alt="<?php echo esc_attr( $this->options['plugin_name'] ); ?>"
168 161 src="<?php echo esc_url( $this->options['image_url'] ); ?>"
169 162 width="100px"
170 163 height="100px"/>
171 - <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>
164 + <h3><?php echo sprintf( '%s – %s', esc_html( $this->options['plugin_name'] ), esc_html( $this->options['notice_for'] ) ); ?></h3>
172 165
173 166 <p class="notice-text">
174 167 <?php echo wp_kses_post( $this->options['notice_message'] ); ?>
175 168 </p>
176 - <p class="offer-footer" style="display: flex; align-items: center;">
169 + <p>
177 170 <a class="button button-primary"
178 171 href="<?php echo esc_url( $this->options['download_link'] ); ?>" target="_blank">Buy Now</a>
179 172 <a class="button button-dismiss" href="#">Dismiss</a>
180 173 </p>
@@ -180,10 +173,9 @@
180 173 </p>
181 174 </div>
182 175
183 176 <?php
184 - },
185 - 9
177 + }
186 178 );
187 179
188 180 add_action(
189 181 'admin_footer',