Free Tools to Automate Your Site Growth - Version 1.19

Version Description

Download this release

Release Info

Developer marnietave
Plugin Icon 128x128 Free Tools to Automate Your Site Growth
Version 1.19
Comparing to
See all releases

Code changes from version 1.18 to 1.19

Files changed (5) hide show
  1. Readme.txt +8 -2
  2. classes/class_sumome.php +29 -5
  3. js/general.php +0 -8
  4. js/preload.php +3 -5
  5. sumome.php +1 -1
Readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: SumoMe
3
  Tags: MailChimp, Aweber, Constant Contact, Campaign Monitor, GetResponse, ActiveCampaign, MyEmma, Mad Mimi, Infusionsoft, Feedblitz, HubSpot, MyNewsletterBuilder, Inbox First, Sailthru, Klaviyo, Vero, Pardot, Zapier, Ontraport, ExactTarget, Vertical Response, Drip, MailerLite, WhatCounts, ConvertKit, MailJet, Maropost, popup, exit intent, growth, subscribers, twitter, facebook share, social plugin, social sharing, subscription, email form, share, sharing, social , social media buttons , links, click to tweet , analytics , newsletter, widget,lightbox, analytics, newsletter, newsletter, Facebook, floating social buttons, google plus, Image sharing, pinterest plugin, pintrest, share image, sharebar, sharing, social bookmarking, social plugin, sms, tweet button, heat map, heatmaps, twitter share, contact form, scroll box, content analytics, inbound marketing, mailing list, share buttons, welcome mat, landing page
4
  Requires at least: 3.0.1
5
- Tested up to: 4.2.1
6
- Stable tag: 1.18
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -344,6 +344,9 @@ Why you should encourage Twitter sharing
344
  = 1.18 =
345
  * Fixes site ID conflict
346
 
 
 
 
347
  == Upgrade Notice ==
348
 
349
  = 1.04 =
@@ -398,3 +401,6 @@ Why you should encourage Twitter sharing
398
 
399
  = 1.18 =
400
  * Fixes site ID conflict
 
 
 
2
  Contributors: SumoMe
3
  Tags: MailChimp, Aweber, Constant Contact, Campaign Monitor, GetResponse, ActiveCampaign, MyEmma, Mad Mimi, Infusionsoft, Feedblitz, HubSpot, MyNewsletterBuilder, Inbox First, Sailthru, Klaviyo, Vero, Pardot, Zapier, Ontraport, ExactTarget, Vertical Response, Drip, MailerLite, WhatCounts, ConvertKit, MailJet, Maropost, popup, exit intent, growth, subscribers, twitter, facebook share, social plugin, social sharing, subscription, email form, share, sharing, social , social media buttons , links, click to tweet , analytics , newsletter, widget,lightbox, analytics, newsletter, newsletter, Facebook, floating social buttons, google plus, Image sharing, pinterest plugin, pintrest, share image, sharebar, sharing, social bookmarking, social plugin, sms, tweet button, heat map, heatmaps, twitter share, contact form, scroll box, content analytics, inbound marketing, mailing list, share buttons, welcome mat, landing page
4
  Requires at least: 3.0.1
5
+ Tested up to: 4.5.3
6
+ Stable tag: 1.19
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
344
  = 1.18 =
345
  * Fixes site ID conflict
346
 
347
+ = 1.19 =
348
+ * Fixes logout redirect, and updated WordPress tested version.
349
+
350
  == Upgrade Notice ==
351
 
352
  = 1.04 =
401
 
402
  = 1.18 =
403
  * Fixes site ID conflict
404
+
405
+ = 1.19 =
406
+ * Fixes logout redirect, and updated WordPress tested version.
classes/class_sumome.php CHANGED
@@ -147,20 +147,36 @@ class WP_Plugin_SumoMe {
147
  print '<div class="sumome-plugin-container"><div class="sumome-plugin-main">';
148
  include(SUMOME__PLUGIN_DIR.'/views/wordpress-dashboard-welcome-page.php');
149
  print '</div></div>';
 
150
  }
151
 
152
  public function sumome_render_dashboard_page() {
153
  include(SUMOME__PLUGIN_DIR.'/js/general.php');
154
  include(SUMOME__PLUGIN_DIR.'/views/landing.php');
 
155
  }
156
 
157
  public function sumome_render_statistics_page() {
158
  print '<link rel="stylesheet" type="text/css" href="'.plugins_url('styles/statistics.css', dirname(__FILE__)).'">';
159
  include(SUMOME__PLUGIN_DIR.'/views/statistics.php');
 
160
  }
161
 
162
  public function sumome_render_siteID_page() {
163
  include(SUMOME__PLUGIN_DIR.'/views/siteID.php');
 
 
 
 
 
 
 
 
 
 
 
 
 
164
  }
165
 
166
  public function ajax_sumome_main() {
@@ -194,11 +210,19 @@ class WP_Plugin_SumoMe {
194
  echo '<div class="sumome-plugin-dashboard-widget '.$dashboardWidgetClass.'"></div>';
195
  ?>
196
  <script>
197
- jQuery.post(ajaxurl, { action: 'sumome_dashboard_welcome' },
198
- function(data) {
199
- jQuery('.sumome-plugin-dashboard-widget').html(data);
200
- });
201
- </script>
 
 
 
 
 
 
 
 
202
  <?php
203
  }
204
 
147
  print '<div class="sumome-plugin-container"><div class="sumome-plugin-main">';
148
  include(SUMOME__PLUGIN_DIR.'/views/wordpress-dashboard-welcome-page.php');
149
  print '</div></div>';
150
+ $this->sumome_plugin_only();
151
  }
152
 
153
  public function sumome_render_dashboard_page() {
154
  include(SUMOME__PLUGIN_DIR.'/js/general.php');
155
  include(SUMOME__PLUGIN_DIR.'/views/landing.php');
156
+ $this->sumome_plugin_only();
157
  }
158
 
159
  public function sumome_render_statistics_page() {
160
  print '<link rel="stylesheet" type="text/css" href="'.plugins_url('styles/statistics.css', dirname(__FILE__)).'">';
161
  include(SUMOME__PLUGIN_DIR.'/views/statistics.php');
162
+ $this->sumome_plugin_only();
163
  }
164
 
165
  public function sumome_render_siteID_page() {
166
  include(SUMOME__PLUGIN_DIR.'/views/siteID.php');
167
+ $this->sumome_plugin_only();
168
+ }
169
+
170
+ public function sumome_plugin_only() {
171
+ ?>
172
+ <script>
173
+ function sumo_logout_redirect(){
174
+ setTimeout(function(){
175
+ document.location.href='<?php print admin_url('admin.php?page=sumome')?>';
176
+ }, 500);
177
+ }
178
+ </script>
179
+ <?php
180
  }
181
 
182
  public function ajax_sumome_main() {
210
  echo '<div class="sumome-plugin-dashboard-widget '.$dashboardWidgetClass.'"></div>';
211
  ?>
212
  <script>
213
+ jQuery.post(ajaxurl, { action: 'sumome_dashboard_welcome' },
214
+ function(data) {
215
+ jQuery('.sumome-plugin-dashboard-widget').html(data);
216
+ });
217
+
218
+ function sumo_logout_redirect(){
219
+ jQuery('.sumome-wp-dash-logged-in').addClass('status-logged-out');
220
+ jQuery('.sumome-wp-dash-logged-in').removeClass('status-logged-in');
221
+
222
+ jQuery('.sumome-wp-dash-logged-out').addClass('status-logged-out');
223
+ jQuery('.sumome-wp-dash-logged-out').removeClass('status-logged-in');
224
+ }
225
+ </script>
226
  <?php
227
  }
228
 
js/general.php CHANGED
@@ -134,14 +134,6 @@ jQuery(document).ready(function() {
134
  jQuery('.sumome-control-close').trigger(press).click();
135
  });
136
 
137
- function sumo_logout() {
138
- setCookie('__smToken', '', -1);
139
- setCookie('__smUser', '', -1);
140
- setTimeout(function(){
141
- document.location.href='<?php print admin_url('admin.php?page=sumome')?>';
142
- }, 500);
143
- }
144
-
145
  });
146
 
147
  function getLoadInformation() {
134
  jQuery('.sumome-control-close').trigger(press).click();
135
  });
136
 
 
 
 
 
 
 
 
 
137
  });
138
 
139
  function getLoadInformation() {
js/preload.php CHANGED
@@ -98,16 +98,14 @@ function __smReady(sumome) {
98
  jQuery('.sumome-plugin-dashboard-widget').removeClass('minimized');
99
  });
100
 
101
-
102
  function sumo_logout() {
103
  setCookie('__smToken', '', -1);
104
  setCookie('__smUser', '', -1);
105
- setTimeout(function(){
106
- document.location.href='<?php print admin_url('admin.php?page=sumome')?>';
107
- }, 500);
108
  }
109
 
110
-
111
  };
112
  function getCookie(cname) {
113
  var name = cname + "=";
98
  jQuery('.sumome-plugin-dashboard-widget').removeClass('minimized');
99
  });
100
 
 
101
  function sumo_logout() {
102
  setCookie('__smToken', '', -1);
103
  setCookie('__smUser', '', -1);
104
+ if(typeof sumo_logout_redirect=='function'){
105
+ sumo_logout_redirect();
106
+ }
107
  }
108
 
 
109
  };
110
  function getCookie(cname) {
111
  var name = cname + "=";
sumome.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: SumoMe
4
  Plugin URI: http://sumome.com
5
  Description: Free Tools to grow your email list from SumoMe.com
6
- Version: 1.18
7
  Author: SumoMe
8
  Author URI: http://www.SumoMe.com
9
  */
3
  Plugin Name: SumoMe
4
  Plugin URI: http://sumome.com
5
  Description: Free Tools to grow your email list from SumoMe.com
6
+ Version: 1.19
7
  Author: SumoMe
8
  Author URI: http://www.SumoMe.com
9
  */