Version Description
- Enhancement: Revised Gallery Templates for Halloween
=
Download this release
Release Info
Developer | Icegram |
Plugin | Popups, Welcome Bar, Optins and Lead Generation Plugin – Icegram |
Version | 2.0.4 |
Comparing to | |
See all releases |
Code changes from version 2.0.3 to 2.0.4
- icegram.php +2 -2
- lite/assets/images/halloween2020.png +0 -0
- lite/assets/images/halloween2021.png +0 -0
- lite/class-icegram.php +3 -3
- lite/classes/ig-upsale-admin.php +28 -1
- lite/ig-offer.php +14 -18
- readme.txt +8 -5
icegram.php
CHANGED
@@ -3,8 +3,8 @@
|
|
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: 2.0.
|
7 |
-
* Tested up to: 5.8
|
8 |
* Author: icegram
|
9 |
* Author URI: https://www.icegram.com/
|
10 |
* Copyright (c) 2014-21 Icegram
|
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: 2.0.4
|
7 |
+
* Tested up to: 5.8.1
|
8 |
* Author: icegram
|
9 |
* Author URI: https://www.icegram.com/
|
10 |
* Copyright (c) 2014-21 Icegram
|
lite/assets/images/halloween2020.png
DELETED
Binary file
|
lite/assets/images/halloween2021.png
ADDED
Binary file
|
lite/class-icegram.php
CHANGED
@@ -170,9 +170,9 @@ if ( ! class_exists( 'Icegram' ) ) {
|
|
170 |
$option_name = sanitize_text_field( $_GET['ig_option_name'] );
|
171 |
update_option( $option_name . '_icegram', 'yes', false );
|
172 |
|
173 |
-
//
|
174 |
-
if ( '
|
175 |
-
$url = "https://www.icegram.com/pricing/?utm_source=in_app&utm_medium=ig_banner&utm_campaign=
|
176 |
header( "Location: {$url}" );
|
177 |
exit();
|
178 |
} else {
|
170 |
$option_name = sanitize_text_field( $_GET['ig_option_name'] );
|
171 |
update_option( $option_name . '_icegram', 'yes', false );
|
172 |
|
173 |
+
//Halloween 2021 offer
|
174 |
+
if ( 'ig_offer_halloween_2021' === $option_name ) {
|
175 |
+
$url = "https://www.icegram.com/pricing/?utm_source=in_app&utm_medium=ig_banner&utm_campaign=offer_halloween_2021";
|
176 |
header( "Location: {$url}" );
|
177 |
exit();
|
178 |
} else {
|
lite/classes/ig-upsale-admin.php
CHANGED
@@ -7,7 +7,11 @@ if ( ! class_exists( 'Icegram_upsale' ) ) {
|
|
7 |
class Icegram_upsale {
|
8 |
function __construct() {
|
9 |
add_action( 'add_meta_boxes', array( &$this, 'add_campaigns_analytics_metaboxes' ), 0 );
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
add_filter( 'icegram_campaign_tabs', array( &$this, 'add_upsale_tab' ), 10, 1 );
|
12 |
add_action('icegram_after_message_settings', array($this,'display_bt_upsale'),10,2);
|
13 |
add_filter('icegram_message_field_link' ,array(&$this, 'display_cta_upsale'));
|
@@ -67,6 +71,29 @@ if ( ! class_exists( 'Icegram_upsale' ) ) {
|
|
67 |
return $params;
|
68 |
}
|
69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
}
|
71 |
$icegram_upsale = new Icegram_upsale();
|
72 |
}
|
7 |
class Icegram_upsale {
|
8 |
function __construct() {
|
9 |
add_action( 'add_meta_boxes', array( &$this, 'add_campaigns_analytics_metaboxes' ), 0 );
|
10 |
+
|
11 |
+
// Add upsale metabox only if there isn't any other ongoing sale period.
|
12 |
+
if ( ! self::is_offer_period( 'halloween' ) ) {
|
13 |
+
add_action( 'add_meta_boxes', array( &$this, 'add_upsell_notice' ), 0 );
|
14 |
+
}
|
15 |
add_filter( 'icegram_campaign_tabs', array( &$this, 'add_upsale_tab' ), 10, 1 );
|
16 |
add_action('icegram_after_message_settings', array($this,'display_bt_upsale'),10,2);
|
17 |
add_filter('icegram_message_field_link' ,array(&$this, 'display_cta_upsale'));
|
71 |
return $params;
|
72 |
}
|
73 |
|
74 |
+
/**
|
75 |
+
* Check if sale period
|
76 |
+
*
|
77 |
+
* @return boolean
|
78 |
+
*/
|
79 |
+
public static function is_offer_period( $offer_name = '' ) {
|
80 |
+
|
81 |
+
$is_offer_period = false;
|
82 |
+
if ( ! empty( $offer_name ) ) {
|
83 |
+
$current_utc_time = time();
|
84 |
+
$current_ist_time = $current_utc_time + ( 5.5 * HOUR_IN_SECONDS ); // Add IST offset to get IST time
|
85 |
+
|
86 |
+
if ( 'halloween' === $offer_name ) {
|
87 |
+
$offer_start_time = strtotime( '2021-10-27 12:00:00' ); // Offer start time in IST
|
88 |
+
$offer_end_time = strtotime( '2021-11-02 12:00:00' ); // Offer end time in IST
|
89 |
+
}
|
90 |
+
|
91 |
+
$is_offer_period = $current_ist_time >= $offer_start_time && $current_ist_time <= $offer_end_time;
|
92 |
+
}
|
93 |
+
|
94 |
+
return $is_offer_period;
|
95 |
+
}
|
96 |
+
|
97 |
}
|
98 |
$icegram_upsale = new Icegram_upsale();
|
99 |
}
|
lite/ig-offer.php
CHANGED
@@ -1,22 +1,18 @@
|
|
1 |
-
<style type="text/css">
|
2 |
-
.ig_es_offer {
|
3 |
-
width:70%;
|
4 |
-
margin: 0 auto;
|
5 |
-
text-align: center;
|
6 |
-
padding-top: 0.8em;
|
7 |
-
}
|
8 |
-
|
9 |
-
</style>
|
10 |
<?php
|
11 |
|
12 |
-
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
<div class="ig_es_offer bg-indigo-800">
|
19 |
-
<a target="_blank" href="?ig_dismiss_admin_notice=1&ig_option_name=ig_offer_bfcm_2020"><img style="margin:0 auto" src="<?php echo $this->plugin_url; ?>/assets/images/bfcm_2020.jpg"/></a>
|
20 |
-
</div>
|
21 |
</div>
|
22 |
-
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
|
3 |
+
// Halloween 2021 Campaign
|
4 |
+
if ( ( get_option( 'ig_offer_halloween_2021_icegram' ) !== 'yes' ) && Icegram_upsale::is_offer_period( 'halloween') ) {
|
5 |
+
?>
|
6 |
+
<style type="text/css">
|
7 |
+
.ig_es_offer {
|
8 |
+
width: 55%;
|
9 |
+
margin: 0 auto;
|
10 |
+
text-align: center;
|
11 |
+
padding-top: 1.2em;
|
12 |
+
}
|
13 |
|
14 |
+
</style>
|
15 |
+
<div class="ig_es_offer">
|
16 |
+
<a target="_blank" href="?ig_dismiss_admin_notice=1&ig_option_name=ig_offer_halloween_2021"><img src="<?php echo $this->plugin_url; ?>/assets/images/halloween2021.png"/></a>
|
|
|
|
|
|
|
17 |
</div>
|
18 |
+
<?php } ?>
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: icegram, storeapps, niravmehta, sandhyam, malayladu, putler, kisha
|
|
3 |
Donate link: https://www.icegram.com/
|
4 |
Tags: popup, optin, hellobar, lead capture, form, marketing, notification, messenger, targeting, monster, ninja ,wordpress lead generation, wordpress lightbox optin, wordpress lightbox optin form, wordpress lightbox optins, wordpress mobile optin forms, wordpress mobile popup, wordpress mobile popups, wordpress optin form, wordpress overlay popup, wordpress popup, wordpress popup form, wordpress popup plugin, wordpress popup solution, wordpress popups, popups, subscribe, wp popups, optin bars, action grabber, promotion, popup message, leads, lists, builder, action bar, floating bar, footer bar, hellobar alternative, pop over, Popup plugin, aweber, campaign monitor, constant contact, email list, exit-intent, onclick popup, analytics, Hubspot, popup ads, pop-up, Mailing list pop-up, re-targeting, Animation, Popups with Animation, Responsive Popup, split testing, AB testing
|
5 |
Requires at least: 3.9
|
6 |
-
Tested up to: 5.8
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv3
|
9 |
|
10 |
The best WP popup plugin that lets you create a popup within seconds. Customize popup, target popups to show offers, email signups, social buttons, etc and instantly increase conversions on your website.
|
@@ -242,13 +242,16 @@ Contact Us, provide as much detail of the problem as you can. We will try to sol
|
|
242 |
|
243 |
== Upgrade Notice ==
|
244 |
|
245 |
-
= 2.0.
|
246 |
|
247 |
-
*
|
248 |
-
* Fix: Secured Icegram from Stored XSS vulnerability.
|
249 |
|
250 |
== Changelog ==
|
251 |
|
|
|
|
|
|
|
|
|
252 |
**2.0.3 (17.08.2021)**
|
253 |
|
254 |
* Fix: WooCommerce product added twice when Cache Friendly option is enabled.
|
3 |
Donate link: https://www.icegram.com/
|
4 |
Tags: popup, optin, hellobar, lead capture, form, marketing, notification, messenger, targeting, monster, ninja ,wordpress lead generation, wordpress lightbox optin, wordpress lightbox optin form, wordpress lightbox optins, wordpress mobile optin forms, wordpress mobile popup, wordpress mobile popups, wordpress optin form, wordpress overlay popup, wordpress popup, wordpress popup form, wordpress popup plugin, wordpress popup solution, wordpress popups, popups, subscribe, wp popups, optin bars, action grabber, promotion, popup message, leads, lists, builder, action bar, floating bar, footer bar, hellobar alternative, pop over, Popup plugin, aweber, campaign monitor, constant contact, email list, exit-intent, onclick popup, analytics, Hubspot, popup ads, pop-up, Mailing list pop-up, re-targeting, Animation, Popups with Animation, Responsive Popup, split testing, AB testing
|
5 |
Requires at least: 3.9
|
6 |
+
Tested up to: 5.8.1
|
7 |
+
Stable tag: 2.0.4
|
8 |
License: GPLv3
|
9 |
|
10 |
The best WP popup plugin that lets you create a popup within seconds. Customize popup, target popups to show offers, email signups, social buttons, etc and instantly increase conversions on your website.
|
242 |
|
243 |
== Upgrade Notice ==
|
244 |
|
245 |
+
= 2.0.4 =
|
246 |
|
247 |
+
* Enhancement: Revised Gallery Templates for Halloween
|
|
|
248 |
|
249 |
== Changelog ==
|
250 |
|
251 |
+
**2.0.4 (21.10.2021)**
|
252 |
+
|
253 |
+
* Enhancement: Revised Gallery Templates for Halloween
|
254 |
+
|
255 |
**2.0.3 (17.08.2021)**
|
256 |
|
257 |
* Fix: WooCommerce product added twice when Cache Friendly option is enabled.
|