PluginProbe
Image Optimizer – Compress Images and Convert to WebP or AVIF / 1.7.7
Image Optimizer – Compress Images and Convert to WebP or AVIF v1.7.7
1.7.7 1.7.6 1.7.5 1.7.4 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 All 33 releases
← All changes | modules/settings/banners/sale-banner.php +9 -8 1.6.0 → 1.7.7 View file →
@@ -12,17 +12,17 @@
12 12 /**
13 13 * Sale_Banner
14 14 */
15 15 class Sale_Banner {
16 - const BANNER_POINTER_NAME = 'image_optimizer_sale_bf_2024_banner';
16 + const BANNER_POINTER_NAME = 'image_optimizer_sale_bf_2025_banner';
17 17 const POINTER_ACTION = 'image_optimizer_pointer_dismissed';
18 18 const POINTER_NONCE_KEY = 'image-optimization-pointer-dismissed';
19 19
20 20 public static function is_sale_time(): bool {
21 - $sale_start_time = gmmktime( 13, 0, 0, 11, 26, 2024 );
22 - $sale_end_time = gmmktime( 9, 59, 0, 12, 4, 2024 );
21 + $sale_start_time = strtotime( '2025-11-25 13:00:00 UTC' );
22 + $sale_end_time = strtotime( '2025-12-04 04:59:00 UTC' );
23 23
24 - $now_time = gmdate( 'U' );
24 + $now_time = time();
25 25
26 26 return $now_time >= $sale_start_time && $now_time <= $sale_end_time;
27 27 }
28 28
@@ -37,9 +37,9 @@
37 37 public static function get_banner( string $link ) {
38 38 if ( ! self::is_sale_time() || self::user_viewed_banner() ) {
39 39 return;
40 40 }
41 - $img = plugins_url( '/images/bf-banner-io-2024.jpg', __FILE__ );
41 + $img = plugins_url( '/images/bf-banner-io-2025.png', __FILE__ );
42 42 $url = admin_url( 'admin-ajax.php' );
43 43 $nonce = wp_create_nonce( self::POINTER_NONCE_KEY );
44 44
45 45 ?>
@@ -46,9 +46,9 @@
46 46 <div class="elementor-black-friday-banner">
47 47 <div class="elementor-black-friday-banner-container">
48 48 <img src="<?php echo esc_url( $img ); ?>" alt="Black Friday banner image">
49 49 <a href="<?php echo esc_url( $link ); ?>" target="_blank">
50 - Claim discount
50 + Get discount
51 51 </a>
52 52 <button>
53 53 <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
54 54 <path fill-rule="evenodd" clip-rule="evenodd" d="M13.2803 1.28033C13.5732 0.987437 13.5732 0.512563 13.2803 0.21967C12.9874 -0.0732233 12.5126 -0.0732233 12.2197 0.21967L6.75 5.68934L1.28033 0.21967C0.987437 -0.0732233 0.512563 -0.0732233 0.21967 0.21967C-0.0732233 0.512563 -0.0732233 0.987437 0.21967 1.28033L5.68934 6.75L0.21967 12.2197C-0.0732233 12.5126 -0.0732233 12.9874 0.21967 13.2803C0.512563 13.5732 0.987437 13.5732 1.28033 13.2803L6.75 7.81066L12.2197 13.2803C12.5126 13.5732 12.9874 13.5732 13.2803 13.2803C13.5732 12.9874 13.5732 12.5126 13.2803 12.2197L7.81066 6.75L13.2803 1.28033Z" fill="white"/>
@@ -63,13 +63,14 @@
63 63 background: #000;
64 64 }
65 65 .elementor-black-friday-banner-container {
66 66 position: relative;
67 - max-width: 1200px;
67 + max-width: 1600px;
68 68 margin: 0 auto;
69 69 display: flex;
70 70 justify-content: end;
71 71 align-items: center;
72 + direction: ltr;
72 73 height: 80px;
73 74 }
74 75 .elementor-black-friday-banner img {
75 76 position: absolute;
@@ -83,9 +84,9 @@
83 84 display: inline-block;
84 85 padding: 12px 24px;
85 86 font-size: 18px;
86 87 color: #000;
87 - background-color: #FF7BE5;
88 + background-color: #ff7be5;
88 89 text-decoration: none;
89 90 z-index: 2;
90 91 }
91 92 .elementor-black-friday-banner button {