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

Version Description

Improvements in styling, form embeds and retargeting.

Download this release

Release Info

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

Code changes from version 1.6 to 1.7

assets/js/admin.js CHANGED
@@ -166,8 +166,8 @@ jQuery(function() {
166
  var el_obj = jQuery(form_el);
167
  var el_group = jQuery('<li class="ig_form_el_group"></li>');
168
  el_obj.removeAttr('class').removeAttr('style');
169
- // For now : we are hiding fields with tabindex -1
170
- if(el_obj.attr('tabindex') == -1){
171
  el_obj.addClass('ig_detected_bot_fields');
172
  el_count--;
173
  }
@@ -234,6 +234,7 @@ jQuery(function() {
234
  .find('input, select, textarea')
235
  .not('input[type=submit]')
236
  .not('input[type=radio]')
 
237
  .parent()
238
  .css('width', li_width + '%' );
239
  form_container
166
  var el_obj = jQuery(form_el);
167
  var el_group = jQuery('<li class="ig_form_el_group"></li>');
168
  el_obj.removeAttr('class').removeAttr('style');
169
+ // For now : we are hiding fields with tabindex -1 and hidden fields
170
+ if(el_obj.attr('tabindex') == -1 || el_obj.attr('type') == 'hidden'){
171
  el_obj.addClass('ig_detected_bot_fields');
172
  el_count--;
173
  }
234
  .find('input, select, textarea')
235
  .not('input[type=submit]')
236
  .not('input[type=radio]')
237
+ .not('input[type=hidden]')
238
  .parent()
239
  .css('width', li_width + '%' );
240
  form_container
assets/js/icegram.js CHANGED
@@ -60,7 +60,7 @@
60
  window.icegram.submit_tracking_data();
61
  }
62
  } );
63
- setTimeout( function() {
64
  if (typeof(window.icegram.submit_tracking_data) === 'function') {
65
  window.icegram.submit_tracking_data();
66
  } } , 5 * 1000 );
@@ -137,16 +137,18 @@
137
  async: false,
138
  data: {
139
  action: 'icegram_event_track',
140
- event_data: this.tracking_data
141
  },
142
  success: function(data, status, xhr) {
143
- window.icegram.tracking_data = [];
144
  }
145
  });
 
146
  }
147
  }
148
 
149
 
 
 
150
  /**
151
  * Icegram Message Type - Base class
152
  **/
60
  window.icegram.submit_tracking_data();
61
  }
62
  } );
63
+ setInterval( function() {
64
  if (typeof(window.icegram.submit_tracking_data) === 'function') {
65
  window.icegram.submit_tracking_data();
66
  } } , 5 * 1000 );
137
  async: false,
138
  data: {
139
  action: 'icegram_event_track',
140
+ event_data: jQuery.extend(true, {}, this.tracking_data)
141
  },
142
  success: function(data, status, xhr) {
 
143
  }
144
  });
145
+ this.tracking_data = [];
146
  }
147
  }
148
 
149
 
150
+
151
+
152
  /**
153
  * Icegram Message Type - Base class
154
  **/
