PluginProbe
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites / 3.3.3
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites v3.3.3
4.1.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 2.1.2 2.5.0 2.5.3 2.6.1 All 38 releases
← All changes | admin/notice-upgrade.php +31 -33 2.6.13.3.3 View file →
@@ -1,12 +1,8 @@
1 1 <?php
2 2 // Exit if accessed directly.
3 3 defined( 'ABSPATH' ) || exit;
4 4
5 -
6 -// Exit if accessed directly.
7 -defined('ABSPATH') || exit;
8 -
9 5 class Blockspare_Notice
10 6 {
11 7 public $name;
12 8 public $type;
@@ -31,9 +27,9 @@
31 27 $this->name = $name;
32 28 $this->type = $type;
33 29 $this->dismiss_url = $dismiss_url;
34 30 $this->temporary_dismiss_url = $temporary_dismiss_url;
35 - $this->pricing_url = 'https://www.blockspare.com/pricing/';
31 + $this->pricing_url = 'https://www.blockspare.com/';
36 32 $this->current_user_id = get_current_user_id();
37 33
38 34 // Notice markup.
39 35 add_action('admin_notices', array($this, 'notice'));
@@ -165,11 +161,12 @@
165 161
166 162 public function notice_markup() {
167 163 ?>
168 164 <div class="notice notice-success blockspare-notice" >
169 - <a class="blockspare-notice-dismiss notice-dismiss" href="<?php echo esc_url( $this->dismiss_url ); ?>"></a>
170 - <span class="blockspare-icon-display"></span>
171 -
165 + <div class="blockspare-notice__logo">
166 + <svg fill="url(#blockspare-gradient)" width="24" height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" class="blockspare-svg blockspare-svg-blockspare" aria-hidden="true" focusable="false"><g class="blockspare-logo"><g><path class="st0" d="M1.6,9.2v21.4l18.3-9.2L20.2,0L1.6,9.2z M16.9,19.8L4.9,26V10.9l12-6.1V19.8z"></path><polygon id="XMLID_3_" class="st1" points="19.9,21.4 16.9,23 26,27.7 13.8,33.8 4.9,29 1.6,30.7 13.9,36.9 32.4,27.7 "></polygon></g><g><polygon id="XMLID_2_" class="st0" points="23,1.5 23,19.8 32.4,24.6 32.4,9.4 35.3,10.9 35.3,29 38.4,30.7 38.4,9.2 29.4,4.8 29.2,19.7 26,18.4 26,3.1 "></polygon><polygon id="XMLID_1_" class="st1" points="17,38.4 19.9,40 38.4,30.7 35.3,29 "></polygon></g></g></svg>
167 + </div>
168 + <div class="blockspare-notice__content">
172 169 <?php
173 170 $current_user = wp_get_current_user();
174 171
175 172 printf(
@@ -174,42 +171,43 @@
174 171
175 172 printf(
176 173 /* Translators: %1$s current user display name., %2$s this plugin name., %3$s discount coupon code., %4$s discount percentage. */
177 174 esc_html__(
178 - '%1$s %7$s We would appreciate it if you can %4$sgive us a 5 star rating on WordPress.org%5$s! By spreading the love, we will continue to create thrilling new features for free in the future! %6$sYou may always upgrade to %3$s to gain access to premium templates, sections and blocks. Enjoy! %8$s',
175 + '%1$s %7$s We would appreciate it if you can %4$s rate us on WordPress.org%5$s! By spreading the love, we will continue to create thrilling new features for free in the future. Enjoy! %8$s',
179 176 'blockspare'
180 177 ),
181 - '<h2>Hello ' . esc_html( $current_user->display_name ) . ', you are awesome for using Blockspare!</h2>',
182 - '<p class="notice-text"><strong>Blockspare</strong>',
183 - '<strong><a target="_blank" href="https://www.blockspare.com/pricing/">Blockspare Pro</a></strong>',
178 + '<h2 class="blockspare-notice-title">Hello ' . esc_html( $current_user->display_name ) . ', you are awesome for using Blockspare Pro!</h2>',
179 + '<p><strong>Blockspare</strong>',
180 + '<strong><a target="_blank" href="https://www.blockspare.com/">Blockspare Pro</a></strong>',
184 181 '<strong><a href="https://wordpress.org/support/plugin/blockspare/reviews/?filter=5#new-post" target="_blank">',
185 182 '</a></strong>',
186 183 '<br>',
187 - '<p>',
184 + '<p class="blockspare-notice-description">',
188 185 '</p>',
189 186 );
187 +
190 188 ?>
191 - </p>
192 -
193 - <div class="links">
194 - <a href="https://wordpress.org/support/plugin/blockspare/reviews/?filter=5#new-post" class="button button-primary" target="_blank">
195 - <span><?php esc_html_e( 'Sure thing', 'blockspare' ); ?></span>
196 - </a>
197 -
198 - <a href="<?php echo esc_url( $this->pricing_url ); ?>" class="button button-secondary" target="_blank">
199 - <span><?php esc_html_e( 'Upgrade', 'blockspare' ); ?></span>
200 - </a>
201 -
202 - <a href="<?php echo esc_url( $this->temporary_dismiss_url ); ?>" class="button button-secondary plain">
203 -
204 - <span><?php esc_html_e( 'Maybe later', 'blockspare' ); ?></span>
205 - </a>
206 -
207 - <a href="https://afthemes.com/supports/" class="button button-secondary plain" target="_blank">
208 -
209 - <span><?php esc_html_e( 'Need help?', 'blockspare' ); ?></span>
210 - </a>
189 + <div class="links">
190 + <a href="https://wordpress.org/support/plugin/blockspare/reviews/?filter=5#new-post" class="button button-primary" target="_blank">
191 + <span><?php esc_html_e( 'Sure thing', 'blockspare' ); ?></span>
192 + </a>
193 + <a href="<?php echo esc_url( $this->pricing_url ); ?>" class="button button-secondary" target="_blank">
194 + <span><?php esc_html_e( 'Unlock All Features', 'blockspare' ); ?></span>
195 + </a>
196 +
197 + <a href="<?php echo esc_url( $this->temporary_dismiss_url ); ?>" class="button button-secondary plain">
198 + <span><?php esc_html_e( 'Maybe later', 'blockspare' ); ?></span>
199 + </a>
200 +
201 + <a href="https://afthemes.com/supports/" class="button button-secondary plain" target="_blank">
202 + <span><?php esc_html_e( 'Need help?', 'blockspare' ); ?></span>
203 + </a>
204 + </div>
211 205 </div>
206 + <div class="bs-notice-image">
207 + <img src='<?php echo BLOCKSPARE_PLUGIN_URL ."admin/assets/images/review.webp";?>'/>
208 + </div>
209 + <a class="blockspare-notice-dismiss notice-dismiss" href="<?php echo esc_url( $this->dismiss_url ); ?>"></a>
212 210 </div> <!-- /blockspare-notice -->
213 211 <?php
214 212 }
215 213 }