-
Notifications
You must be signed in to change notification settings - Fork 1
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 #35 from pluginever/release/1.1.1
Release/1.1.1
- Loading branch information
Showing
11 changed files
with
399 additions
and
32 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,86 @@ | ||
.notice.notice-halloween { | ||
position: relative; | ||
background-image: url('../images/halloween-banner.svg'); | ||
background-position: center; | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
border: 1px solid #5900a8; | ||
border-left-width: 4px; | ||
.notice-content { | ||
max-width: 75%; | ||
color: #ffffff; | ||
h3 { | ||
color: #ffffff; | ||
font-size: 1.6rem; | ||
line-height: 1.3; | ||
} | ||
p { | ||
font-size: .9rem; | ||
line-height: 1.6; | ||
} | ||
} | ||
.notice-footer { | ||
justify-content: space-between; | ||
border-top: 1px solid #5900a8; | ||
.footer-btn { | ||
display: flex; | ||
gap: 20px; | ||
} | ||
.halloween-upgrade-btn { | ||
background-color: #ffffff; | ||
padding: 5px 12px; | ||
color: #4203A0; | ||
border-radius: 3px; | ||
&:hover{ | ||
background-color: #D6CDE4; | ||
} | ||
} | ||
.halloween-remind-btn { | ||
background-color: #FFFFFF52; | ||
padding: 5px 12px; | ||
color: #FFFFFF; | ||
border-radius: 3px; | ||
&:hover{ | ||
background-color: #FFFFFF66; | ||
} | ||
} | ||
.halloween-remove-btn { | ||
color: #ffffff; | ||
&:hover{ | ||
color: #D6CDE4; | ||
} | ||
} | ||
.halloween-dismiss-btn{ | ||
position: absolute; | ||
top: 20px; | ||
right: 30px; | ||
color: #FFFFFF; | ||
&:hover { | ||
color: #D6CDE4; | ||
} | ||
} | ||
.halloween-footer-text { | ||
float: right; | ||
color: #ffffff; | ||
} | ||
} | ||
@media screen and (max-width: 500px ) { | ||
background-position:right; | ||
.notice-body { | ||
align-items: flex-start; | ||
padding-top: 36px; | ||
} | ||
.notice-footer { | ||
flex-direction: column; | ||
.footer-btn { | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 10px; | ||
} | ||
.halloween-dismiss-btn { | ||
top: 8px; | ||
right: 20px; | ||
} | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,56 @@ | ||
<?php | ||
/** | ||
* Admin Halloween notice. | ||
* | ||
* @since 1.1.1 | ||
* @return void | ||
* | ||
* @package WooCommerceVariationImages\Admin\Notices | ||
*/ | ||
|
||
defined( 'ABSPATH' ) || exit; | ||
|
||
?> | ||
<div class="notice-body"> | ||
<div class="notice-icon"> | ||
<img src="<?php echo esc_url( wc_variation_images()->get_assets_url( 'images/halloween-icon.svg' ) ); ?>" alt="WC Variation images"> | ||
</div> | ||
<div class="notice-content"> | ||
<h3> | ||
<?php esc_html_e( 'Limited Time Offer! PluginEver Halloween Sale: 30% OFF!!', 'wc-variation-images' ); ?> | ||
</h3> | ||
<p> | ||
<?php | ||
echo wp_kses_post( | ||
sprintf( | ||
// translators: 1.Offer Percentage, 2. Coupon Code. | ||
__( 'Spectacular Halloween Deal! Get %1$s on all premium plugins with code %2$s. Don\'t miss out — this offer vanishes soon! 👻', 'wc-variation-images' ), | ||
'<strong>' . esc_attr( '30% OFF' ) . '</strong>', | ||
'<strong>' . esc_attr( 'BIGTREAT30' ) . '</strong>' | ||
) | ||
); | ||
?> | ||
</p> | ||
</div> | ||
</div> | ||
<div class="notice-footer"> | ||
<div class="footer-btn"> | ||
<a href="<?php echo esc_url( wc_variation_images()->plugin_uri . '?utm_source=plugin&utm_medium=notice&utm_campaign=halloween-2024&discount=bigtreat30' ); ?>" class="primary halloween-upgrade-btn" target="_blank"> | ||
<span class="dashicons dashicons-cart"></span> | ||
<?php esc_html_e( 'Claim your discount!!', 'wc-variation-images' ); ?> | ||
</a> | ||
<a href="#" class="halloween-remind-btn" data-snooze="<?php echo esc_attr( WEEK_IN_SECONDS ); ?>"> | ||
<span class="dashicons dashicons-clock"></span> | ||
<?php esc_html_e( 'Remind me later', 'wc-variation-images' ); ?> | ||
</a> | ||
<a href="#" class="primary halloween-remove-btn" data-dismiss> | ||
<span class="dashicons dashicons-remove"></span> | ||
<?php esc_html_e( 'Never show this again!', 'wc-variation-images' ); ?> | ||
</a> | ||
<a href="#" class="primary halloween-dismiss-btn" data-dismiss> | ||
<span class="dashicons dashicons-dismiss"></span> | ||
<?php esc_html_e( 'DISMISS', 'wc-variation-images' ); ?> | ||
</a> | ||
</div> | ||
<strong class="halloween-footer-text"><?php esc_html_e( 'Valid until November 10, 2024', 'wc-variation-images' ); ?></strong> | ||
</div> |
Oops, something went wrong.