classes/class-icegram-campaign.php CHANGED
@@ -116,6 +116,7 @@ if ( !class_exists( 'Icegram_Campaign' ) ) {
116
 
117
  function _is_valid_page( $campaign_valid, $campaign, $options ) {
118
  $page_id = Icegram::get_current_page_id();
 
119
  if( !$campaign_valid || !empty($options['skip_page_check']) ) {
120
  return $campaign_valid;
121
  }
116
 
117
  function _is_valid_page( $campaign_valid, $campaign, $options ) {
118
  $page_id = Icegram::get_current_page_id();
119
+
120
  if( !$campaign_valid || !empty($options['skip_page_check']) ) {
121
  return $campaign_valid;
122
  }
classes/class-icegram-message-admin.php CHANGED
@@ -451,7 +451,8 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
451
  }
452
  $type = ucwords( str_replace( "-", ' ', $message_data['type'] ) );
453
  $theme = ucwords( str_replace( "-", ' ', $message_data['theme'] ) );
454
- $bg_img = $icegram->message_types[$message_data['type']]['baseurl'] . "themes/" . $message_data['theme'] . ".png";
 
455
 
456
  switch ($column) {
457
  case 'message_type':
451
  }
452
  $type = ucwords( str_replace( "-", ' ', $message_data['type'] ) );
453
  $theme = ucwords( str_replace( "-", ' ', $message_data['theme'] ) );
454
+
455
+ $bg_img = $icegram->message_types[ $message_data['type'] ]['themes'][ $message_data['theme'] ]['baseurl'] . $message_data['theme'] . ".png";
456
 
457
  switch ($column) {
458
  case 'message_type':
classes/class-icegram-message-type.php CHANGED
@@ -58,8 +58,8 @@ abstract class Icegram_Message_Type {
58
  $themes[ $theme ] = array(
59
  'name' => ucwords( str_replace( "-", ' ', $theme ) ),
60
  'type' => $theme,
61
- 'basedir' => $this->basedir . '/themes/',
62
- 'baseurl' => $this->baseurl . '/themes/'
63
  );
64
  }
65
  }
58
  $themes[ $theme ] = array(
59
  'name' => ucwords( str_replace( "-", ' ', $theme ) ),
60
  'type' => $theme,
61
+ 'basedir' => $this->basedir . 'themes/',
62
+ 'baseurl' => $this->baseurl . 'themes/'
63
  );
64
  }
65
  }
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.6
7
  * Author: Icegram
8
  * Author URI: http://www.icegram.com/
9
  *
