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

Version Description

Improved short code handling, WishList member compatibility and other fixes.

Download this release

Release Info

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

Code changes from version 1.8.7 to 1.8.8

assets/css/admin.css CHANGED
@@ -697,4 +697,13 @@ CSS for landing page and Help and Support
697
  font-family: dashicons;
698
  content: "\f132";
699
  vertical-align: middle;
700
- }
 
 
 
 
 
 
 
 
 
697
  font-family: dashicons;
698
  content: "\f132";
699
  vertical-align: middle;
700
+ }
701
+ /* chosen fix*/
702
+
703
+ .message-setting-fields .chosen-container-single .chosen-single
704
+ {
705
+ z-index:initial!important;
706
+ }
707
+ .message-setting-fields .chosen-container-single.chosen-single div b {
708
+ background: url(../images/chosen-sprite.png)no-repeat 0 2px!important;
709
+ }
assets/js/icegram.js CHANGED
@@ -183,6 +183,12 @@
183
  this.data = data;
184
  this.type = data.type;
185
  this.data.delay_time = parseInt(this.data.delay_time);
 
 
 
 
 
 
186
  this.set_template( this.get_template_default() );
187
  this.init();
188
  }
183
  this.data = data;
184
  this.type = data.type;
185
  this.data.delay_time = parseInt(this.data.delay_time);
186
+ //add http:// to link
187
+ if (typeof(this.data.link) === 'string' && this.data.link != '') {
188
+ if (!/^https?:\/\//i.test(this.data.link)) {
189
+ this.data.link = "http://" + this.data.link;
190
+ }
191
+ }
192
  this.set_template( this.get_template_default() );
193
  this.init();
194
  }
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.8.7
7
  * Author: icegram
8
  * Author URI: http://www.icegram.com/
9
  *
@@ -34,7 +34,7 @@ class Icegram {
34
 
35
  function __construct() {
36
 
37
- $this->version = "1.8.7";
38
  $this->shortcode_instances = array();
39
  $this->mode = 'local';
40
  $this->plugin_url = untrailingslashit( plugins_url( '/', __FILE__ ) );
@@ -582,16 +582,7 @@ class Icegram {
582
  remove_filter('the_content', array( $this, 'after_wpautop' ) , 11);
583
  */
584
  // Redo the_content functionality to avoid other plugins adding extraneous code to messages
585
- $content = $message_data['message'];
586
-
587
- $content = convert_chars( convert_smilies( wptexturize( $content ) ) );
588
- if(isset($GLOBALS['wp_embed'])) {
589
- $content = $GLOBALS['wp_embed']->autoembed($content);
590
- }
591
- $content = $this->after_wpautop( wpautop( $this->before_wpautop( $content ) ) );
592
- $content = do_shortcode( shortcode_unautop( $content ) );
593
- $messages[$key]['message'] = $content;
594
-
595
  }
596
 
597
  if( empty( $messages ) )
@@ -664,6 +655,20 @@ class Icegram {
664
  }
665
 
666
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
667
 
668
  function enqueue_admin_styles_and_scripts() {
669
 
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.8.8
7
  * Author: icegram
8
  * Author URI: http://www.icegram.com/
9
  *
34
 
35
  function __construct() {
36
 
37
+ $this->version = "1.8.8";
38
  $this->shortcode_instances = array();
39
  $this->mode = 'local';
40
  $this->plugin_url = untrailingslashit( plugins_url( '/', __FILE__ ) );
582
  remove_filter('the_content', array( $this, 'after_wpautop' ) , 11);
583
  */
584
  // Redo the_content functionality to avoid other plugins adding extraneous code to messages
585
+ $this->process_message_body($messages[$key]);
 
 
 
 
 
 
 
 
 
586
  }
587
 
588
  if( empty( $messages ) )
655
  }
656
 
657
  }
658
+
659
+ // Process
660
+ function process_message_body(&$message_data){
661
+ $content = $message_data['message'];
662
+ $content = convert_chars( convert_smilies( wptexturize( $content ) ) );
663
+ if(isset($GLOBALS['wp_embed'])) {
664
+ $content = $GLOBALS['wp_embed']->autoembed($content);
665
+ }
666
+ $content = $this->after_wpautop( wpautop( $this->before_wpautop( $content ) ) );
667
+ $content = do_shortcode( shortcode_unautop( $content ) );
668
+ $message_data['message'] = $content;
669
+ //do_shortcode in headline
670
+ $message_data['headline'] = do_shortcode( shortcode_unautop( $message_data['headline'] ) );
671
+ }
672
 
673
  function enqueue_admin_styles_and_scripts() {
674
 
message-types/popup/default.css CHANGED
@@ -36,7 +36,7 @@
36
  }
37
 
38
  .ig_popup .ig_data {
39
- overflow: hidden;
40
  position: relative;
41
  }
42
 
36
  }
