Popups, Welcome Bar, Optins and Lead Generation Plugin – Icegram - Version 3.0.12

Version Description

  • New: Templates for Halloween
  • Update: UI improvements

=

Download this release

Release Info

Developer Icegram
Plugin Icon 128x128 Popups, Welcome Bar, Optins and Lead Generation Plugin – Icegram
Version 3.0.12
Comparing to
See all releases

Code changes from version 3.0.11 to 3.0.12

icegram.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Icegram - Popups, Optins, CTAs & lot more...
4
  * Plugin URI: https://www.icegram.com/
5
  * Description: All in one solution to inspire, convert and engage your audiences. Action bars, Popup windows, Messengers, Toast notifications and more. Awesome themes and powerful rules.
6
- * Version: 3.0.11
7
  * Tested up to: 6.0.2
8
  * Author: icegram
9
  * Author URI: https://www.icegram.com/
@@ -122,7 +122,7 @@ if ( ! defined( 'IG_PLUGIN_FILE' ) ) {
122
  }
123
 
124
  if ( ! defined( 'IG_PLUGIN_VERSION' ) ) {
125
- define( 'IG_PLUGIN_VERSION', '3.0.11' );
126
  }
127
 
128
  if ( ! defined( 'IG_PRODUCT_ID' ) ) {
3
  * Plugin Name: Icegram - Popups, Optins, CTAs & lot more...
4
  * Plugin URI: https://www.icegram.com/
5
  * Description: All in one solution to inspire, convert and engage your audiences. Action bars, Popup windows, Messengers, Toast notifications and more. Awesome themes and powerful rules.
6
+ * Version: 3.0.12
7
  * Tested up to: 6.0.2
8
  * Author: icegram
9
  * Author URI: https://www.icegram.com/
122
  }
123
 
124
  if ( ! defined( 'IG_PLUGIN_VERSION' ) ) {
125
+ define( 'IG_PLUGIN_VERSION', '3.0.12' );
126
  }
127
 
