Skip to content

Commit

Permalink
Merge branch 'black_friday_2024' into shakib-latest-master
Browse files Browse the repository at this point in the history
  • Loading branch information
shuvo7670 committed Nov 13, 2024
2 parents e807318 + ddb14a4 commit d8a4b26
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions assets/css/wpscp-admin-notice.css
Original file line number Diff line number Diff line change
Expand Up @@ -223,29 +223,29 @@ a.wpsp-notice-cta {


/*
* Halloween Notice css
* Black Friday Notice css
*/
#wpnotice-schedulepress-wpsp_halloween_2024 {
#wpnotice-schedulepress-wpsp_black_friday_2024 {
border-left-color: #593dbd;
padding: 10px 40px 10px 20px;
}
#wpnotice-schedulepress-wpsp_halloween_2024 .wpnotice-content-wrapper > a.button-primary,
#wpnotice-schedulepress-wpsp_halloween_2024 .wpnotice-content-wrapper > a.button-primary:focus,
#wpnotice-schedulepress-wpsp_halloween_2024 .wpnotice-content-wrapper > a.button-primary:hover {
#wpnotice-schedulepress-wpsp_black_friday_2024 .wpnotice-content-wrapper > a.button-primary,
#wpnotice-schedulepress-wpsp_black_friday_2024 .wpnotice-content-wrapper > a.button-primary:focus,
#wpnotice-schedulepress-wpsp_black_friday_2024 .wpnotice-content-wrapper > a.button-primary:hover {
background-color: #593dbd;
border-color: #593dbd;
}
#wpnotice-schedulepress-wpsp_halloween_2024 .wpnotice-content-wrapper {
#wpnotice-schedulepress-wpsp_black_friday_2024 .wpnotice-content-wrapper {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
}
#wpnotice-schedulepress-wpsp_halloween_2024 .wpnotice-content-wrapper p{
#wpnotice-schedulepress-wpsp_black_friday_2024 .wpnotice-content-wrapper p{
font-size: 15px;
}
@media screen and (max-width: 574px) {
#wpnotice-schedulepress-wpsp_halloween_2024 {
#wpnotice-schedulepress-wpsp_black_friday_2024 {
display: none !important;
}
}
12 changes: 6 additions & 6 deletions includes/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,23 +238,23 @@ public function admin_notice()
// ]
// );
$crown = WPSP_ASSETS_URI . '/images/crown.svg';
// Halloween 2024
$notice_text = "<p>🎃 Grab <strong>25% OFF</strong> on SchedulePress PRO & unlock advanced content scheduling features this Halloween.</p><a style='display: inline-flex;column-gap:5px;' class='button button-primary' href='https://schedulepress.com/halloween-2024' target='_blank'><img style='width:15px;' src='{$crown}'/>Upgrade to pro</a>";
// Back Friday 2024
$notice_text = "<p>🏷️ Grab <strong>up to 35% OFF</strong> on SchedulePress PRO & unlock advanced content scheduling features this Black Friday.</p><a style='display: inline-flex;column-gap:5px;' class='button button-primary' href='https://schedulepress.com/#pricing' target='_blank'><img style='width:15px;' src='{$crown}'/>Upgrade to pro</a>";

$_halloween_2024 = [
$_black_friday_2024 = [
'thumbnail' => $_asset_url . 'images/wpsp-logo-full.svg',
'html' => $notice_text,
];
$notices->add(
'wpsp_halloween_2024',
$_halloween_2024,
'wpsp_black_friday_2024',
$_black_friday_2024,
[
'start' => $notices->time(),
'recurrence' => false,
'dismissible' => true,
'refresh' => WPSP_VERSION,
'screens' => [ 'dashboard' ],
"expire" => strtotime( '11:59:59pm 3nd November, 2024' ),
"expire" => strtotime( '11:59:59pm 5th December, 2024' ),
'display_if' => !is_array( $notices->is_installed( 'wp-scheduled-posts-pro/wp-scheduled-posts-pro.php' ) )
]
);
Expand Down

0 comments on commit d8a4b26

Please sign in to comment.