@@ -33,7 +33,7 @@ class Icegram {
33
 
34
  function __construct() {
35
 
36
- $this->version = "1.6";
37
  $this->shortcode_instances = array();
38
  $this->plugin_url = untrailingslashit( plugins_url( '/', __FILE__ ) );
39
  $this->plugin_path = untrailingslashit( plugin_dir_path( __FILE__ ) );
@@ -504,6 +504,7 @@ class Icegram {
504
  if( !is_array( $message_data ) || empty( $message_data ) ) {
505
  continue;
506
  }
 
507
  // Don't show a seen message again - if needed
508
  if( !empty( $message_data['id'] ) &&
509
  empty( $_GET['campaign_preview_id'] ) &&
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.7
7
  * Author: Icegram
8
  * Author URI: http://www.icegram.com/
9
  *
33
 
34
  function __construct() {
35
 
36
+ $this->version = "1.7";
37
  $this->shortcode_instances = array();
38
  $this->plugin_url = untrailingslashit( plugins_url( '/', __FILE__ ) );
39
  $this->plugin_path = untrailingslashit( plugin_dir_path( __FILE__ ) );
504
  if( !is_array( $message_data ) || empty( $message_data ) ) {
505
  continue;
506
  }
507
+
508
  // Don't show a seen message again - if needed
509
  if( !empty( $message_data['id'] ) &&
510
  empty( $_GET['campaign_preview_id'] ) &&
message-types/action-bar/main.js CHANGED
@@ -33,6 +33,10 @@ Icegram_Message_Type_Action_Bar.prototype.post_render = function ( ) {
33
  if( this.data.theme == 'hello' ) {
34
  var message_button = this.el.find('.ig_button');
35
  this.el.find('.ig_data').append(message_button);
 
 
 
 
36
  }
37
  };
38
 
33
  if( this.data.theme == 'hello' ) {
34
  var message_button = this.el.find('.ig_button');
35
  this.el.find('.ig_data').append(message_button);
36
+ // Temp Fix for verticle alignment of element in Hello Theme
37
+ if(this.el.find('.ig_embed_form').get(0)){
38
+ this.el.find('.ig_data').addClass('ig_valign_form_fix');
39
+ }
40
  }
41
  };
42
 
message-types/action-bar/themes/air-mail.css CHANGED
@@ -54,10 +54,9 @@
54
  width: 50px;
55
  }
56
 
57
- .action_bar.air-mail .ig_data {
58
- max-width: 75%;
59
- display: inline-block;
60
- float: left;
61
  }
62
 
63
  .action_bar.air-mail input[type="submit"],
@@ -91,8 +90,14 @@
91
  .action_bar.air-mail .ig_button:active{
92
  }
93
 
 
 
 
 
 
 
94
  .action_bar.air-mail .ig_close {
95
- background: url(../../images/chosen-sprite.png) no-repeat -43px 0;
96
  height: 10px;
97
  width: 10px;
98
  -moz-box-sizing: content-box;
54
  width: 50px;
55
  }
56
 
57
+ .action_bar.air-mail .ig_button{
58
+ float: right;
59
+ margin-right: 1em !important;
 
60
  }
61
 
62
  .action_bar.air-mail input[type="submit"],
90
  .action_bar.air-mail .ig_button:active{
91
  }
92
 
93
+ .action_bar.air-mail .ig_data {
94
+ max-width: 75%;
95
+ display: inline-block;
96
+ float: left;
97
+ }
98
+
99
  .action_bar.air-mail .ig_close {
100
+ background: url(../images/chosen-sprite.png) no-repeat -43px 0;
101
  height: 10px;
102
  width: 10px;
103
  -moz-box-sizing: content-box;
message-types/action-bar/themes/bold.css CHANGED
@@ -70,6 +70,12 @@
70
  box-shadow: none;
71
  }
72
 
 
 
 
 
 
 
73
  .action_bar.bold .ig_arrow_block.border {
74
  border: 3px solid #fff;
75
  -moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.35);
70
  box-shadow: none;
71
  }
72
 
73
+ .action_bar.bold .ig_button{
74
+ float: right;
75
+ margin-right: 1em !important;
76
+ margin-bottom: .5em;
77
+ }
78
+
79
  .action_bar.bold .ig_arrow_block.border {
80
  border: 3px solid #fff;
81
  -moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.35);
message-types/action-bar/themes/hello.css CHANGED
@@ -19,7 +19,7 @@
19
  }
20
 
21
  .action_bar.hello .ig_content {
22
- padding: .3em;
23
  }
24
 
25
  .action_bar.hello .ig_content p {
@@ -47,10 +47,15 @@
47
  text-align: center;
48
  }
49
 
 
 
 
 
 
50
  .action_bar.hello .ig_button,
51
  .action_bar.hello input[type="submit"],
52
  .action_bar.hello input[type="button"] {
53
- display: inline;
54
  background: #4A4844 !important;
55
  background: linear-gradient(top, #4A4844 0%, #2D2C29 100%) !important;
56
  background: -moz-linear-gradient(top, #4A4844 0%, #2D2C29 100%) !important;
@@ -71,7 +76,7 @@
71
  font-size: 1em;
72
  margin: 4px 0 0 10px;
73
  padding: .25em 1em;
74
- vertical-align: text-bottom;
75
  }
76
 
77
  .action_bar.hello .ig_button:hover,
@@ -84,6 +89,21 @@
84
  opacity: 0.8;
85
  }
86
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  .action_bar.hello .ig_arrow_block.border {
88
  border: 3px solid #fff;
89
  -moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.35);
19
  }
20
 
21
  .action_bar.hello .ig_content {
22
+ padding: .5em;
23
  }
24
 
25
  .action_bar.hello .ig_content p {
47
  text-align: center;
48
  }
49
 
50
+ .action_bar.hello .ig_embed_form input[type="submit"],
51
+ .action_bar.hello .ig_embed_form input[type="button"]{
52
+ line-height: 1.5em;
53
+ }
54
+
55
  .action_bar.hello .ig_button,
56
  .action_bar.hello input[type="submit"],
57
  .action_bar.hello input[type="button"] {
58
+ display: inline-block;
59
  background: #4A4844 !important;
60
  background: linear-gradient(top, #4A4844 0%, #2D2C29 100%) !important;
61
  background: -moz-linear-gradient(top, #4A4844 0%, #2D2C29 100%) !important;
76
  font-size: 1em;
77
  margin: 4px 0 0 10px;
78
  padding: .25em 1em;
79
+ /*vertical-align: text-bottom;*/
80
  }
81
 
82
  .action_bar.hello .ig_button:hover,
89
  opacity: 0.8;
90
  }
91
 
92
+ /***** Temp Fix for verticle alignment: start ****/
93
+ .action_bar.hello .ig_embed_form{
94
+ position: relative;
95
+ bottom: -1.2em;
96
+ }
97
+
98
+ .action_bar.hello .ig_valign_form_fix{
99
+ position: relative;
100
+ bottom: .5em;
101
+ }
102
+ .action_bar.hello .ig_valign_form_fix .ig_button{
103
+ margin: 10px 0 0 10px;
104
+ }
105
+ /***** End ****/
106
+
107
  .action_bar.hello .ig_arrow_block.border {
108
  border: 3px solid #fff;
109
  -moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.35);
message-types/action-bar/themes/solid.css CHANGED
@@ -32,7 +32,9 @@
32
  float: left;
33
  }
34
 
35
- .action_bar.solid .ig_button, .action_bar.solid input[type="submit"], .action_bar.solid input[type="button"] {
 
 
36
  display: inline-block;
37
  font-size: 1em;
38
  letter-spacing: .1em;
@@ -44,6 +46,10 @@
44
  padding: .6em 2em;
45
  }
46
 
 
 
 
 
47
  .action_bar.solid .ig_button:hover, .action_bar.solid input[type="submit"]:hover, .action_bar.solid input[type="button"]:hover {
48
  -moz-box-shadow: inset 0 -4em 0 rgba(255, 255, 255, 0.15);
49
  -webkit-box-shadow: inset 0 -4em 0 rgba(255, 255, 255, 0.15);
32
  float: left;
33
  }
34
 
35
+ .action_bar.solid .ig_button,
36
+ .action_bar.solid input[type="submit"],
37
+ .action_bar.solid input[type="button"] {
38
  display: inline-block;
39
  font-size: 1em;
40
  letter-spacing: .1em;
46
  padding: .6em 2em;
47
  }
48
 
49
+ .action_bar.solid .ig_button{
50
+ float: right;
51
+ margin-right: 1em !important;
52
+ }
53
  .action_bar.solid .ig_button:hover, .action_bar.solid input[type="submit"]:hover, .action_bar.solid input[type="button"]:hover {
54
  -moz-box-shadow: inset 0 -4em 0 rgba(255, 255, 255, 0.15);
55
  -webkit-box-shadow: inset 0 -4em 0 rgba(255, 255, 255, 0.15);
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.0
7
- Stable tag: 1.6
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -12,9 +12,9 @@ Popup windows, floating action bars, messengers, toast notifications and more. C
12
 
13
  == Description ==
14
 
15
- **The Ultimate Plugin To Capture Leads And Connect With Your Audience**
16
 
17
- Decrease bounce rates, increase engagement and grab your visitors' attention with this unique marketing plugin.
18
 
19
  Most similar plugins are paid and still offer a lot less. Icegram is full featured, easy to use, and still free!
20
 
@@ -145,6 +145,9 @@ Contact Us, provide as much detail of the problem as you can. We will try to sol
145
  3. Editing an Icegram campaign - add multiple messages, edit them, targeting rules, full HTML editor, themes and more
146
 
147
  == Upgrade Notice ==
 
 
 
148
  = 1.6 =
149
  Improvements in optin form embedding, bug fixes and more. Required update.
150
 
@@ -171,6 +174,13 @@ Initial Release
171
 
172
 
173
  == Changelog ==
 
 
 
 
 
 
 
174
  = 1.6 =
175
  * Fix: Empty image tag causing display issues in Opera / IE
176
  * Update: Form embed functionality improvements
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.0
7
+ Stable tag: 1.7
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
12
 
13
  == Description ==
14
 
15
+ The Ultimate Plugin To Capture Leads And Connect With Your Audience
16
 
17
+ **Decrease bounce rates, increase engagement and grab your visitors' attention with this unique marketing plugin.**
18
 
19
  Most similar plugins are paid and still offer a lot less. Icegram is full featured, easy to use, and still free!
20
 
145
  3. Editing an Icegram campaign - add multiple messages, edit them, targeting rules, full HTML editor, themes and more
146
 
147
  == Upgrade Notice ==
148
+ = 1.7 =
149
+ Improvements in styling, form embeds and retargeting.
150
+
151
  = 1.6 =
152
  Improvements in optin form embedding, bug fixes and more. Required update.
153
 
174
 
175
 
176
  == Changelog ==
177
+ = 1.7 =
178
+ * Update: Styling changes to action bar CTA button for alignment
179
+ * Update: Hello Bar styling updates to better handle forms
180
+ * Fix: Hidden field related issue while embeding subscription forms
181
+ * Fix: Retargeting not working correctly in certain cases
182
+ * Fix: Theme thumbnails missing on messages list
183
+
184
  = 1.6 =
185
  * Fix: Empty image tag causing display issues in Opera / IE
186
  * Update: Form embed functionality improvements