128
  if ( ! defined( 'IG_PRODUCT_ID' ) ) {
lite/assets/images/{Annie%20Lax.png → Annie Lax.png} RENAMED
File without changes
lite/assets/images/halloween2022.png ADDED
Binary file
lite/class-icegram.php CHANGED
@@ -194,7 +194,7 @@ if ( ! class_exists( 'Icegram' ) ) {
194
  return;
195
  }
196
 
197
- if ( ! $icegram->is_premium_installed() ) {
198
  include_once( 'ig-offer.php' );
199
  }
200
 
@@ -207,9 +207,9 @@ if ( ! class_exists( 'Icegram' ) ) {
207
  $option_name = sanitize_text_field( $_GET['ig_option_name'] );
208
  update_option( $option_name . '_icegram', 'yes', false );
209
 
210
- //bfcm 2021 offer
211
- if ( 'ig_offer_bfcm_2021' === $option_name ) {
212
- $url = "https://www.icegram.com/pricing/?utm_source=in_app&utm_medium=ig_banner&utm_campaign=offer_bfcm_2021";
213
  header( "Location: {$url}" );
214
  exit();
215
  } elseif( 'ig_new_admin_ui' === $option_name ) {
194
  return;
195
  }
196
 
197
+ if ( ! $icegram->is_max() ) {
198
  include_once( 'ig-offer.php' );
199
  }
200
 
207
  $option_name = sanitize_text_field( $_GET['ig_option_name'] );
208
  update_option( $option_name . '_icegram', 'yes', false );
209
 
210
+ //bfcm 2022 offer
211
+ if ( 'ig_offer_halloween_2022' === $option_name ) {
212
+ $url = "https://www.icegram.com/pricing/?utm_source=in_app&utm_medium=ig_banner&utm_campaign=offer_halloween_2022";
213
  header( "Location: {$url}" );
214
  exit();
215
  } elseif( 'ig_new_admin_ui' === $option_name ) {
lite/classes/ig-upsale-admin.php CHANGED
@@ -168,10 +168,13 @@ if ( ! class_exists( 'Icegram_upsale' ) ) {
168
  if ( ! empty( $offer_name ) ) {
169
  $current_utc_time = time();
170
  $current_ist_time = $current_utc_time + ( 5.5 * HOUR_IN_SECONDS ); // Add IST offset to get IST time
171
-
172
- if ( 'bfcm' === $offer_name ) {
173
- $offer_start_time = strtotime( '2021-11-15 12:00:00' ); // Offer start time in IST
174
- $offer_end_time = strtotime( '2021-12-01 12:00:00' ); // Offer end time in IST
 
 
 
175
  }
176
 
177
  $is_offer_period = $current_ist_time >= $offer_start_time && $current_ist_time <= $offer_end_time;
168
  if ( ! empty( $offer_name ) ) {
169
  $current_utc_time = time();
170
  $current_ist_time = $current_utc_time + ( 5.5 * HOUR_IN_SECONDS ); // Add IST offset to get IST time
171
+
172
+ $offer_start_time = $current_ist_time;
173
+ $offer_end_time = $current_ist_time;
174
+
175
+ if ( 'halloween' === $offer_name ) {
176
+ $offer_start_time = strtotime( '2022-10-25 12:30:00' ); // Offer start time in IST
177
+ $offer_end_time = strtotime( '2022-11-01 12:30:00' ); // Offer end time in IST
178
  }
179
 
180
  $is_offer_period = $current_ist_time >= $offer_start_time && $current_ist_time <= $offer_end_time;
lite/ig-offer.php CHANGED
@@ -1,26 +1,26 @@
1
  <?php
2
 
3
  // Halloween 2021 Campaign
4
- if ( ( get_option( 'ig_offer_bfcm_2021_icegram' ) !== 'yes' ) && Icegram_upsale::is_offer_period( 'bfcm') ) {
5
- $img_url = $this->plugin_url .'/assets/images/bfcm2021.png';
6
- $ig_plan = get_option( 'ig_engage_plan', 'lite' );
7
- if( 'lite' === $ig_plan ){
8
- $img_url = $this->plugin_url .'/assets/images/bfcm2021_lite.png';
9
- }elseif( 'plus' === $ig_plan || 'pro' === $ig_plan ){
10
- $img_url = $this->plugin_url .'/assets/images/bfcm2021_pro.png';
11
- }
12
 
13
  ?>
14
  <style type="text/css">
15
- .ig_es_offer {
16
- width: 55%;
17
  margin: 0 auto;
18
  text-align: center;
19
  padding-top: 1.2em;
20
  }
21
 
22
  </style>
23
- <div class="ig_es_offer">
24
- <a target="_blank" href="?ig_dismiss_admin_notice=1&ig_option_name=ig_offer_bfcm_2021"><img src="<?php echo $img_url; ?>"/></a>
25
  </div>
26
  <?php } ?>
1
  <?php
2
 
3
  // Halloween 2021 Campaign
4
+ if ( ( get_option( 'ig_offer_halloween_2022_icegram' ) !== 'yes' ) && Icegram_upsale::is_offer_period( 'halloween') ) {
5
+ $img_url = $this->plugin_url .'/assets/images/halloween2022.png';
6
+ // $ig_plan = get_option( 'ig_engage_plan', 'lite' );
7
+ // if( 'lite' === $ig_plan ){
8
+ // $img_url = $this->plugin_url .'/assets/images/bfcm2021_lite.png';
9
+ // }elseif( 'plus' === $ig_plan || 'pro' === $ig_plan ){
10
+ // $img_url = $this->plugin_url .'/assets/images/bfcm2021_pro.png';
11
+ // }
12
 
13
  ?>
14
  <style type="text/css">
15
+ .ig_sale_offer {
16
+ width: 65%;
17
  margin: 0 auto;
18
  text-align: center;
19
  padding-top: 1.2em;
20
  }
21
 
22
  </style>
23
+ <div class="ig_sale_offer">
24
+ <a target="_blank" href="?ig_dismiss_admin_notice=1&ig_option_name=ig_offer_halloween_2022"><img src="<?php echo $img_url; ?>"/></a>
25
  </div>
26
  <?php } ?>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.icegram.com/
4
  Tags: popup, optin, hellobar, lead capture, form
5
  Requires at least: 3.9
6
  Tested up to: 6.0.2
7
- Stable tag: 3.0.11
8
  License: GPLv3
9
 
10
  The best WordPress popup plugin that lets you create popups and action bars within seconds. Customize exit-intent popup campaigns, action bars, badges, stickies, inline optin, fullscreen overlay, ribbons, sidebar panel and more in no time.
@@ -458,13 +458,18 @@ Contact Us, provide as much detail of the problem as you can. We will try to sol
458
 
459
  == Upgrade Notice ==
460
 
461
- = 3.0.11 =
462
 
463
- * Enhancement: Gallery Templates for Halloween
464
  * Update: UI improvements
465
 
466
  == Changelog ==
467
 
 
 
 
 
 
468
  **3.0.11 (12.10.2022)**
469
 
470
  * Enhancement: Gallery Templates for Halloween
4
  Tags: popup, optin, hellobar, lead capture, form
5
  Requires at least: 3.9
6
  Tested up to: 6.0.2
7
+ Stable tag: 3.0.12
8
  License: GPLv3
9
 
10
  The best WordPress popup plugin that lets you create popups and action bars within seconds. Customize exit-intent popup campaigns, action bars, badges, stickies, inline optin, fullscreen overlay, ribbons, sidebar panel and more in no time.
458
 
459
  == Upgrade Notice ==
460
 
461
+ = 3.0.12 =
462
 
463
+ * New: Templates for Halloween
464
  * Update: UI improvements
465
 
466
  == Changelog ==
467
 
468
+ **3.0.12 (20.10.2022)**
469
+
470
+ * New: Templates for Halloween
471
+ * Update: UI improvements
472
+
473
  **3.0.11 (12.10.2022)**
474
 
475
  * Enhancement: Gallery Templates for Halloween