-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #187 from pluginever/fix/184
Include the Black Friday deals notice
- Loading branch information
Showing
6 changed files
with
162 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
.notice.notice-black-friday { | ||
position: relative; | ||
.notice-content { | ||
width: 85%; | ||
h3{ | ||
font-size: 1.5rem; | ||
} | ||
} | ||
.notice-footer { | ||
justify-content: space-between; | ||
.footer-btn { | ||
display: flex; | ||
gap: 20px; | ||
} | ||
.black-friday-dismiss-btn{ | ||
position: absolute; | ||
top: 12px; | ||
right: 12px; | ||
background-color: transparent; | ||
border-color: transparent; | ||
color: #64748B; | ||
&:hover { | ||
color: #000; | ||
} | ||
} | ||
.black-friday-footer-text { | ||
float: right; | ||
color: #8c8f94; | ||
} | ||
} | ||
@media screen and (max-width: 500px ) { | ||
.notice-body { | ||
align-items: flex-start; | ||
h3{ | ||
font-size: 18px; | ||
} | ||
} | ||
.notice-footer { | ||
flex-direction: column; | ||
.footer-btn { | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 10px; | ||
} | ||
.black-friday-dismiss-btn { | ||
top: -6px; | ||
right: 3px; | ||
z-index: 1; | ||
padding: 0; | ||
color: red; | ||
} | ||
.btn-text{ | ||
display: none; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import "halloween.scss"; | ||
@import "black-friday.scss"; | ||
.bk-card { | ||
&.promo-panel{ | ||
background: #2563eb; | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
/** | ||
* Admin notice: Black Friday offer. | ||
* | ||
* @package WooCommerceMinMaxQuantities | ||
* @since 2.0.3 | ||
* @return void | ||
*/ | ||
|
||
defined( 'ABSPATH' ) || exit; // Exit if accessed directly. | ||
|
||
?> | ||
<div class="notice-body"> | ||
<div class="notice-icon"> | ||
<img src="<?php echo esc_url( wc_min_max_quantities()->get_assets_url( 'images/black-friday-icon.svg' ) ); ?>" alt="WooCommerce Min-Max Quantities Black Friday Offer"> | ||
</div> | ||
<div class="notice-content"> | ||
<h3> | ||
<?php esc_html_e( 'Black Friday & Cyber Monday: Flat 40% OFF All Premium Plugins!', 'wc-min-max-quantities' ); ?> | ||
</h3> | ||
<p> | ||
<?php | ||
echo wp_kses_post( | ||
sprintf( | ||
// translators: 1.Offer Percentage, 2. Coupon Code. | ||
__( 'Boost your WooCommerce store this Black Friday! Get %1$s on all premium plugins with code %2$s. Don’t miss this limited-time deal!', 'wc-min-max-quantities' ), | ||
'<strong>' . esc_attr( '40% OFF' ) . '</strong>', | ||
'<strong>' . esc_attr( 'FLASH40' ) . '</strong>' | ||
) | ||
); | ||
?> | ||
</p> | ||
</div> | ||
</div> | ||
<div class="notice-footer"> | ||
<div class="footer-btn"> | ||
<a href="<?php echo esc_url( wc_min_max_quantities()->plugin_uri . '?utm_source=plugin&utm_medium=notice&utm_campaign=black-friday-2024&discount=FLASH40' ); ?>" class="button button-primary black-friday-upgrade-btn" target="_blank"> | ||
<span class="dashicons dashicons-cart"></span> | ||
<?php esc_html_e( 'Claim your 40% discount!!', 'wc-min-max-quantities' ); ?> | ||
</a> | ||
<a href="#" data-snooze="<?php echo esc_attr( WEEK_IN_SECONDS ); ?>"> | ||
<span class="dashicons dashicons-clock"></span> | ||
<?php esc_html_e( 'Remind me later', 'wc-min-max-quantities' ); ?> | ||
</a> | ||
<a href="#" class="button black-friday-dismiss-btn" data-dismiss> | ||
<span class="dashicons dashicons-dismiss"></span> | ||
<span class="btn-text"><?php esc_html_e( 'DISMISS', 'wc-min-max-quantities' ); ?></span> | ||
</a> | ||
</div> | ||
<span class="black-friday-footer-text"><?php esc_html_e( 'Valid until November 7, 2024', 'wc-min-max-quantities' ); ?></span> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters