Version Description
Revised Gallery Templates
Download this release
Release Info
Developer | Icegram |
Plugin | Popups, Welcome Bar, Optins and Lead Generation Plugin – Icegram |
Version | 1.10.9 |
Comparing to | |
See all releases |
Code changes from version 1.10.8 to 1.10.9
- about-icegram.php +1 -1
- assets/images/ig-growth-rocket_2.png +0 -0
- gallery.php +1 -1
- icegram.php +88 -47
- ig-survey.php +353 -0
- readme.txt +9 -3
about-icegram.php
CHANGED
@@ -10,7 +10,7 @@ add_action( 'admin_footer', 'icegram_support_ticket_content' );
|
|
10 |
|
11 |
function icegram_support_ticket_content() {
|
12 |
global $current_user, $pagenow, $typenow, $icegram;
|
13 |
-
|
14 |
if ( $pagenow != 'edit.php' ) return;
|
15 |
if ( $typenow != 'ig_campaign') return;
|
16 |
if ( !( $current_user instanceof WP_User ) || !current_user_can( 'manage_options' )) return;
|
10 |
|
11 |
function icegram_support_ticket_content() {
|
12 |
global $current_user, $pagenow, $typenow, $icegram;
|
13 |
+
$headers = '';
|
14 |
if ( $pagenow != 'edit.php' ) return;
|
15 |
if ( $typenow != 'ig_campaign') return;
|
16 |
if ( !( $current_user instanceof WP_User ) || !current_user_can( 'manage_options' )) return;
|
assets/images/ig-growth-rocket_2.png
ADDED
Binary file
|
gallery.php
CHANGED
@@ -120,7 +120,7 @@
|
|
120 |
<div class="theme-version"><?php printf( __( 'Version: %s' ), '{{ data.version }}' ); ?></div> -->
|
121 |
<div class="theme-description">{{{ data.description }}}</div>
|
122 |
<!-- <div class="theme-info">Liked this template? <br/>Here's how you can customize it further </div> -->
|
123 |
-
<div class="theme-info" style="padding:0.2em"><?php _e( 'Want to personalize this template to fit your brand?', 'icegram' );?><br/> <a href="https://www.icegram.com/documentation/customize-icegrams-gallery-templates/?utm_source=ig_gallery&utm_medium=ig_inapp_promo&utm_campaign=ig_custom_css" target="_blank" class="
|
124 |
</div>
|
125 |
</div>
|
126 |
</div>
|
120 |
<div class="theme-version"><?php printf( __( 'Version: %s' ), '{{ data.version }}' ); ?></div> -->
|
121 |
<div class="theme-description">{{{ data.description }}}</div>
|
122 |
<!-- <div class="theme-info">Liked this template? <br/>Here's how you can customize it further </div> -->
|
123 |
+
<div class="theme-info" style="padding:0.2em"><?php _e( 'Want to personalize this template to fit your brand?', 'icegram' );?><br/> <a href="https://www.icegram.com/documentation/customize-icegrams-gallery-templates/?utm_source=ig_gallery&utm_medium=ig_inapp_promo&utm_campaign=ig_custom_css" target="_blank" class="" style="margin-top:0.4em"><?php _e( 'Personalize It Now' , 'icegram'); ?></a></div>
|
124 |
</div>
|
125 |
</div>
|
126 |
</div>
|
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
|
@@ -34,7 +34,7 @@ class Icegram {
|
|
34 |
|
35 |
function __construct() {
|
36 |
|
37 |
-
$this->version = "1.10.
|
38 |
$this->shortcode_instances = array();
|
39 |
$this->mode = 'local';
|
40 |
$this->plugin_url = untrailingslashit( plugins_url( '/', __FILE__ ) );
|
@@ -87,6 +87,7 @@ class Icegram {
|
|
87 |
add_filter( 'rainmaker_validate_request', array(&$this,'form_submission_validate_request'), 10, 2);
|
88 |
add_filter( 'icegram_data', array( $this, 'two_step_mobile_popup' ), 100, 1);
|
89 |
|
|
|
90 |
|
91 |
if ( defined( 'DOING_AJAX' ) ) {
|
92 |
if($this->cache_compatibility === 'yes'){
|
@@ -151,50 +152,9 @@ class Icegram {
|
|
151 |
$screen = get_current_screen();
|
152 |
if ( !in_array( $screen->id, array( 'ig_campaign', 'ig_message','edit-ig_message','edit-ig_campaign' ), true ) ) return;
|
153 |
$active_plugins = get_option( 'active_plugins', array() );
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
border-left: 4px solid #7bcf3a;
|
158 |
-
padding: 1px 12px;
|
159 |
-
background-color: #FFF;
|
160 |
-
-webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
|
161 |
-
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
|
162 |
-
margin: 15px 20px 10px 6px;
|
163 |
-
}
|
164 |
-
a.ig-admin-btn{
|
165 |
-
margin-left: 10px;
|
166 |
-
padding: 4px 8px;
|
167 |
-
position: relative;
|
168 |
-
text-decoration: none;
|
169 |
-
border: none;
|
170 |
-
-webkit-border-radius: 2px;
|
171 |
-
border-radius: 2px;
|
172 |
-
background: #e0e0e0;
|
173 |
-
text-shadow: none;
|
174 |
-
font-weight: 600;
|
175 |
-
font-size: 13px;
|
176 |
-
}
|
177 |
-
a.ig-admin-btn-secondary{
|
178 |
-
background: #fafafa;
|
179 |
-
margin-left: 20px;
|
180 |
-
font-weight: 400;
|
181 |
-
}
|
182 |
-
|
183 |
-
a.ig-admin-btn:hover{
|
184 |
-
color: #FFF;
|
185 |
-
background-color: #363b3f;
|
186 |
-
}
|
187 |
-
</style>
|
188 |
-
<?php
|
189 |
-
//Admin notice for Rainmaker
|
190 |
-
$admin_notice_for_rm = '';
|
191 |
-
if(current_user_can('install_plugins') && !in_array('icegram-rainmaker/icegram-rainmaker.php', $active_plugins) && !get_option('ig_rm_notice_icegram')){
|
192 |
-
$url = wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=' . 'icegram-rainmaker'), 'install-plugin_' . 'icegram-rainmaker');
|
193 |
-
$admin_notice_text_for_rm = "Icegram recommends <b>Rainmaker</b>";
|
194 |
-
echo '<div class="notice notice-warning"> <p> '.$admin_notice_text_for_rm.'<a style="display:inline-block" class="ig-admin-btn" href="'.$url.'">'.__('Begin installation','icegram').'</a><a style="display:inline-block" class="ig-admin-btn ig-admin-btn-secondary" href="?dismiss_admin_notice=1&option_name=ig_rm_notice">'.__('No, I don\'t need it', 'icegram').'</a></p></div>';
|
195 |
-
}
|
196 |
-
|
197 |
-
|
198 |
}
|
199 |
public function dismiss_admin_notice(){
|
200 |
if(isset($_GET['dismiss_admin_notice']) && $_GET['dismiss_admin_notice'] == '1' && isset($_GET['option_name'])){
|
@@ -460,7 +420,7 @@ class Icegram {
|
|
460 |
$this->db_update();
|
461 |
// Bail if no activation redirect transient is set
|
462 |
if ( false === get_option( '_icegram_activation_redirect' ) )
|
463 |
-
return;
|
464 |
|
465 |
// Delete the redirect transient
|
466 |
delete_option( '_icegram_activation_redirect' );
|
@@ -1694,6 +1654,87 @@ class Icegram {
|
|
1694 |
}
|
1695 |
return $request_data;
|
1696 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1697 |
}
|
1698 |
|
1699 |
|
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.9
|
7 |
* Author: icegram
|
8 |
* Author URI: https://www.icegram.com/
|
9 |
* Copyright (c) 2014-16 Icegram
|
34 |
|
35 |
function __construct() {
|
36 |
|
37 |
+
$this->version = "1.10.9";
|
38 |
$this->shortcode_instances = array();
|
39 |
$this->mode = 'local';
|
40 |
$this->plugin_url = untrailingslashit( plugins_url( '/', __FILE__ ) );
|
87 |
add_filter( 'rainmaker_validate_request', array(&$this,'form_submission_validate_request'), 10, 2);
|
88 |
add_filter( 'icegram_data', array( $this, 'two_step_mobile_popup' ), 100, 1);
|
89 |
|
90 |
+
add_action ( 'wp_ajax_ig_submit_survey', array(&$this,'ig_submit_survey' ));
|
91 |
|
92 |
if ( defined( 'DOING_AJAX' ) ) {
|
93 |
if($this->cache_compatibility === 'yes'){
|
152 |
$screen = get_current_screen();
|
153 |
if ( !in_array( $screen->id, array( 'ig_campaign', 'ig_message','edit-ig_message','edit-ig_campaign' ), true ) ) return;
|
154 |
$active_plugins = get_option( 'active_plugins', array() );
|
155 |
+
include_once('ig-survey.php');
|
156 |
+
?>
|
157 |
+
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
}
|
159 |
public function dismiss_admin_notice(){
|
160 |
if(isset($_GET['dismiss_admin_notice']) && $_GET['dismiss_admin_notice'] == '1' && isset($_GET['option_name'])){
|
420 |
$this->db_update();
|
421 |
// Bail if no activation redirect transient is set
|
422 |
if ( false === get_option( '_icegram_activation_redirect' ) )
|
423 |
+
return;
|
424 |
|
425 |
// Delete the redirect transient
|
426 |
delete_option( '_icegram_activation_redirect' );
|
1654 |
}
|
1655 |
return $request_data;
|
1656 |
}
|
1657 |
+
|
1658 |
+
public static function ig_get_survey_data(){
|
1659 |
+
global $wpdb;
|
1660 |
+
$ig_survey_data = array();
|
1661 |
+
// active plugin on site
|
1662 |
+
$active_plugins = (array) get_option('active_plugins', array());
|
1663 |
+
if (is_multisite()) {
|
1664 |
+
$active_plugins = array_merge($active_plugins, get_site_option('active_sitewide_plugins', array()));
|
1665 |
+
}
|
1666 |
+
$active_plugins = array_unique( array_merge( array_values($active_plugins), array_keys($active_plugins)) );
|
1667 |
+
$ig_survey_data['ig_plan'] = (!empty(get_option('ig_engage_plan'))) ? get_option('ig_engage_plan') : false;
|
1668 |
+
$ig_survey_data['ig_is_rm'] = (in_array('icegram-rainmaker/icegram-rainmaker.php', $active_plugins)) ? true : false;
|
1669 |
+
$ig_survey_data['ig_is_es'] = (in_array('email-subscribers/email-subscribers.php', $active_plugins)) ? true : false;
|
1670 |
+
|
1671 |
+
$timezone_format = _x('Y-m-d', 'timezone date format');
|
1672 |
+
$ig_current_date = date_i18n($timezone_format);
|
1673 |
+
$sql = "SELECT COUNT(id) AS count_id,
|
1674 |
+
month_post_date,
|
1675 |
+
year_post_date,
|
1676 |
+
max(post_date) as max_post_date,
|
1677 |
+
max(post_modified) as max_post_modified
|
1678 |
+
FROM (SELECT ID, MONTH(post_date) as month_post_date, YEAR(post_date) as year_post_date, post_date, post_modified FROM `wp_posts` WHERE `post_type` = 'ig_campaign') as temp
|
1679 |
+
GROUP BY month_post_date, year_post_date
|
1680 |
+
order by year_post_date DESC, month_post_date DESC";
|
1681 |
+
$result = $wpdb->get_results( $sql, ARRAY_A );
|
1682 |
+
|
1683 |
+
$ig_survey_data['ig_draft_campaign'] = wp_count_posts('ig_campaign')->draft;
|
1684 |
+
$ig_survey_data['ig_published_campaign'] = wp_count_posts('ig_campaign')->publish;
|
1685 |
+
$ig_survey_data['ig_last_modified_campaign'] = $result[0]['max_post_modified'];
|
1686 |
+
$ig_survey_data['ig_last_publish_campaign'] = $result[0]['max_post_date'];
|
1687 |
+
|
1688 |
+
return $ig_survey_data;
|
1689 |
+
}
|
1690 |
+
|
1691 |
+
//Function for submitting the sm survey data
|
1692 |
+
function ig_submit_survey() {
|
1693 |
+
$url = 'https://www.icegram.com/wp-admin/admin-ajax.php';
|
1694 |
+
|
1695 |
+
if( !empty($_POST['btn-val']) && $_POST['btn-val'] == 'no' ) {
|
1696 |
+
update_option('ig_survey_done', true);
|
1697 |
+
exit();
|
1698 |
+
}
|
1699 |
+
if( !empty( $_POST ) ) {
|
1700 |
+
$params = $_POST;
|
1701 |
+
$params['domain'] = home_url();
|
1702 |
+
$params['action'] = 'submit_survey';
|
1703 |
+
} else {
|
1704 |
+
exit();
|
1705 |
+
}
|
1706 |
+
|
1707 |
+
$method = 'POST';
|
1708 |
+
$qs = http_build_query( $params );
|
1709 |
+
$options = array(
|
1710 |
+
'timeout' => 15,
|
1711 |
+
'method' => $method
|
1712 |
+
);
|
1713 |
+
|
1714 |
+
if ( $method == 'POST' ) {
|
1715 |
+
$options['body'] = $qs;
|
1716 |
+
} else {
|
1717 |
+
if ( strpos( $url, '?' ) !== false ) {
|
1718 |
+
$url .= '&'.$qs;
|
1719 |
+
} else {
|
1720 |
+
$url .= '?'.$qs;
|
1721 |
+
}
|
1722 |
+
}
|
1723 |
+
|
1724 |
+
$response = wp_remote_request( $url, $options );
|
1725 |
+
if ( wp_remote_retrieve_response_code( $response ) == 200 ) {
|
1726 |
+
$data = json_decode($response['body'], true);
|
1727 |
+
|
1728 |
+
if ( empty($data['error']) ) {
|
1729 |
+
if(!empty($data) && !empty($data['success'])){
|
1730 |
+
update_option('ig_survey_done', true);
|
1731 |
+
}
|
1732 |
+
echo ( json_encode($data) );
|
1733 |
+
exit();
|
1734 |
+
}
|
1735 |
+
}
|
1736 |
+
exit();
|
1737 |
+
}
|
1738 |
}
|
1739 |
|
1740 |
|
ig-survey.php
ADDED
@@ -0,0 +1,353 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if(!defined('IG_SURVEY_TDOMAIN')) define('IG_SURVEY_TDOMAIN', 'icegram');
|
3 |
+
$ig_data = Icegram::ig_get_survey_data();
|
4 |
+
|
5 |
+
$screen = get_current_screen();
|
6 |
+
if ( !in_array( $screen->id, array( 'ig_campaign', 'ig_message','edit-ig_message','edit-ig_campaign' ), true ) ) return;
|
7 |
+
if( get_option('ig_survey_done') == 1 ) return;
|
8 |
+
$timezone_format = _x('Y-m-d H:m:s', 'timezone date format');
|
9 |
+
$ig_current_date = date_i18n($timezone_format);
|
10 |
+
$ig_update_date = get_option('ig_update_v_1_10_9_date');
|
11 |
+
|
12 |
+
if ( $ig_update_date === false ) {
|
13 |
+
$ig_update_date = $ig_current_date;
|
14 |
+
add_option('ig_update_v_1_10_9_date',$ig_update_date);
|
15 |
+
}
|
16 |
+
|
17 |
+
$date_diff = floor( ( strtotime($ig_current_date) - strtotime($ig_update_date) ) / (3600 * 24) );
|
18 |
+
if($date_diff < 5) return;
|
19 |
+
|
20 |
+
$home_url = home_url();
|
21 |
+
$strlen = strlen($home_url);
|
22 |
+
$res = $strlen%10;
|
23 |
+
if( $res != 1 ){
|
24 |
+
return;
|
25 |
+
}
|
26 |
+
$publish_days_diff = human_time_diff(strtotime($ig_data['ig_last_publish_campaign']),strtotime($ig_current_date));
|
27 |
+
$edit_days_diff = human_time_diff(strtotime($ig_data['ig_last_modified_campaign']),strtotime($ig_current_date));
|
28 |
+
?>
|
29 |
+
<style type="text/css">
|
30 |
+
a.ig-admin-btn {
|
31 |
+
margin-left: 10px;
|
32 |
+
padding: 4px 8px;
|
33 |
+
position: relative;
|
34 |
+
text-decoration: none;
|
35 |
+
border: none;
|
36 |
+
-webkit-border-radius: 2px;
|
37 |
+
border-radius: 2px;
|
38 |
+
background: #e0e0e0;
|
39 |
+
text-shadow: none;
|
40 |
+
font-weight: 600;
|
41 |
+
font-size: 13px;
|
42 |
+
}
|
43 |
+
a.ig-admin-btn-secondary {
|
44 |
+
background: #fafafa;
|
45 |
+
margin-left: 20px;
|
46 |
+
font-weight: 400;
|
47 |
+
}
|
48 |
+
|
49 |
+
a.ig-admin-btn:hover {
|
50 |
+
color: #FFF;
|
51 |
+
background-color: #363b3f;
|
52 |
+
}
|
53 |
+
.ig-form-container .ig-form-field {
|
54 |
+
display: inline-block;
|
55 |
+
}
|
56 |
+
.ig-form-container .ig-form-field:not(:first-child) {
|
57 |
+
margin-left: 4%;
|
58 |
+
}
|
59 |
+
.ig-form-container {
|
60 |
+
background-color: rgb(0, 115, 130) !important;
|
61 |
+
/*background-color: rgb(2, 157, 177) !important;*/
|
62 |
+
border-radius: 0.618em;
|
63 |
+
margin-top: 1%;
|
64 |
+
padding: 1em 1em 0.5em 1em;
|
65 |
+
box-shadow: 0 0 7px 0 rgba(0, 0, 0, .2);
|
66 |
+
color: #FFF;
|
67 |
+
font-size: 1.1em;
|
68 |
+
height: 17em;
|
69 |
+
}
|
70 |
+
.ig-form-wrapper {
|
71 |
+
margin-bottom:0.4em;
|
72 |
+
}
|
73 |
+
.ig-form-headline div.ig-mainheadline {
|
74 |
+
font-weight: bold;
|
75 |
+
font-size: 1.618em;
|
76 |
+
line-height: 1.8em;
|
77 |
+
}
|
78 |
+
.ig-form-headline div.ig-subheadline {
|
79 |
+
padding-bottom: 0.4em;
|
80 |
+
font-family: Georgia, Palatino, serif;
|
81 |
+
font-size: 1.2em;
|
82 |
+
color: #ffd965;
|
83 |
+
}
|
84 |
+
.ig-survey-ques {
|
85 |
+
font-size:1.1em;
|
86 |
+
padding-bottom: 0.3em;
|
87 |
+
}
|
88 |
+
.ig-form-field label {
|
89 |
+
font-size:0.9em;
|
90 |
+
margin-left: 0.2em;
|
91 |
+
}
|
92 |
+
.ig-survey-next,.ig-button {
|
93 |
+
box-shadow: 0 1px 0 #03a025;
|
94 |
+
font-weight: bold;
|
95 |
+
height: 2em;
|
96 |
+
line-height: 1em;
|
97 |
+
}
|
98 |
+
.ig-survey-next,.ig-button.primary {
|
99 |
+
color: #FFFFFF!important;
|
100 |
+
border-color: #a7c53c !important;
|
101 |
+
background: #a7c53c !important;
|
102 |
+
box-shadow: none;
|
103 |
+
padding: 0 3.6em;
|
104 |
+
}
|
105 |
+
.ig-button.secondary {
|
106 |
+
color: #545454!important;
|
107 |
+
border-color: #d9dcda!important;
|
108 |
+
background: rgba(243, 243, 243, 0.83) !important;
|
109 |
+
}
|
110 |
+
.ig-loader-wrapper {
|
111 |
+
position: absolute;
|
112 |
+
display: none;
|
113 |
+
left: 53%;
|
114 |
+
margin-top: 0.4em;
|
115 |
+
margin-left: 4em;
|
116 |
+
}
|
117 |
+
.ig-loader-wrapper img {
|
118 |
+
width: 50%;
|
119 |
+
}
|
120 |
+
.ig-msg-wrap {
|
121 |
+
display: none;
|
122 |
+
text-align: center;
|
123 |
+
}
|
124 |
+
.ig-msg-wrap .ig-msg-text {
|
125 |
+
padding: 1%;
|
126 |
+
font-size: 2em;
|
127 |
+
}
|
128 |
+
.ig-form-field.ig-left {
|
129 |
+
margin-bottom: 0.6em;
|
130 |
+
width: 32%;
|
131 |
+
display: inline-block;
|
132 |
+
float: left;
|
133 |
+
}
|
134 |
+
.ig-form-field.ig-right {
|
135 |
+
margin-left: 3%;
|
136 |
+
width: 64%;
|
137 |
+
display: inline-block;
|
138 |
+
}
|
139 |
+
.ig-profile-txt:before {
|
140 |
+
font-family: dashicons;
|
141 |
+
content: "\f345";
|
142 |
+
vertical-align: middle;
|
143 |
+
}
|
144 |
+
.ig-profile-txt {
|
145 |
+
font-size: 0.9em;
|
146 |
+
}
|
147 |
+
.ig-right-info .ig-right {
|
148 |
+
width: 35%;
|
149 |
+
display: inline-block;
|
150 |
+
float: right;
|
151 |
+
margin-top: 2em;
|
152 |
+
}
|
153 |
+
.ig-right-info .ig-left {
|
154 |
+
width: 65%;
|
155 |
+
display: inline-block;
|
156 |
+
}
|
157 |
+
.ig-form-wrapper form {
|
158 |
+
margin-top: 0.6em;
|
159 |
+
}
|
160 |
+
.ig-right-info label {
|
161 |
+
padding: 0.5em 0.5em 0 0;
|
162 |
+
/*font-size: 0.8em;*/
|
163 |
+
/*text-transform: uppercase;*/
|
164 |
+
color: rgba(239, 239, 239, 0.98);
|
165 |
+
display: block;
|
166 |
+
}
|
167 |
+
.ig-list-item {
|
168 |
+
margin-bottom: 0.9em;
|
169 |
+
display: none;
|
170 |
+
margin-top: 0.5em;
|
171 |
+
}
|
172 |
+
.ig-rocket {
|
173 |
+
position: absolute;
|
174 |
+
top: 2.5em;
|
175 |
+
right: 1.8%;
|
176 |
+
}
|
177 |
+
#ig-no {
|
178 |
+
box-shadow: none;
|
179 |
+
cursor: pointer;
|
180 |
+
color: #c3bfbf;
|
181 |
+
text-decoration: underline;
|
182 |
+
width: 100%;
|
183 |
+
display: inline-block;
|
184 |
+
margin: 0 auto;
|
185 |
+
margin-left: 11em;
|
186 |
+
margin-top: 0.2em;
|
187 |
+
}
|
188 |
+
.ig-clearfix:after {
|
189 |
+
content: ".";
|
190 |
+
display: block;
|
191 |
+
clear: both;
|
192 |
+
visibility: hidden;
|
193 |
+
line-height: 0;
|
194 |
+
height: 0;
|
195 |
+
}
|
196 |
+
|
197 |
+
.ig-survey-next {
|
198 |
+
text-decoration: none;
|
199 |
+
color: #fff;
|
200 |
+
}
|
201 |
+
.ig-list-item textarea{
|
202 |
+
width: 70%;
|
203 |
+
margin-top: 0.5em;
|
204 |
+
}
|
205 |
+
</style>
|
206 |
+
<script type="text/javascript">
|
207 |
+
jQuery(function() {
|
208 |
+
jQuery('.ig-list-item:nth-child(2)').show();
|
209 |
+
jQuery('.ig-list-item:nth-child(2)').addClass('current');
|
210 |
+
jQuery('.ig-form-container').on('click', '.ig-survey-next', function(){
|
211 |
+
var count = jQuery('.ig-counter').data('count');
|
212 |
+
if(count < 5){
|
213 |
+
count = parseInt(count) + 1;
|
214 |
+
jQuery('.ig-counter').data('count', count);
|
215 |
+
if(count == 3){
|
216 |
+
jQuery('.ig-counter').show();
|
217 |
+
}else{
|
218 |
+
jQuery('.ig-counter').hide();
|
219 |
+
}
|
220 |
+
}
|
221 |
+
jQuery('.ig-list-item.current').hide();
|
222 |
+
jQuery('.ig-list-item.current').next().show().addClass('current');
|
223 |
+
jQuery('.ig-list-item.current').prev('.ig-list-item').hide();
|
224 |
+
if(jQuery('.ig-list-item.current').is(':last-child')){
|
225 |
+
jQuery('.ig-survey-next').hide();
|
226 |
+
|
227 |
+
}
|
228 |
+
});
|
229 |
+
|
230 |
+
});
|
231 |
+
</script>
|
232 |
+
|
233 |
+
|
234 |
+
|
235 |
+
<div class="ig-form-container wrap">
|
236 |
+
<div class="ig-form-wrapper">
|
237 |
+
<div class="ig-form-headline">
|
238 |
+
<div class="ig-mainheadline"><?php _e('Icegram', IG_SURVEY_TDOMAIN); ?> <u><?php _e('is getting even better!', IG_SURVEY_TDOMAIN); ?></u></div>
|
239 |
+
<div class="ig-subheadline"><?php _e('But we need your help..', IG_SURVEY_TDOMAIN); ?> <strong><?php _e('(Please, take this 2 minute survey) ', IG_SURVEY_TDOMAIN); ?></strong></div>
|
240 |
+
</div>
|
241 |
+
<form name="ig-survey-form" action="#" method="POST" accept-charset="utf-8">
|
242 |
+
<div class="ig-container-1 ig-clearfix">
|
243 |
+
<div class="ig-form-field ig-left">
|
244 |
+
<div class="ig-profile">
|
245 |
+
<div class="ig-profile-info">
|
246 |
+
<div style="font-size: 1.218em;padding-bottom: 0.5em;display: block;font-weight: bold;color: #ffd3a2;"><?php echo __("Your Icegram usage has been great, here's a quick snapshot: ",IG_SURVEY_TDOMAIN); ?></div>
|
247 |
+
<ul style="margin: 0 0.5em;">
|
248 |
+
<li class="ig-profile-txt">You published a total of <?php echo $ig_data['ig_published_campaign']?> campaigns till date.</li>
|
249 |
+
<li class="ig-profile-txt">Your last campaign was published <?php echo $publish_days_diff?> back.</li>
|
250 |
+
<li class="ig-profile-txt">And you edited a campaign <?php echo $edit_days_diff ?> back. </li>
|
251 |
+
<input type="hidden" name="ig_data[ig_plan]" value="<?php echo $ig_data['ig_plan']; ?>">
|
252 |
+
<input type="hidden" name="ig_data[ig_is_rm]" value="<?php echo $ig_data['ig_is_rm']; ?>">
|
253 |
+
<input type="hidden" name="ig_data[ig_is_es]" value="<?php echo $ig_data['ig_is_es']; ?>">
|
254 |
+
<input type="hidden" name="ig_data[ig_draft_campaign]" value="<?php echo $ig_data['ig_draft_campaign']; ?>">
|
255 |
+
<input type="hidden" name="ig_data[ig_published_campaign]" value="<?php echo $ig_data['ig_published_campaign']; ?>">
|
256 |
+
<input type="hidden" name="ig_data[ig_last_modified_campaign]" value="<?php echo $ig_data['ig_last_modified_campaign']; ?>">
|
257 |
+
<input type="hidden" name="ig_data[ig_last_publish_campaign]" value="<?php echo $ig_data['ig_last_publish_campaign']; ?>">
|
258 |
+
<input type="hidden" name="ig_data[ig-survey-version]" value="0.1">
|
259 |
+
<input type="hidden" name="rm_lead_name" value="IG-Survey-Capture">
|
260 |
+
</ul>
|
261 |
+
</div>
|
262 |
+
</div>
|
263 |
+
</div>
|
264 |
+
<div class="ig-form-field ig-right">
|
265 |
+
<div style="font-size: 1.218em;padding-bottom: 0.5em;display: block;font-weight: bold;color: #ffd3a2;"><?php echo __( 'Let us know what you think about these features', IG_SURVEY_TDOMAIN ); ?></div>
|
266 |
+
<div class="ig-right-info">
|
267 |
+
<div class="ig-left">
|
268 |
+
<ul style="margin-top:0;"><span class="ig-counter" data-count="1" style="display:none">Just 2 more left</span>
|
269 |
+
<li class="ig-list-item"><?php _e('Do you prefer a visual / WYSIWYG editor for campaign design - or the current form based campaign design?', IG_SURVEY_TDOMAIN); ?><br>
|
270 |
+
<label title="days"><input checked="" type="radio" name="ig_data[editor]" value="0"><?php _e('Yes, I like those drag & drop editors.', IG_SURVEY_TDOMAIN); ?></label>
|
271 |
+
<label title="days"><input type="radio" name="ig_data[editor]" value="1"><?php _e('I prefer the power of HTML editing in current approach.', IG_SURVEY_TDOMAIN); ?></label>
|
272 |
+
<label title="days"><input type="radio" name="ig_data[editor]" value="2"><?php _e('I don\'t mind either.', IG_SURVEY_TDOMAIN); ?></label>
|
273 |
+
</li>
|
274 |
+
<li class="ig-list-item"><?php _e('How easy is it to add forms to Icegram?', IG_SURVEY_TDOMAIN); ?><br>
|
275 |
+
<label><input type="radio" name="ig_data[form]" value="0"><?php _e('It\'s super simple - especially using the Rainmaker plugin.', IG_SURVEY_TDOMAIN); ?></label>
|
276 |
+
<label><input checked="" type="radio" name="ig_data[form]" value="1"><?php _e('Easy enough - I use HTML / shortcode to embed my forms.', IG_SURVEY_TDOMAIN); ?></label>
|
277 |
+
<label><input type="radio" name="ig_data[form]" value="2"><?php _e('It\'s difficult - you should improve form handling.', IG_SURVEY_TDOMAIN); ?></label>
|
278 |
+
<label><input type="radio" name="ig_data[form]" value="3"><?php _e('I don\'t use forms!', IG_SURVEY_TDOMAIN); ?></label>
|
279 |
+
</li>
|
280 |
+
<li class="ig-list-item"><?php _e('Do you like Icegram\'s conversion experts to review your campaigns and offer recommendations?', IG_SURVEY_TDOMAIN); ?><br>
|
281 |
+
<label><input type="radio" name="ig_data[review]" value="0"><?php _e('Sure - but only if it\'s free.', IG_SURVEY_TDOMAIN); ?></label>
|
282 |
+
<label><input checked="" type="radio" name="ig_data[review]" value="1"><?php _e('Yes - and I don\'t mind paying a reasonable fee for that.', IG_SURVEY_TDOMAIN); ?></label>
|
283 |
+
<label><input type="radio" name="ig_data[review]" value="2"><?php _e('No, I\'m good on my own.', IG_SURVEY_TDOMAIN); ?></label>
|
284 |
+
</li>
|
285 |
+
<li class="ig-list-item"><?php _e('Did you see / use the new designs in Icegram gallery?', IG_SURVEY_TDOMAIN); ?><br>
|
286 |
+
<label><input type="radio" name="ig_data[gallery]" value="0"><?php _e('Oh yes - they are awesome.', IG_SURVEY_TDOMAIN); ?></label>
|
287 |
+
<label><input type="radio" name="ig_data[gallery]" value="1"><?php _e('Sort of - I plan to use them on my next campaign.', IG_SURVEY_TDOMAIN); ?></label>
|
288 |
+
<label><input checked="" type="radio" name="ig_data[gallery]" value="2"><?php _e('No - I\'m happy with my current designs.', IG_SURVEY_TDOMAIN); ?></label>
|
289 |
+
</li>
|
290 |
+
<li class="ig-list-item"><?php _e('What problems would you like Icegram to solve for you? (mention one or two!)', IG_SURVEY_TDOMAIN); ?><br>
|
291 |
+
<textarea name="ig_data[ig_feedback]"></textarea>
|
292 |
+
</li>
|
293 |
+
<li class="ig-list-item">
|
294 |
+
<div>
|
295 |
+
<input style="width: 70%;vertical-align: middle;display: inline-block;" placeholder="Enter your email to get early access" type="email" name="ig_data[email]">
|
296 |
+
<div class="" style="display: inline-block;margin-left: 0.4em;width: 23%;vertical-align: middle;">
|
297 |
+
<input data-val="yes" type="submit" id="ig-yes" value="Alright, Send It All" class="ig-button button primary">
|
298 |
+
</div>
|
299 |
+
<div class="ig-loader-wrapper"><img src="<?php echo $this->plugin_url ?>/assets/images/spinner-2x.gif"></div>
|
300 |
+
<a id="ig-no" data-val="no" class="">Nah, I don't like improvements</a>
|
301 |
+
</div>
|
302 |
+
</li>
|
303 |
+
</ul>
|
304 |
+
</div>
|
305 |
+
<div class="ig-right">
|
306 |
+
<a href="#" class="ig-survey-next button primary">Next</a>
|
307 |
+
</div>
|
308 |
+
</div>
|
309 |
+
</div>
|
310 |
+
</div>
|
311 |
+
</form>
|
312 |
+
<div class="ig-rocket"><img src="<?php echo $this->plugin_url ?>/assets/images/ig-growth-rocket_2.png"/></div>
|
313 |
+
</div>
|
314 |
+
<div class="ig-msg-wrap">
|
315 |
+
<div class="ig-logo-wrapper"><img style="width:5%;" src="<?php echo $this->plugin_url ?>/assets/images/icegram-logo-branding-64.png"></div>
|
316 |
+
<div class="ig-msg-text ig-yes"><?php _e('Thank you!', IG_SURVEY_TDOMAIN); ?></div>
|
317 |
+
<div class="ig-msg-text ig-no"><?php _e('No issues, have a nice day!', IG_SURVEY_TDOMAIN); ?></div>
|
318 |
+
</div>
|
319 |
+
</div>
|
320 |
+
|
321 |
+
<script type="text/javascript">
|
322 |
+
jQuery(function () {
|
323 |
+
jQuery("form[name=ig-survey-form]").on('click','.ig-button, #ig-no',function(e){
|
324 |
+
e.preventDefault();
|
325 |
+
jQuery("form[name=ig-survey-form]").find('.ig-loader-wrapper').show();
|
326 |
+
var params = jQuery("form[name=ig-survey-form]").serializeArray();
|
327 |
+
var that = this;
|
328 |
+
params.push({name: 'btn-val', value: jQuery(this).data('val') });
|
329 |
+
params.push({name: 'action', value: 'ig_submit_survey' });
|
330 |
+
params.push({name: 'plugin-prefix', value: 'ig' });
|
331 |
+
jQuery.ajax({
|
332 |
+
method: 'POST',
|
333 |
+
type: 'text',
|
334 |
+
url: "<?php echo admin_url( 'admin-ajax.php' ); ?>",
|
335 |
+
data: params,
|
336 |
+
success: function(response) {
|
337 |
+
jQuery("form[name=ig-survey-form]").find('.ig-loader-wrapper').hide();
|
338 |
+
jQuery(".ig-msg-wrap").show('slow');
|
339 |
+
if( jQuery(that).attr('id') =='ig-no'){
|
340 |
+
jQuery(".ig-msg-wrap .ig-yes").hide();
|
341 |
+
}else{
|
342 |
+
jQuery(".ig-msg-wrap .ig-no").hide();
|
343 |
+
}
|
344 |
+
jQuery(".ig-form-wrapper").hide('slow');
|
345 |
+
setTimeout(function(){
|
346 |
+
jQuery(".ig-form-container").hide('slow');
|
347 |
+
}, 5000);
|
348 |
+
}
|
349 |
+
});
|
350 |
+
})
|
351 |
+
|
352 |
+
});
|
353 |
+
</script>
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Popups, Welcome Bar, Optins and Lead Generation Plugin - Icegram ===
|
2 |
Contributors: icegram, storeapps, niravmehta, sandhyam, ravioza, putler
|
3 |
Donate link: https://www.icegram.com/
|
4 |
-
Tags: popup, Exit-popup, optin-popup, 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: 4.8
|
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, target popups to show offers, email signups, social buttons etc and instantly increase conversions on your website.
|
@@ -208,6 +208,9 @@ Contact Us, provide as much detail of the problem as you can. We will try to sol
|
|
208 |
5. Target your Icegram message using these display rules
|
209 |
|
210 |
== Upgrade Notice ==
|
|
|
|
|
|
|
211 |
= 1.10.8 =
|
212 |
compatibility with Contact Form 7(v4.8)
|
213 |
|
@@ -387,6 +390,9 @@ Initial Release
|
|
387 |
|
388 |
|
389 |
== Changelog ==
|
|
|
|
|
|
|
390 |
= 1.10.8 =
|
391 |
* Fix: compatibility with Contact Form 7(v4.8)
|
392 |
|
1 |
=== Popups, Welcome Bar, Optins and Lead Generation Plugin - Icegram ===
|
2 |
Contributors: icegram, storeapps, niravmehta, sandhyam, ravioza, putler
|
3 |
Donate link: https://www.icegram.com/
|
4 |
+
Tags: popup, 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: 4.8.1
|
7 |
+
Stable tag: 1.10.9
|
8 |
License: GPLv3
|
9 |
|
10 |
The best WP popup plugin that let's you create a popup within seconds. Customize, target popups to show offers, email signups, social buttons etc and instantly increase conversions on your website.
|
208 |
5. Target your Icegram message using these display rules
|
209 |
|
210 |
== Upgrade Notice ==
|
211 |
+
= 1.10.9 =
|
212 |
+
Revised Gallery Templates
|
213 |
+
|
214 |
= 1.10.8 =
|
215 |
compatibility with Contact Form 7(v4.8)
|
216 |
|
390 |
|
391 |
|
392 |
== Changelog ==
|
393 |
+
= 1.10.9 =
|
394 |
+
* Enhancement: Revised Gallery templates
|
395 |
+
|
396 |
= 1.10.8 =
|
397 |
* Fix: compatibility with Contact Form 7(v4.8)
|
398 |
|