PluginProbe
Tiered Pricing Table for WooCommerce / 8.0.2
Tiered Pricing Table for WooCommerce v8.0.2
8.0.2 7.1.7 7.1.5 7.1.4 7.1.1 6.5.0 6.4.0 6.1.0 trunk 1.0 1.1 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0 2.3.1 2.3.2 2.3.3 All 91 releases
tier-pricing-table / views / admin / notifications / black-friday.php

black-friday.php in Tiered Pricing Table for WooCommerce 8.0.2, at views/admin/notifications/black-friday.php

392 lines 9.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php defined( 'WPINC' ) || die;
2
3 use TierPricingTable\Admin\Notifications\Notifications\TwoMonthsUsingDiscount;
4 use TierPricingTable\Core\ServiceContainer;
5 use TierPricingTable\TierPricingTablePlugin;
6
7 $fileManager = ServiceContainer::getInstance()->getFileManager();
8
9 /**
10 * Available variables
11 *
12 * @var TwoMonthsUsingDiscount $notification
13 */
14
15 // Updated, more marketing-friendly feature names
16 $premiumFeatures = array(
17 'Dynamic, Role-Based Pricing Rules',
18 'Percentage-Based Bulk Discounts',
19 'Smart In-Cart Upsells',
20 'Customizable Pricing Table Columns',
21 'Interactive, Clickable Tables',
22 'Set Min/Max Order Quantities',
23 'Instant Price Totals',
24 'Hide Prices for Guest Users',
25 'Show "As Low As" Price in Lists',
26 );
27
28 $upgradeUrl = add_query_arg( array(
29 'coupon' => 'BF25OFF',
30 ), tpt_fs_activation_url() );
31
32 ?>
33
34 <style>
35 /* Scope everything to avoid conflicts */
36 .tpt-bf-light-banner {
37 box-sizing: border-box;
38 /* Updated background: White to very light primary color gradient */
39 background: linear-gradient(135deg, #ffffff 0%, #fdf2f8 100%);
40 border: 1px solid #dcdcde;
41 border-left: 5px solid #96598a; /* Primary color */
42 border-radius: 8px;
43 color: #3c434a;
44 margin: 20px 0 15px;
45 padding: 0;
46 position: relative;
47 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
48 overflow: hidden;
49 box-shadow: 0 4px 10px rgba(0,0,0,0.05);
50 }
51
52 /* Close button */
53 .tpt-bf-light-banner__close {
54 position: absolute;
55 top: 10px;
56 right: 15px;
57 color: #a7aaad;
58 text-decoration: none;
59 font-size: 20px;
60 line-height: 1;
61 transition: color 0.2s;
62 z-index: 10;
63 }
64 .tpt-bf-light-banner__close:hover {
65 color: #3c434a;
66 }
67
68 .tpt-bf-light-banner__inner {
69 display: flex;
70 flex-wrap: wrap;
71 padding: 20px;
72 gap: 30px;
73 }
74
75 /* Left Side: Call to Action */
76 .tpt-bf-light-banner__cta-column {
77 flex: 1;
78 min-width: 300px;
79 display: flex;
80 flex-direction: column;
81 justify-content: center;
82 }
83
84 /* Plugin Name Badge Style */
85 .tpt-bf-light-banner__plugin-badge {
86 display: inline-flex;
87 align-items: center;
88 gap: 6px;
89 background-color: #fdf2f8; /* Very light primary bg */
90 color: #96598a;
91 font-size: 11px;
92 font-weight: 700;
93 text-transform: uppercase;
94 letter-spacing: 0.5px;
95 padding: 5px 12px;
96 border-radius: 20px;
97 margin-bottom: 10px;
98 border: 1px solid rgba(150, 89, 138, 0.2);
99 box-shadow: 0 2px 4px rgba(150, 89, 138, 0.05);
100 }
101
102 .tpt-bf-light-banner__plugin-badge::before {
103 content: '';
104 display: block;
105 width: 6px;
106 height: 6px;
107 background-color: #96598a;
108 border-radius: 50%;
109 }
110
111 .tpt-bf-light-banner__headline {
112 font-size: 1.4em;
113 font-weight: 600;
114 margin-bottom: 15px;
115 line-height: 1.3;
116 }
117
118 .tpt-bf-light-banner__highlight {
119 color: #96598a; /* Primary color */
120 font-weight: 700;
121 display: inline-block;
122 animation: tpt-pulse 2s infinite;
123 }
124
125 .tpt-bf-light-banner__subtext {
126 font-size: 15px;
127 margin-top: 0;
128 margin-bottom: 25px;
129 color: #646970;
130 line-height: 1.5;
131 }
132
133 .tpt-bf-light-banner__coupon-box {
134 background-color: #fff;
135 border: 2px dashed #96598a;
136 padding: 12px 24px;
137 border-radius: 8px;
138 display: inline-flex;
139 align-items: center;
140 gap: 15px;
141 margin-bottom: 25px;
142 box-shadow: 0 4px 10px rgba(150, 89, 138, 0.1);
143 }
144
145 .tpt-bf-light-banner__code-label {
146 font-weight: 600;
147 color: #646970;
148 font-size: 14px;
149 }
150
151 .tpt-bf-light-banner__code {
152 font-family: monospace;
153 font-size: 1.4em;
154 font-weight: 700;
155 color: #96598a;
156 letter-spacing: 1px;
157 background-color: #fdf2f8;
158 padding: 6px 12px;
159 border-radius: 6px;
160 }
161
162 .tpt-bf-light-banner__actions {
163 display: flex;
164 align-items: center;
165 gap: 20px;
166 }
167
168 /* Animated Button */
169 .tpt-bf-light-button {
170 background: linear-gradient(to right, #96598a, #b06ba3);
171 color: white !important;
172 text-decoration: none;
173 padding: 12px 30px;
174 border-radius: 50px;
175 font-weight: 600;
176 font-size: 15px;
177 border: none;
178 cursor: pointer;
179 position: relative;
180 overflow: hidden;
181 transition: transform 0.2s, box-shadow 0.2s;
182 display: inline-flex;
183 align-items: center;
184 gap: 8px;
185 box-shadow: 0 4px 6px rgba(150, 89, 138, 0.2);
186 }
187
188 .tpt-bf-light-button:hover {
189 transform: translateY(-2px);
190 box-shadow: 0 6px 12px rgba(150, 89, 138, 0.3);
191 color: white !important;
192 }
193
194 /* Button Shimmer Animation */
195 .tpt-bf-light-button::after {
196 content: '';
197 position: absolute;
198 top: 0;
199 left: -100%;
200 width: 100%;
201 height: 100%;
202 background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
203 animation: tpt-shimmer 3s infinite;
204 }
205
206 .tpt-bf-light-banner__dismiss {
207 font-size: 13px;
208 color: #646970;
209 text-decoration: underline;
210 cursor: pointer;
211 }
212 .tpt-bf-light-banner__dismiss:hover {
213 color: #3c434a;
214 }
215
216 /* Right Side: Features List */
217 .tpt-bf-light-banner__features-column {
218 flex: 1.2;
219 min-width: 320px;
220 border-left: 1px solid rgba(0,0,0,0.05);
221 padding-left: 30px;
222 display: flex;
223 flex-direction: column;
224 justify-content: center;
225 background: rgba(255,255,255,0.4);
226 }
227
228 .tpt-bf-light-banner__features-title {
229 font-weight: 700;
230 font-size: 14px;
231 text-transform: uppercase;
232 letter-spacing: 0.5px;
233 margin-bottom: 15px;
234 color: #96598a;
235 opacity: 0.9;
236 }
237
238 .tpt-bf-light-banner__features-list {
239 list-style: none;
240 padding: 0;
241 margin: 0;
242 display: grid;
243 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
244 gap: 10px;
245 }
246
247 /* Modern Card Design for Features */
248 .tpt-bf-light-feature {
249 font-size: 13px;
250 font-weight: 500;
251 display: flex;
252 align-items: center;
253 gap: 10px;
254 color: #3c434a;
255 background: #fff;
256 padding: 10px 12px;
257 border-radius: 8px;
258 border: 1px solid rgba(0,0,0,0.05);
259 box-shadow: 0 2px 4px rgba(0,0,0,0.02);
260 transition: all 0.2s ease;
261 }
262
263 .tpt-bf-light-feature:hover {
264 transform: translateY(-2px);
265 box-shadow: 0 4px 12px rgba(150, 89, 138, 0.15);
266 border-color: rgba(150, 89, 138, 0.2);
267 color: #96598a;
268 }
269
270 .tpt-bf-light-feature i {
271 display: inline-flex;
272 align-items: center;
273 justify-content: center;
274 width: 20px;
275 height: 20px;
276 background-color: #eafaf1; /* Light green bg */
277 color: #2ed573; /* Green check */
278 border-radius: 50%;
279 font-style: normal;
280 font-size: 10px;
281 flex-shrink: 0;
282 }
283
284 /* Animations */
285 @keyframes tpt-pulse {
286 0% { transform: scale(1); }
287 50% { transform: scale(1.05); }
288 100% { transform: scale(1); }
289 }
290
291 @keyframes tpt-shimmer {
292 0% { left: -100%; }
293 20% { left: 100%; }
294 100% { left: 100%; }
295 }
296
297 /* Mobile Responsiveness */
298 @media screen and (max-width: 960px) {
299 .tpt-bf-light-banner__inner {
300 flex-direction: column;
301 gap: 25px;
302 padding: 25px;
303 }
304 .tpt-bf-light-banner__features-column {
305 border-left: none;
306 padding-left: 0;
307 border-top: 1px solid #dcdcde;
308 padding-top: 25px;
309 }
310 }
311
312 @media screen and (max-width: 600px) {
313 .tpt-bf-light-banner__coupon-box {
314 width: 100%;
315 justify-content: center;
316 box-sizing: border-box;
317 }
318 .tpt-bf-light-banner__actions {
319 flex-direction: column;
320 align-items: stretch;
321 gap: 15px;
322 }
323 .tpt-bf-light-button {
324 justify-content: center;
325 width: 100%;
326 box-sizing: border-box;
327 }
328 .tpt-bf-light-banner__dismiss {
329 text-align: center;
330 display: block;
331 }
332 .tpt-bf-light-banner__features-list {
333 grid-template-columns: 1fr;
334 }
335 }
336 </style>
337
338 <div class="tpt-bf-light-banner notice">
339 <a href="<?php echo esc_attr( $notification->getCloseURL() ); ?>" class="tpt-bf-light-banner__close" title="Dismiss">&times;</a>
340
341 <div class="tpt-bf-light-banner__inner">
342
343 <!-- Left Column: CTA -->
344 <div class="tpt-bf-light-banner__cta-column">
345 <div class="tpt-bf-light-banner__headline">
346 <span class="tpt-bf-light-banner__plugin-badge">
347 Tiered Pricing Table for WooCommerce
348 </span>
349 <br>
350 🎉 Boost Your Sales this Black Friday!
351 <br>
352 <span class="tpt-bf-light-banner__highlight">Save 25% on Premium</span>
353 </div>
354
355 <p class="tpt-bf-light-banner__subtext">
356 Unlock powerful features to maximize revenue and offer dynamic pricing to your customers.
357 </p>
358
359 <div>
360 <div class="tpt-bf-light-banner__coupon-box">
361 <span class="tpt-bf-light-banner__code-label">Use Code:</span>
362 <span class="tpt-bf-light-banner__code">BF25OFF</span>
363 </div>
364 </div>
365
366 <div class="tpt-bf-light-banner__actions">
367 <a href="<?php echo esc_attr( $upgradeUrl ); ?>" class="tpt-bf-light-button">
368 Get the Offer & Grow 🚀
369 </a>
370 <a href="<?php echo esc_attr( $notification->getCloseURL() ); ?>" class="tpt-bf-light-banner__dismiss">
371 No thanks, I'll miss out on this one
372 </a>
373 </div>
374 </div>
375
376 <!-- Right Column: Features -->
377 <div class="tpt-bf-light-banner__features-column">
378 <div class="tpt-bf-light-banner__features-title">What's Included in Premium:</div>
379 <ul class="tpt-bf-light-banner__features-list">
380 <?php foreach ( $premiumFeatures as $feature ) : ?>
381 <li class="tpt-bf-light-feature">
382 <i>✔</i> <?php echo esc_html( $feature ); ?>
383 </li>
384 <?php endforeach; ?>
385 </ul>
386 <div style="margin-top: 15px; font-size: 13px; color: #646970;">
387 Have questions? <a href="<?php echo esc_attr( TierPricingTablePlugin::getContactUsURL() ); ?>" target="_blank" style="color: #96598a; text-decoration: underline;">Contact our team</a>.
388 </div>
389 </div>
390
391 </div>
392 </div>