Version Description
- Update: UI/UX improvements
=
Download this release
Release Info
Developer | Icegram |
Plugin | Popups, Welcome Bar, Optins and Lead Generation Plugin – Icegram |
Version | 2.1.2 |
Comparing to | |
See all releases |
Code changes from version 2.1.1 to 2.1.2
- icegram.php +2 -2
- lite/assets/images/countdown-timer.png +0 -0
- lite/class-icegram.php +34 -12
- lite/classes/ig-upsale-admin.php +13 -3
- readme.txt +7 -4
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: 2.1.
|
7 |
* Tested up to: 5.9.0
|
8 |
* Author: icegram
|
9 |
* Author URI: https://www.icegram.com/
|
@@ -122,7 +122,7 @@ if ( ! defined( 'IG_PLUGIN_FILE' ) ) {
|
|
122 |
}
|
123 |
|
124 |
if ( ! defined( 'IG_PLUGIN_VERSION' ) ) {
|
125 |
-
define( 'IG_PLUGIN_VERSION', '2.1.
|
126 |
}
|
127 |
|
128 |
if ( ! defined( 'IG_PRODUCT_ID' ) ) {
|
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.1.2
|
7 |
* Tested up to: 5.9.0
|
8 |
* Author: icegram
|
9 |
* Author URI: https://www.icegram.com/
|
122 |
}
|
123 |
|
124 |
if ( ! defined( 'IG_PLUGIN_VERSION' ) ) {
|
125 |
+
define( 'IG_PLUGIN_VERSION', '2.1.2' );
|
126 |
}
|
127 |
|
128 |
if ( ! defined( 'IG_PRODUCT_ID' ) ) {
|
lite/assets/images/countdown-timer.png
ADDED
Binary file
|
lite/class-icegram.php
CHANGED
@@ -55,7 +55,8 @@ if ( ! class_exists( 'Icegram' ) ) {
|
|
55 |
add_action( 'icegram_about_changelog', array( &$this, 'klawoo_subscribe_form' ) );
|
56 |
add_action( 'icegram_settings_after', array( &$this, 'icegram_houskeeping' ) );
|
57 |
add_action( 'admin_notices', array( &$this, 'add_admin_notices' ) );
|
58 |
-
add_filter( '
|
|
|
59 |
} else {
|
60 |
add_action( 'wp_footer', array( &$this, 'icegram_load_data' ) );
|
61 |
}
|
@@ -102,17 +103,42 @@ if ( ! class_exists( 'Icegram' ) ) {
|
|
102 |
|
103 |
|
104 |
function ig_plugin_settings_link( $links, $file ) {
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
}
|
111 |
|
112 |
return $links;
|
113 |
|
114 |
}
|
115 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
public function load_compat_classes() {
|
117 |
$compat_classes = (array) glob( $this->plugin_path . '/classes/compat/class-icegram-compat-*.php' );
|
118 |
if ( empty( $compat_classes ) ) {
|
@@ -481,7 +507,7 @@ if ( ! class_exists( 'Icegram' ) ) {
|
|
481 |
public function admin_menus() {
|
482 |
|
483 |
$welcome_page_title = __( 'Welcome to Icegram', 'icegram' );
|
484 |
-
$gallery_page_title = '<span style="color:#f18500;font-weight:bolder;">' . __( 'Gallery', 'icegram' ) . '<span>';
|
485 |
$gallery = add_submenu_page( 'edit.php?post_type=ig_campaign', $gallery_page_title, $gallery_page_title, 'manage_options', 'icegram-gallery', array( $this, 'gallery_screen' ) );
|
486 |
$settings_page_title = __( 'Settings', 'icegram' );
|
487 |
$upgrade_page_title = '<span style="color:#f18500;font-weight:bolder;">' . __( 'Upgrade', 'icegram' ) . '</span>';
|
@@ -1370,7 +1396,7 @@ if ( ! class_exists( 'Icegram' ) ) {
|
|
1370 |
'add_new_item' => __( 'Add New Campaign', 'icegram' ),
|
1371 |
'edit_item' => __( 'Edit Campaign', 'icegram' ),
|
1372 |
'new_item' => __( 'New Campaign', 'icegram' ),
|
1373 |
-
'all_items' => __( 'Campaigns', 'icegram' ),
|
1374 |
'view_item' => __( 'View Campaign', 'icegram' ),
|
1375 |
'search_items' => __( 'Search Campaigns', 'icegram' ),
|
1376 |
'not_found' => __( 'No campaigns found', 'icegram' ),
|
@@ -1701,10 +1727,6 @@ if ( ! class_exists( 'Icegram' ) ) {
|
|
1701 |
display: none;
|
1702 |
}
|
1703 |
|
1704 |
-
/*Remove add new campaign and message*/
|
1705 |
-
.page-title-action {
|
1706 |
-
display: none;
|
1707 |
-
}
|
1708 |
</style>
|
1709 |
<?php
|
1710 |
}
|
55 |
add_action( 'icegram_about_changelog', array( &$this, 'klawoo_subscribe_form' ) );
|
56 |
add_action( 'icegram_settings_after', array( &$this, 'icegram_houskeeping' ) );
|
57 |
add_action( 'admin_notices', array( &$this, 'add_admin_notices' ) );
|
58 |
+
add_filter( 'plugin_action_links_' . plugin_basename( IG_PLUGIN_FILE ), array( $this, 'ig_plugin_settings_link' ), 11, 2 );
|
59 |
+
add_filter( 'plugin_row_meta', array( $this, 'add_plugin_support_links' ), 10, 4 );
|
60 |
} else {
|
61 |
add_action( 'wp_footer', array( &$this, 'icegram_load_data' ) );
|
62 |
}
|
103 |
|
104 |
|
105 |
function ig_plugin_settings_link( $links, $file ) {
|
106 |
+
global $icegram;
|
107 |
+
if ( $file == plugin_basename( IG_PLUGIN_FILE ) ) {
|
108 |
+
|
109 |
+
$campaigns_link = '<a href="edit.php?post_type=ig_campaign">' . __( 'Campaigns', 'icegram' ) . '</a>';
|
110 |
+
$docs_link = '<a href="https://www.icegram.com/knowledgebase_category/icegram/" target="_blank">' . __( 'Docs', 'icegram' ) . '</a>';
|
111 |
+
$premium = '<a style="color:green;font-weight: bold;" href="https://www.icegram.com/pricing/" target="_blank">' . __( 'Go Premium', 'icegram' ) . '</a>';
|
112 |
+
if ( ! $icegram->is_premium_installed() ) {
|
113 |
+
array_unshift( $links, $premium );
|
114 |
+
array_unshift( $links, $docs_link );
|
115 |
+
}
|
116 |
+
|
117 |
+
array_unshift( $links, $campaigns_link );
|
118 |
}
|
119 |
|
120 |
return $links;
|
121 |
|
122 |
}
|
123 |
|
124 |
+
/**
|
125 |
+
* Add additional links under plugins meta on plugins page
|
126 |
+
*
|
127 |
+
* @param array $plugin_meta Plugin meta.
|
128 |
+
* @param string $plugin_file Plugin file.
|
129 |
+
* @param array $plugin_data Plugin's data.
|
130 |
+
* @param string $status Plugin's status.
|
131 |
+
* @return array Plugin meta with additional links.
|
132 |
+
*/
|
133 |
+
function add_plugin_support_links( $plugin_meta, $plugin_file, $plugin_data, $status ) {
|
134 |
+
|
135 |
+
if ( plugin_basename( IG_PLUGIN_FILE ) === $plugin_file ) {
|
136 |
+
$plugin_meta[] = '<a href="https://wordpress.org/support/plugin/icegram/reviews/#new-post" title="' . __( 'Rate Icegram', 'icegram' ) . '" target="_blank">' . __( 'Rate Icegram', 'icegram' ) . '</a>';
|
137 |
+
$plugin_meta[] = '<a href="https://www.icegram.com/contact/" title="' . __( 'Support', 'icegram' ) . ' " target="_blank">' . __( 'Support', 'icegram' ) . '</a>';
|
138 |
+
}
|
139 |
+
return $plugin_meta;
|
140 |
+
}
|
141 |
+
|
142 |
public function load_compat_classes() {
|
143 |
$compat_classes = (array) glob( $this->plugin_path . '/classes/compat/class-icegram-compat-*.php' );
|
144 |
if ( empty( $compat_classes ) ) {
|
507 |
public function admin_menus() {
|
508 |
|
509 |
$welcome_page_title = __( 'Welcome to Icegram', 'icegram' );
|
510 |
+
$gallery_page_title = '<span style="color:#f18500;font-weight:bolder;">' . __( 'Template Gallery', 'icegram' ) . '<span>';
|
511 |
$gallery = add_submenu_page( 'edit.php?post_type=ig_campaign', $gallery_page_title, $gallery_page_title, 'manage_options', 'icegram-gallery', array( $this, 'gallery_screen' ) );
|
512 |
$settings_page_title = __( 'Settings', 'icegram' );
|
513 |
$upgrade_page_title = '<span style="color:#f18500;font-weight:bolder;">' . __( 'Upgrade', 'icegram' ) . '</span>';
|
1396 |
'add_new_item' => __( 'Add New Campaign', 'icegram' ),
|
1397 |
'edit_item' => __( 'Edit Campaign', 'icegram' ),
|
1398 |
'new_item' => __( 'New Campaign', 'icegram' ),
|
1399 |
+
'all_items' => __( 'All Campaigns', 'icegram' ),
|
1400 |
'view_item' => __( 'View Campaign', 'icegram' ),
|
1401 |
'search_items' => __( 'Search Campaigns', 'icegram' ),
|
1402 |
'not_found' => __( 'No campaigns found', 'icegram' ),
|
1727 |
display: none;
|
1728 |
}
|
1729 |
|
|
|
|
|
|
|
|
|
1730 |
</style>
|
1731 |
<?php
|
1732 |
}
|
lite/classes/ig-upsale-admin.php
CHANGED
@@ -15,6 +15,7 @@ if ( ! class_exists( 'Icegram_upsale' ) ) {
|
|
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'));
|
|
|
18 |
}
|
19 |
|
20 |
function add_campaigns_analytics_metaboxes(){
|
@@ -58,19 +59,28 @@ if ( ! class_exists( 'Icegram_upsale' ) ) {
|
|
58 |
function display_bt_upsale( $message_id, $message_data ){
|
59 |
global $icegram;
|
60 |
?>
|
61 |
-
<label class="message_label"><a class="ig_bt_upsale" href="https://www.icegram.com/exit-intent-optins/?utm_source=in_app&utm_medium=exit-intent&utm_campaign=ig_upsell" target="
|
62 |
-
<a class="ig_bt_upsale" href="https://www.icegram.com/exit-intent-optins/?utm_source=in_app&utm_medium=exit-intent&utm_campaign=ig_upsell" target="
|
63 |
<?php
|
64 |
}
|
65 |
|
66 |
function display_cta_upsale( $params ){
|
67 |
global $icegram;
|
68 |
?>
|
69 |
-
<a class="ig_cta_upsale" href="https://www.icegram.com/cta-actions/?utm_source=in_app&utm_medium=cta&utm_campaign=ig_upsell" target="
|
70 |
<?php
|
71 |
return $params;
|
72 |
}
|
73 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
/**
|
75 |
* Check if sale period
|
76 |
*
|
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'));
|
18 |
+
add_action('icegram_additional_campaign_rules', array($this,'display_countdown_timer_upsale'),10,2);
|
19 |
}
|
20 |
|
21 |
function add_campaigns_analytics_metaboxes(){
|
59 |
function display_bt_upsale( $message_id, $message_data ){
|
60 |
global $icegram;
|
61 |
?>
|
62 |
+
<label class="message_label"><a class="ig_bt_upsale" href="https://www.icegram.com/exit-intent-optins/?utm_source=in_app&utm_medium=exit-intent&utm_campaign=ig_upsell" target="_blank"><img src="<?php echo $icegram->plugin_url ?>/assets/images/exit-intent-label.png"/></a></label>
|
63 |
+
<a class="ig_bt_upsale" href="https://www.icegram.com/exit-intent-optins/?utm_source=in_app&utm_medium=exit-intent&utm_campaign=ig_upsell" target="_blank"><img src="<?php echo $icegram->plugin_url ?>/assets/images/exit-intent-feild.png"/></a>
|
64 |
<?php
|
65 |
}
|
66 |
|
67 |
function display_cta_upsale( $params ){
|
68 |
global $icegram;
|
69 |
?>
|
70 |
+
<a class="ig_cta_upsale" href="https://www.icegram.com/cta-actions/?utm_source=in_app&utm_medium=cta&utm_campaign=ig_upsell" target="_blank"><img src="<?php echo $icegram->plugin_url ?>/assets/images/cta-new-tab.png"/></a>
|
71 |
<?php
|
72 |
return $params;
|
73 |
}
|
74 |
|
75 |
+
function display_countdown_timer_upsale( $message_id, $message_data ){
|
76 |
+
global $icegram;
|
77 |
+
?>
|
78 |
+
<div class="options_group">
|
79 |
+
<a class="" href="https://www.icegram.com/pricing/?utm_source=in_app&utm_medium=countdown_timer&utm_campaign=ig_upsell" target="_blank"><img src="<?php echo $icegram->plugin_url ?>/assets/images/countdown-timer.png"/></a>
|
80 |
+
</div>
|
81 |
+
<?php
|
82 |
+
}
|
83 |
+
|
84 |
/**
|
85 |
* Check if sale period
|
86 |
*
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.icegram.com/
|
|
4 |
Tags: popup, optin, hellobar, lead capture, form
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 5.9.0
|
7 |
-
Stable tag: 2.1.
|
8 |
License: GPLv3
|
9 |
|
10 |
The best WordPress popup plugin that lets you create popups and action bars within seconds. Customize exit-intent popup campaigns, action bars, badges, stickies, inline optin, fullscreen overlay, ribbons, sidebar panel and more in no time.
|
@@ -406,7 +406,6 @@ Let’s Socialize: [Facebook Page](https://www.facebook.com/icegram/) | [Twitte
|
|
406 |
|
407 |
[Signup for Free](https://www.icegram.com/?utm_source=repo&utm_medium=wpreadme&utm_campaign=icegram_engage_repo) | [Resources](https://www.icegram.com/blog/?utm_source=repo&utm_medium=wpreadme&utm_campaign=icegram_engage_repo) | [Knowledge Base](https://www.icegram.com/knowledgebase_category/icegram/?utm_source=repo&utm_medium=wpreadme&utm_campaign=icegram_engage_repo) | [Contact Support](https://www.icegram.com/contact/?utm_source=repo&utm_medium=wpreadme&utm_campaign=icegram_engage_repo)
|
408 |
|
409 |
-
WooCommerce.
|
410 |
|
411 |
== Installation ==
|
412 |
|
@@ -459,12 +458,16 @@ Contact Us, provide as much detail of the problem as you can. We will try to sol
|
|
459 |
|
460 |
== Upgrade Notice ==
|
461 |
|
462 |
-
= 2.1.
|
463 |
|
464 |
-
* Update: UI/UX
|
465 |
|
466 |
== Changelog ==
|
467 |
|
|
|
|
|
|
|
|
|
468 |
**2.1.1 (01.02.2022)**
|
469 |
|
470 |
* Update: UI/UX improvement for countdown timer [PRO]
|
4 |
Tags: popup, optin, hellobar, lead capture, form
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 5.9.0
|
7 |
+
Stable tag: 2.1.2
|
8 |
License: GPLv3
|
9 |
|
10 |
The best WordPress popup plugin that lets you create popups and action bars within seconds. Customize exit-intent popup campaigns, action bars, badges, stickies, inline optin, fullscreen overlay, ribbons, sidebar panel and more in no time.
|
406 |
|
407 |
[Signup for Free](https://www.icegram.com/?utm_source=repo&utm_medium=wpreadme&utm_campaign=icegram_engage_repo) | [Resources](https://www.icegram.com/blog/?utm_source=repo&utm_medium=wpreadme&utm_campaign=icegram_engage_repo) | [Knowledge Base](https://www.icegram.com/knowledgebase_category/icegram/?utm_source=repo&utm_medium=wpreadme&utm_campaign=icegram_engage_repo) | [Contact Support](https://www.icegram.com/contact/?utm_source=repo&utm_medium=wpreadme&utm_campaign=icegram_engage_repo)
|
408 |
|
|
|
409 |
|
410 |
== Installation ==
|
411 |
|
458 |
|
459 |
== Upgrade Notice ==
|
460 |
|
461 |
+
= 2.1.2 =
|
462 |
|
463 |
+
* Update: UI/UX improvements
|
464 |
|
465 |
== Changelog ==
|
466 |
|
467 |
+
**2.1.2 (04.02.2022)**
|
468 |
+
|
469 |
+
* Update: UI/UX improvements
|
470 |
+
|
471 |
**2.1.1 (01.02.2022)**
|
472 |
|
473 |
* Update: UI/UX improvement for countdown timer [PRO]
|