Version Description
Fix for schedule campaign option
Download this release
Release Info
Developer | Icegram |
Plugin | Popups, Welcome Bar, Optins and Lead Generation Plugin – Icegram |
Version | 1.9.10 |
Comparing to | |
See all releases |
Code changes from version 1.9.9 to 1.9.10
- classes/class-icegram-campaign.php +1 -1
- icegram.php +19 -33
- readme.txt +8 -1
classes/class-icegram-campaign.php
CHANGED
@@ -113,7 +113,7 @@ if ( !class_exists( 'Icegram_Campaign' ) ) {
|
|
113 |
if ( !empty( $campaign->rules_summary['when']['when'] ) && $campaign->rules_summary['when']['when'] == 'always' ) {
|
114 |
return true;
|
115 |
}
|
116 |
-
if ( ( !empty( $campaign->rules_summary['when']['from'] ) &&
|
117 |
return true;
|
118 |
}
|
119 |
|
113 |
if ( !empty( $campaign->rules_summary['when']['when'] ) && $campaign->rules_summary['when']['when'] == 'always' ) {
|
114 |
return true;
|
115 |
}
|
116 |
+
if ( ( !empty( $campaign->rules_summary['when']['from'] ) && current_time('timestamp') > strtotime( $campaign->rules_summary['when']['from'] . " 00:00:00") ) && ( !empty( $campaign->rules_summary['when']['to'] ) && strtotime( $campaign->rules_summary['when']['to'] . " 23:59:59") > current_time('timestamp') ) ) {
|
117 |
return true;
|
118 |
}
|
119 |
|
icegram.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Icegram
|
4 |
* Plugin URI: http://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: 1.9.
|
7 |
* Author: icegram
|
8 |
* Author URI: http://www.icegram.com/
|
9 |
*
|
@@ -35,7 +35,7 @@ class Icegram {
|
|
35 |
|
36 |
function __construct() {
|
37 |
|
38 |
-
$this->version = "1.9.
|
39 |
$this->shortcode_instances = array();
|
40 |
$this->mode = 'local';
|
41 |
$this->plugin_url = untrailingslashit( plugins_url( '/', __FILE__ ) );
|
@@ -134,7 +134,7 @@ class Icegram {
|
|
134 |
public function add_admin_notices(){
|
135 |
$active_plugins = get_option( 'active_plugins', array() );
|
136 |
?>
|
137 |
-
<style>
|
138 |
div.icegram_notice {
|
139 |
border-left: 4px solid hsl(94, 61%, 52%);
|
140 |
padding: 1px 12px;
|
@@ -169,13 +169,14 @@ class Icegram {
|
|
169 |
</style>
|
170 |
<?php
|
171 |
// Admin notices for free bonuses!
|
172 |
-
if(!get_option('dismiss_admin_notice_from_icegram')){
|
173 |
$admin_notice_text = '';
|
174 |
-
if(!in_array('ig-analytics/ig-analytics.php', $active_plugins)){
|
175 |
//analytics
|
176 |
-
$admin_notice_text = "Measure performance of your Icegram messages with the <b>free Analytics addon</b
|
177 |
-
$no_offer_text =
|
178 |
-
|
|
|
|
|
179 |
$admin_notice_text = apply_filters('ig_in_app_offers',$admin_notice_text);
|
180 |
$no_offer_text_set = array('save_money' => __('No, I don\'t want to save money ','icegram'),
|
181 |
'full_price' => __('No, I will buy at full price later','icegram'),
|
@@ -183,23 +184,17 @@ class Icegram {
|
|
183 |
);
|
184 |
$key = array_rand($no_offer_text_set);
|
185 |
$no_offer_text = $no_offer_text_set[$key];
|
|
|
186 |
}
|
187 |
if($admin_notice_text != ''){
|
188 |
-
echo '<div class="icegram_notice">
|
189 |
-
|
190 |
-
|
191 |
-
<td style="width:70%;padding:0.5em;">'.$admin_notice_text.'</td>
|
192 |
-
<td style="text-align:right;"><a class="ig-admin-btn ig-admin-btn-secondary" href="?dismiss_admin_notice=1">'.$no_offer_text.'</a></td>
|
193 |
-
</tr></tbody></table>
|
194 |
-
</div>';
|
195 |
}
|
196 |
-
}
|
197 |
-
|
198 |
-
|
199 |
}
|
200 |
public function dismiss_admin_notice(){
|
201 |
-
if(isset($_GET['dismiss_admin_notice']) && $_GET['dismiss_admin_notice'] == '1'){
|
202 |
-
update_option('
|
203 |
wp_safe_redirect($_SERVER['HTTP_REFERER']);
|
204 |
exit();
|
205 |
}
|
@@ -213,25 +208,16 @@ class Icegram {
|
|
213 |
$timezone_format = _x('Y-m-d', 'timezone date format');
|
214 |
$current_wp_date = date_create(date_i18n($timezone_format));
|
215 |
|
216 |
-
//offer 1 4th-20th Nov
|
217 |
-
$date_start = date_create('2015-11-6');
|
218 |
-
$date_finish = date_create('2015-11-20');
|
219 |
-
|
220 |
$last_day_text_set = array('last' => __('Last Day Today!!!') ,'offer_end' => __('Offer Ends Today!!!'),'valid_till'=>__('Valid Only Till Midnight'));
|
221 |
$key = array_rand($last_day_text_set);
|
222 |
$last_day_text = $last_day_text_set[$key];
|
223 |
-
if($current_wp_date == $date_finish ){
|
224 |
-
$admin_notice_text = '<b>'. $last_day_text .' </b> - <a href="http://www.icegram.com/big-offer?utm_source=ig_promo&utm_medium=banner&utm_term='.$key.'&utm_campaign=big-offer", target="_icegram_offer">'. '<b> ' . __('80% Off On Top Selling Add-ons', 'icegram') . ' </b></a> - '. __('Icegram\'s Best Deal Ever' ,'icegram');
|
225 |
-
}else if ( ( $current_wp_date >= $date_start ) && ( $current_wp_date <= $date_finish )) {
|
226 |
-
$admin_notice_text = '<a href="http://www.icegram.com/big-offer?utm_source=ig_promo&utm_medium=banner&utm_term=big&utm_campaign=big-offer", target="_icegram_offer">'. '<b> ' . __('80% Off On Top Selling Add-ons', 'icegram') . ' </b></a> - '. __('Icegram\'s Best Deal Ever' ,'icegram');
|
227 |
-
}
|
228 |
|
229 |
//offer 2 26th-30th Nov
|
230 |
-
$
|
231 |
-
$
|
232 |
-
if($current_wp_date == $
|
233 |
$admin_notice_text = '<b>'. $last_day_text .' </b> - <a href="http://www.icegram.com/big-offer?utm_source=ig_sale&utm_medium=banner&utm_term='.$key.'&utm_campaign=big-offer", target="_icegram_offer">'. '<b>' . __('20% Off Storewide', 'icegram') . ' </b></a>';
|
234 |
-
}else if ( ( $current_wp_date >= $
|
235 |
$admin_notice_text = '<b>'.__('Special Holiday Season - ').'</b><a href="http://www.icegram.com/big-offer?utm_source=ig_sale&utm_medium=banner&utm_term=holiday&utm_campaign=big-offer", target="_icegram_offer">'. '<b>' . __('20% Off Storewide', 'icegram') . ' </b></a>';
|
236 |
}
|
237 |
|
3 |
* Plugin Name: Icegram
|
4 |
* Plugin URI: http://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: 1.9.10
|
7 |
* Author: icegram
|
8 |
* Author URI: http://www.icegram.com/
|
9 |
*
|
35 |
|
36 |
function __construct() {
|
37 |
|
38 |
+
$this->version = "1.9.10";
|
39 |
$this->shortcode_instances = array();
|
40 |
$this->mode = 'local';
|
41 |
$this->plugin_url = untrailingslashit( plugins_url( '/', __FILE__ ) );
|
134 |
public function add_admin_notices(){
|
135 |
$active_plugins = get_option( 'active_plugins', array() );
|
136 |
?>
|
137 |
+
<style type="text/css">
|
138 |
div.icegram_notice {
|
139 |
border-left: 4px solid hsl(94, 61%, 52%);
|
140 |
padding: 1px 12px;
|
169 |
</style>
|
170 |
<?php
|
171 |
// Admin notices for free bonuses!
|
|
|
172 |
$admin_notice_text = '';
|
173 |
+
if(!get_option('dismiss_admin_notice_from_icegram') && !in_array('ig-analytics/ig-analytics.php', $active_plugins)){
|
174 |
//analytics
|
175 |
+
$admin_notice_text = "<span style='padding:0.5em;'>Measure performance of your Icegram messages with the <b>free Analytics addon</b>.<a class='ig-admin-btn' style='display:inline-block' href='http://www.icegram.com/addons/analytics/?utm_source=inapp&utm_campaign=freebonus&utm_medium=notices' target='_blank'>Cool, Let's begin</a></span>";
|
176 |
+
$no_offer_text = __('No, I don\'t like offers...','icegram');
|
177 |
+
$option_name = 'dismiss_admin_notice_from_icegram';
|
178 |
+
}
|
179 |
+
if(!get_option('dismiss_admin_notice_in_app_offer') && in_array('ig-analytics/ig-analytics.php', $active_plugins)){
|
180 |
$admin_notice_text = apply_filters('ig_in_app_offers',$admin_notice_text);
|
181 |
$no_offer_text_set = array('save_money' => __('No, I don\'t want to save money ','icegram'),
|
182 |
'full_price' => __('No, I will buy at full price later','icegram'),
|
184 |
);
|
185 |
$key = array_rand($no_offer_text_set);
|
186 |
$no_offer_text = $no_offer_text_set[$key];
|
187 |
+
$option_name = 'dismiss_admin_notice_in_app_offer';
|
188 |
}
|
189 |
if($admin_notice_text != ''){
|
190 |
+
echo '<div class="icegram_notice" style="padding-top:1em;clear:both"><span class="dashicons dashicons-awards" style="font-size:3em;color:#b32727;margin:0 .4em .45em -0.2em;"></span>'.$admin_notice_text.
|
191 |
+
'<a style="display:inline-block" class="ig-admin-btn ig-admin-btn-secondary" href="?dismiss_admin_notice=1&option_name='.$option_name.'">'.$no_offer_text.'</a>
|
192 |
+
</div>';
|
|
|
|
|
|
|
|
|
193 |
}
|
|
|
|
|
|
|
194 |
}
|
195 |
public function dismiss_admin_notice(){
|
196 |
+
if(isset($_GET['dismiss_admin_notice']) && $_GET['dismiss_admin_notice'] == '1' && isset($_GET['option_name'])){
|
197 |
+
update_option($_GET['option_name'], true);
|
198 |
wp_safe_redirect($_SERVER['HTTP_REFERER']);
|
199 |
exit();
|
200 |
}
|
208 |
$timezone_format = _x('Y-m-d', 'timezone date format');
|
209 |
$current_wp_date = date_create(date_i18n($timezone_format));
|
210 |
|
|
|
|
|
|
|
|
|
211 |
$last_day_text_set = array('last' => __('Last Day Today!!!') ,'offer_end' => __('Offer Ends Today!!!'),'valid_till'=>__('Valid Only Till Midnight'));
|
212 |
$key = array_rand($last_day_text_set);
|
213 |
$last_day_text = $last_day_text_set[$key];
|
|
|
|
|
|
|
|
|
|
|
214 |
|
215 |
//offer 2 26th-30th Nov
|
216 |
+
$date_start = date_create('2015-11-26');
|
217 |
+
$date_finish = date_create('2015-11-30');
|
218 |
+
if($current_wp_date == $date_finish ){
|
219 |
$admin_notice_text = '<b>'. $last_day_text .' </b> - <a href="http://www.icegram.com/big-offer?utm_source=ig_sale&utm_medium=banner&utm_term='.$key.'&utm_campaign=big-offer", target="_icegram_offer">'. '<b>' . __('20% Off Storewide', 'icegram') . ' </b></a>';
|
220 |
+
}else if ( ( $current_wp_date >= $date_start ) && ( $current_wp_date <= $date_finish )) {
|
221 |
$admin_notice_text = '<b>'.__('Special Holiday Season - ').'</b><a href="http://www.icegram.com/big-offer?utm_source=ig_sale&utm_medium=banner&utm_term=holiday&utm_campaign=big-offer", target="_icegram_offer">'. '<b>' . __('20% Off Storewide', 'icegram') . ' </b></a>';
|
222 |
}
|
223 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.icegram.com/
|
|
4 |
Tags: popup, window, hellobar, optin, lead capture, marketing, form, 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, constant contact, toast notifications, leads, lists, builder, action bar, floating bar, footer bar, hellobar alternative, pop over, Popup plugin, aweber, campaign monitor, constant contact, email list, exit-intent, getresponse, analytics, Hubspot, icontact, infusionsoft, newsletter, Mailing list pop-up, retargeting, Animation,Popups with Animation ,Responsive Popup, split testing, AB testing
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.3.1
|
7 |
-
Stable tag: 1.9.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -153,6 +153,9 @@ Contact Us, provide as much detail of the problem as you can. We will try to sol
|
|
153 |
3. Editing an Icegram campaign - add multiple messages, edit them, targeting rules, full HTML editor, themes and more
|
154 |
|
155 |
== Upgrade Notice ==
|
|
|
|
|
|
|
156 |
= 1.9.9 =
|
157 |
Compatibility with Contact Form 7.
|
158 |
|
@@ -254,11 +257,15 @@ Initial Release
|
|
254 |
|
255 |
|
256 |
== Changelog ==
|
|
|
|
|
|
|
257 |
= 1.9.9 =
|
258 |
* Fix: CF7(Contact Form 7) Ajax submission was not working
|
259 |
* Fix: CF7 redirection was not working
|
260 |
* Fix: CF7 was changing URL after form submission
|
261 |
|
|
|
262 |
= 1.9.8.1 =
|
263 |
* Enhancement: Added sprite image for close buttons
|
264 |
* Fix: Retargeting issues with HTTP and HTTPS
|
4 |
Tags: popup, window, hellobar, optin, lead capture, marketing, form, 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, constant contact, toast notifications, leads, lists, builder, action bar, floating bar, footer bar, hellobar alternative, pop over, Popup plugin, aweber, campaign monitor, constant contact, email list, exit-intent, getresponse, analytics, Hubspot, icontact, infusionsoft, newsletter, Mailing list pop-up, retargeting, Animation,Popups with Animation ,Responsive Popup, split testing, AB testing
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.3.1
|
7 |
+
Stable tag: 1.9.10
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
153 |
3. Editing an Icegram campaign - add multiple messages, edit them, targeting rules, full HTML editor, themes and more
|
154 |
|
155 |
== Upgrade Notice ==
|
156 |
+
= 1.9.10 =
|
157 |
+
Fix for schedule campaign option
|
158 |
+
|
159 |
= 1.9.9 =
|
160 |
Compatibility with Contact Form 7.
|
161 |
|
257 |
|
258 |
|
259 |
== Changelog ==
|
260 |
+
= 1.9.10 =
|
261 |
+
* Fix: Campaigns were not getting scheduled according to site's timezone
|
262 |
+
|
263 |
= 1.9.9 =
|
264 |
* Fix: CF7(Contact Form 7) Ajax submission was not working
|
265 |
* Fix: CF7 redirection was not working
|
266 |
* Fix: CF7 was changing URL after form submission
|
267 |
|
268 |
+
|
269 |
= 1.9.8.1 =
|
270 |
* Enhancement: Added sprite image for close buttons
|
271 |
* Fix: Retargeting issues with HTTP and HTTPS
|