37
 
38
  .ig_popup .ig_data {
39
+ /*overflow: hidden;*/
40
  position: relative;
41
  }
42
 
message-types/popup/main.js CHANGED
@@ -35,9 +35,15 @@
35
  src: popup_id,
36
  type: 'inline'
37
  },
38
- showCloseBtn :false
 
 
 
 
 
 
39
  });
40
- // jQuery('.mfp-content').removeClass().addClass('mfp-content ig_popup ' + self.data.theme);
41
  silent !== true && this.track( 'shown' );
42
  };
43
 
@@ -54,6 +60,7 @@
54
  src: popup_id,
55
  type: 'inline'
56
  }});
57
- silent !== true && this.track( 'closed' );
58
  };
 
 
59
 
35
  src: popup_id,
36
  type: 'inline'
37
  },
38
+ showCloseBtn :false,
39
+ callbacks: {
40
+ close: function() {
41
+ // Will fire when popup is closed
42
+ silent !== true && self.track( 'closed' );
43
+ }
44
+ }
45
  });
46
+
47
  silent !== true && this.track( 'shown' );
48
  };
49
 
60
  src: popup_id,
61
  type: 'inline'
62
  }});
 
63
  };
64
+
65
+
66
 
message-types/popup/main.php CHANGED
@@ -12,7 +12,7 @@ class Icegram_Message_Type_Popup extends Icegram_Message_Type {
12
 
13
  $this->popup_default_delay_time = 3;
14
  add_filter( 'icegram_data', array( $this, 'arrange_proper_delay_time' ) , 11);
15
- add_filter( 'icegram_message_type_params_popup', array( $this, 'set_admin_style' ) );
16
  }
17
 
18
  function define_settings() {
12
 
13
  $this->popup_default_delay_time = 3;
14
  add_filter( 'icegram_data', array( $this, 'arrange_proper_delay_time' ) , 11);
15
+ add_filter( 'icegram_message_type_params_popup', array( $this, 'set_admin_style' ) );
16
  }
17
 
18
  function define_settings() {
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
5
  Requires at least: 3.9
6
  Tested up to: 4.1.1
7
- Stable tag: 1.8.7
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.8.7 =
157
  Popups now support custom background and text colors. And a handful of fixes!
158
 
@@ -209,6 +212,13 @@ Initial Release
209
 
210
 
211
  == Changelog ==
 
 
 
 
 
 
 
212
  = 1.8.7 =
213
  * New: Can now define custom background and text colors for Popups
214
  * Fix: Button text color not showing well in some themes
4
  Tags: popup, window, hellobar, optin, lead capture, marketing, form, notification, messenger, targeting, monster, ninja
5
  Requires at least: 3.9
6
  Tested up to: 4.1.1
7
+ Stable tag: 1.8.8
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.8.8 =
157
+ Improved short code handling, WishList member compatibility and other fixes.
158
+
159
  = 1.8.7 =
160
  Popups now support custom background and text colors. And a handful of fixes!
161
 
212
 
213
 
214
  == Changelog ==
215
+ = 1.8.8 =
216
+ * New: Headlines now support shortcodes!
217
+ * Update: A message shown on click of another (using CTA actions addon), can now contain shortcodes
218
+ * Fix: Compatibility with Wishlist Member plugin
219
+ * Fix: Popup close event not triggered when clicking outside the popup - on its overlay
220
+ * Update: Automatically adds http:// in CTA links if missing
221
+
222
  = 1.8.7 =
223
  * New: Can now define custom background and text colors for Popups
224
  * Fix: Button text color not showing well in some themes