Version Description
Bug Fix release
Download this release
Release Info
Developer | Icegram |
Plugin | Popups, Welcome Bar, Optins and Lead Generation Plugin – Icegram |
Version | 1.10.27 |
Comparing to | |
See all releases |
Code changes from version 1.10.26 to 1.10.27
- icegram.php +101 -6
- readme.txt +7 -1
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: 1.10.
|
7 |
* Author: icegram
|
8 |
* Author URI: https://www.icegram.com/
|
9 |
* Copyright (c) 2014-16 Icegram
|
@@ -33,7 +33,7 @@ class Icegram {
|
|
33 |
public static $current_page_id;
|
34 |
|
35 |
function __construct() {
|
36 |
-
$this->version = "1.10.
|
37 |
$this->shortcode_instances = array();
|
38 |
$this->mode = 'local';
|
39 |
$this->plugin_url = untrailingslashit( plugins_url( '/', __FILE__ ) );
|
@@ -97,6 +97,7 @@ class Icegram {
|
|
97 |
add_action( 'wp_ajax_nopriv_icegram_event_track', array( &$this, 'icegram_event_track' ) );
|
98 |
add_action( 'wp_ajax_klawoo_subscribe', array( &$this, 'klawoo_subscribe' ) );
|
99 |
add_action( 'wp_ajax_icegram_run_housekeeping', array( &$this, 'run_housekeeping' ) );
|
|
|
100 |
|
101 |
}
|
102 |
|
@@ -511,20 +512,55 @@ class Icegram {
|
|
511 |
public function check_for_gallery_items( $force_update = false ) {
|
512 |
global $icegram;
|
513 |
if ( $force_update === true || false === ( $ig_last_gallery_item_update = get_transient( 'ig_last_gallery_item_update' ) ) ) {
|
514 |
-
$
|
|
|
515 |
if ( ! is_wp_error( $ig_gallery_json ) ) {
|
516 |
$ig_gallery_json = ( wp_remote_retrieve_body( $ig_gallery_json ) );
|
517 |
if ( !empty($ig_gallery_json) ) {
|
518 |
update_option( 'ig_last_gallery_items', $ig_gallery_json );
|
519 |
}
|
520 |
-
}
|
521 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
522 |
$options = array(
|
523 |
'timeout' => 15,
|
524 |
'method' => 'GET',
|
525 |
'body' => ''
|
526 |
);
|
527 |
-
$response = wp_remote_request( $
|
528 |
$response_code = wp_remote_retrieve_response_code( $response );
|
529 |
// $body = json_decode($response['body'] ,true);
|
530 |
if ( $response_code == 200 ) {
|
@@ -540,11 +576,69 @@ class Icegram {
|
|
540 |
}
|
541 |
}
|
542 |
update_option( 'ig_cat_list', $cat_list );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
543 |
}
|
544 |
set_transient( 'ig_last_gallery_item_update', current_time( 'timestamp') , 24 * HOUR_IN_SECONDS ); // 1 day
|
545 |
}
|
546 |
}
|
547 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
548 |
public static function gallery_screen() {
|
549 |
global $icegram;
|
550 |
//check for new gallery item
|
@@ -1165,6 +1259,7 @@ class Icegram {
|
|
1165 |
}
|
1166 |
do_action('ig_file_include');
|
1167 |
$this->message_types = apply_filters( 'icegram_message_types', array() );
|
|
|
1168 |
}
|
1169 |
|
1170 |
// Register Campaign post type
|
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: 1.10.27
|
7 |
* Author: icegram
|
8 |
* Author URI: https://www.icegram.com/
|
9 |
* Copyright (c) 2014-16 Icegram
|
33 |
public static $current_page_id;
|
34 |
|
35 |
function __construct() {
|
36 |
+
$this->version = "1.10.27";
|
37 |
$this->shortcode_instances = array();
|
38 |
$this->mode = 'local';
|
39 |
$this->plugin_url = untrailingslashit( plugins_url( '/', __FILE__ ) );
|
97 |
add_action( 'wp_ajax_nopriv_icegram_event_track', array( &$this, 'icegram_event_track' ) );
|
98 |
add_action( 'wp_ajax_klawoo_subscribe', array( &$this, 'klawoo_subscribe' ) );
|
99 |
add_action( 'wp_ajax_icegram_run_housekeeping', array( &$this, 'run_housekeeping' ) );
|
100 |
+
add_action( 'wp_ajax_save_gallery_data', array( &$this, 'save_gallery_data' ) );
|
101 |
|
102 |
}
|
103 |
|
512 |
public function check_for_gallery_items( $force_update = false ) {
|
513 |
global $icegram;
|
514 |
if ( $force_update === true || false === ( $ig_last_gallery_item_update = get_transient( 'ig_last_gallery_item_update' ) ) ) {
|
515 |
+
$url_for_gallery_item = 'https://www.icegram.com/gallery/wp-json/wp/v2/galleryitem?per_page=100&page=1';
|
516 |
+
$ig_gallery_json = wp_remote_get( $url_for_gallery_item );
|
517 |
if ( ! is_wp_error( $ig_gallery_json ) ) {
|
518 |
$ig_gallery_json = ( wp_remote_retrieve_body( $ig_gallery_json ) );
|
519 |
if ( !empty($ig_gallery_json) ) {
|
520 |
update_option( 'ig_last_gallery_items', $ig_gallery_json );
|
521 |
}
|
522 |
+
}else{
|
523 |
+
?>
|
524 |
+
<script type="text/javascript">
|
525 |
+
jQuery(document).ready(function(){
|
526 |
+
jQuery.ajax({
|
527 |
+
url: '<?php echo esc_url( $url_for_gallery_item ); ?>',
|
528 |
+
method: 'GET',
|
529 |
+
dataType: 'json',
|
530 |
+
success: function( response ) {
|
531 |
+
if ( response != undefined && response != '' ) {
|
532 |
+
//ajax to save data
|
533 |
+
jQuery.ajax({
|
534 |
+
url: '<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>',
|
535 |
+
method: 'POST',
|
536 |
+
dataType: 'json',
|
537 |
+
data: {
|
538 |
+
action: 'save_gallery_data',
|
539 |
+
galleryitems: JSON.stringify(response),
|
540 |
+
},
|
541 |
+
success: function( res ) {
|
542 |
+
if ( res != undefined && res != '' && res.success != undefined && res.success == 'yes' ) {
|
543 |
+
// All done.
|
544 |
+
}
|
545 |
+
}
|
546 |
+
});
|
547 |
+
}
|
548 |
+
},
|
549 |
+
error : function (response){
|
550 |
+
console.log(response, 'res');
|
551 |
+
|
552 |
+
}
|
553 |
+
});
|
554 |
+
});
|
555 |
+
</script>
|
556 |
+
<?php }
|
557 |
+
$url_for_categories = 'https://www.icegram.com/gallery/wp-json/wp/v2/custom_cat?filter[orderby]=parent&order=desc';
|
558 |
$options = array(
|
559 |
'timeout' => 15,
|
560 |
'method' => 'GET',
|
561 |
'body' => ''
|
562 |
);
|
563 |
+
$response = wp_remote_request( $url_for_categories, $options );
|
564 |
$response_code = wp_remote_retrieve_response_code( $response );
|
565 |
// $body = json_decode($response['body'] ,true);
|
566 |
if ( $response_code == 200 ) {
|
576 |
}
|
577 |
}
|
578 |
update_option( 'ig_cat_list', $cat_list );
|
579 |
+
}else{
|
580 |
+
?>
|
581 |
+
<script type="text/javascript">
|
582 |
+
jQuery(document).ready(function(){
|
583 |
+
jQuery.ajax({
|
584 |
+
url: '<?php echo esc_url( $url_for_categories ); ?>',
|
585 |
+
method: 'GET',
|
586 |
+
dataType: 'json',
|
587 |
+
success: function( response ) {
|
588 |
+
|
589 |
+
if ( response != undefined && response != '' ) {
|
590 |
+
//ajax to save data
|
591 |
+
jQuery.ajax({
|
592 |
+
url: '<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>',
|
593 |
+
method: 'POST',
|
594 |
+
dataType: 'json',
|
595 |
+
data: {
|
596 |
+
action: 'save_gallery_data',
|
597 |
+
categories: response,
|
598 |
+
},
|
599 |
+
success: function( res ) {
|
600 |
+
if ( res != undefined && res != '' && res.success != undefined && res.success == 'yes' ) {
|
601 |
+
// All done.
|
602 |
+
}
|
603 |
+
}
|
604 |
+
});
|
605 |
+
}
|
606 |
+
},
|
607 |
+
error : function (response){
|
608 |
+
console.log(response, 'res');
|
609 |
+
|
610 |
+
}
|
611 |
+
});
|
612 |
+
});
|
613 |
+
</script>
|
614 |
+
<?php
|
615 |
}
|
616 |
set_transient( 'ig_last_gallery_item_update', current_time( 'timestamp') , 24 * HOUR_IN_SECONDS ); // 1 day
|
617 |
}
|
618 |
}
|
619 |
|
620 |
+
public function save_gallery_data(){
|
621 |
+
if(!empty($_REQUEST) && !empty($_REQUEST['galleryitems'])){
|
622 |
+
$ig_gallery_json = stripslashes($_REQUEST['galleryitems']);
|
623 |
+
update_option( 'ig_last_gallery_items', $ig_gallery_json );
|
624 |
+
}
|
625 |
+
if(!empty($_REQUEST) && !empty($_REQUEST['categories'])){
|
626 |
+
$categories = $_REQUEST['categories'];
|
627 |
+
$cat_list = array();
|
628 |
+
foreach ($categories as $category) {
|
629 |
+
if($category['parent'] == 0 ){
|
630 |
+
$cat_list[$category['term_id']]['name'] = $category['name'] ;
|
631 |
+
$cat_list[$category['term_id']]['slug'] = $category['slug'] ;
|
632 |
+
}else{
|
633 |
+
$cat_list[$category['parent']]['list'][] = $category;
|
634 |
+
}
|
635 |
+
}
|
636 |
+
update_option( 'ig_cat_list', $cat_list );
|
637 |
+
}
|
638 |
+
|
639 |
+
|
640 |
+
}
|
641 |
+
|
642 |
public static function gallery_screen() {
|
643 |
global $icegram;
|
644 |
//check for new gallery item
|
1259 |
}
|
1260 |
do_action('ig_file_include');
|
1261 |
$this->message_types = apply_filters( 'icegram_message_types', array() );
|
1262 |
+
|
1263 |
}
|
1264 |
|
1265 |
// Register Campaign post type
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.icegram.com/
|
|
4 |
Tags: popup, wordpress popups,Exit-popup, optin-popup, popups, hellobar, optin, 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.1.1
|
7 |
-
Stable tag: 1.10.
|
8 |
License: GPLv3
|
9 |
|
10 |
The best WP popup plugin that let's 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.
|
@@ -217,6 +217,9 @@ Contact Us, provide as much detail of the problem as you can. We will try to sol
|
|
217 |
5. Target your Icegram message using these display rules
|
218 |
|
219 |
== Upgrade Notice ==
|
|
|
|
|
|
|
220 |
= 1.10.26 =
|
221 |
Bug Fix release
|
222 |
|
@@ -453,6 +456,9 @@ Initial Release
|
|
453 |
|
454 |
|
455 |
== Changelog ==
|
|
|
|
|
|
|
456 |
= 1.10.26 =
|
457 |
* Update: Now supports multi roles for user in campaign display rules
|
458 |
|
4 |
Tags: popup, wordpress popups,Exit-popup, optin-popup, popups, hellobar, optin, 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.1.1
|
7 |
+
Stable tag: 1.10.27
|
8 |
License: GPLv3
|
9 |
|
10 |
The best WP popup plugin that let's 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.
|
217 |
5. Target your Icegram message using these display rules
|
218 |
|
219 |
== Upgrade Notice ==
|
220 |
+
= 1.10.27 =
|
221 |
+
Bug Fix release
|
222 |
+
|
223 |
= 1.10.26 =
|
224 |
Bug Fix release
|
225 |
|
456 |
|
457 |
|
458 |
== Changelog ==
|
459 |
+
= 1.10.27 =
|
460 |
+
* Fix: Fixed gallery not loading issue
|
461 |
+
|
462 |
= 1.10.26 =
|
463 |
* Update: Now supports multi roles for user in campaign display rules
|
464 |
|