PluginProbe
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO / 1.4.14
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO v1.4.14
1.4.14 1.4.13 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 1.4.6 1.4.5 1.4.4 1.4.3 1.4.2 1.4.1 1.4.0 1.3.54 1.3.53 1.3.52 1.3.51 1.3.50 1.3.49 1.3.48 1.3.47 1.3.46 1.3.45 All 177 releases
disco / notice / FeatureUnlockNotice.php

FeatureUnlockNotice.php in Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO 1.4.14, at notice/FeatureUnlockNotice.php

78 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace disco\notice;
4
5 use Disco\App\Disco;
6
7 class FeatureUnlockNotice {
8 public function __construct() {
9 // add_action( 'admin_notices', [ $this, 'display_feature_unlock_notice' ] );
10 }
11
12 /**
13 * Display the feature unlock plugin notice.
14 *
15 * @return void
16 */
17 public function display_feature_unlock_notice() {
18 $admin_page = get_current_screen();
19
20 if( Disco::is_pro() ) {
21 return;
22 }
23
24 $promotion_list = [
25 'Increase conversions',
26 'Boost visibility',
27 'Drive more sales',
28 'Promote Smarter',
29 'Grow Faster',
30 ];
31
32 $user_id = get_current_user_id();
33 $dismiss = get_user_meta( $user_id, 'disco_feature_unlock_notice_dismissed', true );
34
35 if ( $dismiss === 'never' ) {
36 return;
37 }
38
39 ?>
40
41 <div class="disco-feature-unlock-notice-wrapper">
42 <div class="notice notice-info is-dismissible disco-feature-unlock-notice">
43 <img class="disco-notice-icon" src="<?php echo esc_url( plugins_url( 'assets/img/disco-notice-icon.svg', DISCO_PLUGIN_ABSOLUTE ) ); ?>" alt="Disco Logo">
44 <div class="disco-feature-unlock-wrapper">
45 <h1 class="disco-feature-unlock-notice-title">
46 Turn More <span class="disco-plugin-special-text">Visitors into Buyers!</span>
47 </h1>
48 <div class="disco-feature-unlock-message">Don’t let your discounts hidden - Turn visitors into customers by showcasing your best offers with <span class="disco-plugin-special-text">Campaign Display</span></div>
49 <div class="disco-feature-unlock-items-wrapper">
50 <?php
51 foreach ( $promotion_list as $item ) {
52 ?>
53 <span class="disco-feature-unlock-name-item">
54 <img class="disco-compatible-check-icon" src="<?php echo esc_url( plugins_url( 'assets/img/compatible-notice-icon.svg', DISCO_PLUGIN_ABSOLUTE ) ); ?>" alt="Check Icon">
55 <?php echo esc_html( $item ); ?>
56 </span>
57 <?php
58 }
59 ?>
60 </div>
61 <div class="disco-feature-unlock-buttons">
62 <a href="https://discoplugin.com/pricing/?utm_source=wp-notify-display&utm_medium=free-to-pro&utm_campaign=from-display-notification&utm_id=1" target="_blank" class="disco-compatible-button disco-notice-primary-button">
63 <img class="disco-feature-unlock-icon" src="<?php echo esc_url( plugins_url( 'assets/img/disco-pro-crown-icon.svg', DISCO_PLUGIN_ABSOLUTE ) ); ?>" alt="Disco Logo">
64 Get Disco Pro
65 </a>
66 <a href="https://discoplugin.com/docs-category/display/" target="_blank" class="disco-notice-secondary-button disco-compatible-button">
67 Learn More
68 <img class="disco-feature-unlock-icon" src="<?php echo esc_url( plugins_url( 'assets/img/disco-learn-more-icon.svg', DISCO_PLUGIN_ABSOLUTE ) ); ?>" alt="Disco learn More Icon">
69 </a>
70 </div>
71 </div>
72 </div>
73 </div>
74
75 <?php
76 }
77 }
78