| @@ -165,51 +165,56 @@ | ||
| 165 | 165 | |
| 166 | 166 | public function notice_markup() { |
| 167 | 167 | ?> |
| 168 | 168 | <div class="notice notice-success blockspare-notice" > |
| 169 | + <div class="blockspare-notice__logo"> | |
| 170 | + <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> | |
| 171 | + </div> | |
| 172 | + <div class="blockspare-notice__content"> | |
| 173 | + <span class="blockspare-icon-display"></span> | |
| 174 | + | |
| 175 | + <?php | |
| 176 | + $current_user = wp_get_current_user(); | |
| 177 | + | |
| 178 | + printf( | |
| 179 | + /* Translators: %1$s current user display name., %2$s this plugin name., %3$s discount coupon code., %4$s discount percentage. */ | |
| 180 | + esc_html__( | |
| 181 | + '%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', | |
| 182 | + 'blockspare' | |
| 183 | + ), | |
| 184 | + '<h2>Hello ' . esc_html( $current_user->display_name ) . ', you are awesome for using Blockspare!</h2>', | |
| 185 | + '<p class="notice-text"><strong>Blockspare</strong>', | |
| 186 | + '<strong><a target="_blank" href="https://www.blockspare.com/pricing/">Blockspare Pro</a></strong>', | |
| 187 | + '<strong><a href="https://wordpress.org/support/plugin/blockspare/reviews/?filter=5#new-post" target="_blank">', | |
| 188 | + '</a></strong>', | |
| 189 | + '<br>', | |
| 190 | + '<p>', | |
| 191 | + '</p>', | |
| 192 | + ); | |
| 193 | + ?> | |
| 194 | + </p> | |
| 195 | + | |
| 196 | + <div class="links"> | |
| 197 | + <a href="https://wordpress.org/support/plugin/blockspare/reviews/?filter=5#new-post" class="button button-primary" target="_blank"> | |
| 198 | + <span><?php esc_html_e( 'Sure thing', 'blockspare' ); ?></span> | |
| 199 | + </a> | |
| 200 | + | |
| 201 | + <a href="<?php echo esc_url( $this->pricing_url ); ?>" class="button button-secondary" target="_blank"> | |
| 202 | + <span><?php esc_html_e( 'Upgrade', 'blockspare' ); ?></span> | |
| 203 | + </a> | |
| 204 | + | |
| 205 | + <a href="<?php echo esc_url( $this->temporary_dismiss_url ); ?>" class="button button-secondary plain"> | |
| 206 | + | |
| 207 | + <span><?php esc_html_e( 'Maybe later', 'blockspare' ); ?></span> | |
| 208 | + </a> | |
| 209 | + | |
| 210 | + <a href="https://afthemes.com/supports/" class="button button-secondary plain" target="_blank"> | |
| 211 | + | |
| 212 | + <span><?php esc_html_e( 'Need help?', 'blockspare' ); ?></span> | |
| 213 | + </a> | |
| 214 | + </div> | |
| 215 | + </div> | |
| 169 | 216 | <a class="blockspare-notice-dismiss notice-dismiss" href="<?php echo esc_url( $this->dismiss_url ); ?>"></a> |
| 170 | - <span class="blockspare-icon-display"></span> | |
| 171 | - | |
| 172 | - <?php | |
| 173 | - $current_user = wp_get_current_user(); | |
| 174 | - | |
| 175 | - printf( | |
| 176 | - /* Translators: %1$s current user display name., %2$s this plugin name., %3$s discount coupon code., %4$s discount percentage. */ | |
| 177 | - 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', | |
| 179 | - 'blockspare' | |
| 180 | - ), | |
| 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>', | |
| 184 | - '<strong><a href="https://wordpress.org/support/plugin/blockspare/reviews/?filter=5#new-post" target="_blank">', | |
| 185 | - '</a></strong>', | |
| 186 | - '<br>', | |
| 187 | - '<p>', | |
| 188 | - '</p>', | |
| 189 | - ); | |
| 190 | - ?> | |
| 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> | |
| 211 | - </div> | |
| 212 | 217 | </div> <!-- /blockspare-notice --> |
| 213 | 218 | <?php |
| 214 | 219 | } |
| 215 | 220 | } |