Free Tools to Automate Your Site Growth - Version 1.25

Version Description

Download this release

Release Info

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

Code changes from version 1.23 to 1.25

Readme.txt CHANGED
@@ -1,27 +1,27 @@
1
- === Free Tools to grow your Email List, Social Sharing and Analytics ===
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.7.2
6
- Stable tag: 1.23
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
- Free and easy way to double your email subscribers. And Sharing tools to double your traffic from Facebook, Twitter, Pinterest & more.
11
 
12
  == Description ==
13
 
14
- Most blogs are designed for hit-and-run readers. People find your blog, read your article, and leave. Wouldn't it be nice if some of those people subscribe or share your amazing post?
15
 
16
- >Sumo provides free tools you need to grow your WordPress site. This plugin will make it easy for your readers to join your email list, share your articles and optimize with analytics. The free tools include:
17
  >
18
- >`List Builder` will let you create a fancy lightbox pop up to [build email subscriptions](http://sumo.com/?src=wordpress) (for 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, or others).
19
  >
20
- >`Share` makes it insanely easy for people to share on mobile or web all of your great content.
21
  >
22
- >`Welcome Mat` displays a full-screen call to action that shows when visitors land on your site.
23
  >
24
- >`Heat Maps` help you see where people are clicking (or not) on your website.
25
  >
26
  >`Scroll Box` is an email collection box triggered by how far your reader makes it down the screen.
27
  >
@@ -29,124 +29,12 @@ Most blogs are designed for hit-and-run readers. People find your blog, read you
29
  >
30
  >`Highlighter` makes it easy to click to tweet about your article by selecting popular parts of your writing (like Kindle and Medium).
31
  >
32
- >`Image Sharer` makes it stupid simple to share your images (with a link to your post) on Pinterest, Facebook and Twitter.
33
  >
34
  >And even more great free tools in our Sumo Store.
35
 
36
  Now, people will find your blog, read your article, share your article on Twitter/Facebook/Pinterest, and subscribe via email to your email newsletter.
37
 
38
- = Features =
39
-
40
- * Free and Easy integration with any WordPress theme
41
- * Simple email integration with 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, and Maropost
42
- * 100% mobile optimized. A lot of your traffic is mobile, make sure your tools are too
43
- * Asynchronous loading that won't affect page load speed
44
- * Total control over which growth features to enable
45
- * Easy sharing on Twitter
46
- * Customize templates to make your email popup look amazing
47
- * See gravatars of your most recent email subscribers
48
- * Highlighting of popular Twitter sections (like Kindle and Medium)
49
- * Simply delete any tweet highlights you don't want
50
- * Promotion of your Twitter handle
51
- * Works with other social plugins like Digg Digg
52
- * Popover that significantly increase email subscribes
53
- * Custom email subscription popover timing
54
- * Optional smart email popover timing (like Exit Monitor)
55
- * Customizable email subscribe box wording and colors
56
- * Full HTML control of popover content
57
- * Or simply export email subscribers in a .csv file
58
- * Quickly growth your email newsletter list
59
- * View email subscription statistics for all time
60
- * Easily add Facebook, Twitter, and Pinterest sharing to your images
61
- * Images have higher engagement on social networks
62
- * Include your Twitter username in tweeted images
63
- * Share count shows how often people share your images
64
- * Install image sharing in literally seconds
65
- * Choose which features/apps you want to enable
66
- * Smart Bar to ask for emails at the top of your website
67
- * Heat maps so you can visually see where your visitors are clicking (or not)
68
- * Share app - Get more traffic to your site with these super easy to setup share buttons!
69
- * Contact Form - Simplest way to have your readers contact you
70
- * Content Analytics - See how far people are scrolling on your website
71
- * Welcome Mat - Now you can instantly add a full-screen call to action to grow your email list or drive visitors to a certain page.
72
-
73
- = List Builder (email subscribe feature) =
74
-
75
- The most important asset on your blog isn't your theme or even your content. It's your email list. As you build your email subscriber list, promoting your new posts becomes faster and more effective as you can quickly send a notification to thousands of interested people who want to ready your content.
76
-
77
- While most email subscription boxes are static widgets in your sidebar, our MailChimp/Aweber list builder generates extra attention and higher signup rates by launching an unobtrusive popover signup box. You can decide whether this box loads manually after the visitor has been on your page for a few seconds or automatically when the mouse moves away from the page (much like Exit Monitor).
78
-
79
- = A/B testing your email pop ups =
80
-
81
- Now you can figure out which text, size, timing, colors and more will convert best on your site. A/B testing can be setup in seconds and most people see 20-100% more email subscribers after testing.
82
-
83
- = Advanced display rules =
84
-
85
- Now you can target all of our apps to any specific visitors you'd like. Want an email pop up or share to only show for visitors coming from Facebook. Done. Want your email pop up customized for a specific audience, done.
86
-
87
- = Choose when to request subscribes =
88
-
89
- You can adjust the List Builder settings to automatically load the popover subscription form after a set period of time - like 10 seconds - so it loads after your visitor has started reading. Alternately, you can set a much shorter load time - like 1 second - so that more of your visitors see the MailChimp subscribe box before leaving.
90
-
91
- = Optional smart load timing =
92
-
93
- The optional smart timing will automatically load the Aweber email subscription box when we think the reader is getting ready to leave. Much like Exit Monitor, we do this by monitoring mouse movements that determine exit intent. When the mouse moves toward the X to close your website, the popover will quickly ask for their email. (Note: This isn't a popup, so it won't interfere with closing the tab.)
94
-
95
-
96
- = Automatically Connect with major email providers =
97
-
98
- Our email list builder easily connects with all major email providers including 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, and Maropost. This means that if you use an email manager like MailChimp, your new subscribers can automatically subscribe to your list instantly.
99
-
100
- Alternately, you can simply set List Builder to collect email addresses that you can export in CSV format.
101
-
102
- = Easily modify design =
103
-
104
- The email form is completely customizable. You can quickly change the wording, confirmation message, and colors to match the rest of your website. This will increase conversions by making users more comfortable subscribing.
105
-
106
- = Or go completely old school =
107
-
108
- If you really want to customize your email popover, you can actually edit the full HTML. You can add a different form, select specific pages to not show the popover on, and even add a redirected confirmation URL. Customize to your heart's content.
109
-
110
-
111
- = Share (optimized social sharing buttons) =
112
-
113
- This app is used by many top 1000 sites. Instantly add sharing buttons to your desktop and mobile experience. Most people using Share see at least 20% more page views afterwards. The buttons auto optimize themselves and you can choose from these different places to share on (Facebook, Twitter, Pinterest, Reddit, Buffer, Delicious, Digg, Evernote, Amazon Wishlist, Instapaper, Pocket, LinkedIn, Tumblr, StumbleUpon, Yummly). Includes SMS sharing and WhatsApp sharing.
114
-
115
- = Highlighter (Twitter sharing feature) =
116
-
117
- Designed to encourage sharing on Twitter, the Highlighter feature lets readers easily select portions of your article to share as quotes on Twitter. Popularly tweeted sections are highlighted on your blog which boosts Twitter sharing significantly. It's an automatic click-to-tweet.
118
-
119
- = Get more tweets =
120
-
121
- The Highlighter feature improves Twitter shares in two important ways. First, we let users highlight portions of your text to quickly quote on Twitter. Similar to Kindle's sharing feature or Medium's commenting design, this functionality makes tweeting about your latest post quick and easy. Social sharing has never been easier.
122
-
123
- = Highlight popular sentences =
124
-
125
- When someone tweets a quote from your article, our plugin automatically highlights that portion of your text. Much like the popular highlights feature in Kindle, this attracts your reader's attention and boosts social sharing. These highlights can also be edited by the admin if you don't want a particular highlight showing.
126
-
127
- = Include your username in tweets =
128
-
129
- Tweets generated through Highlighter will both link to your article and include your Twitter username. This will build traffic to your website while also boosting your Twitter profile and building your Twitter following. Adding your Twitter username is as easy as typing your username into the Highlighter settings - you don't need to give access to your Twitter account.
130
-
131
- = ImageSharer (Image sharing feature) =
132
-
133
- Have you ever noticed how some blogs and websites make it easy to share their images on social networks like Pinterest? Because these images link back to your article, people who share your images on Pinterest, Twitter, and Facebook can drive significant traffic to your website. ImageSharer makes it easy for you to add professional image sharing to your website with just a click of the button.
134
-
135
- = Image sharing for Pinterest =
136
-
137
- Pinterest is one of the fastest growing social networks right now, and some studies have found Pinterest users spend more than other social network visitors. By making it easy for your visitors to share their favorite images from your blog on Pinterest, we're helping you unlock a major source of valuable traffic that many bloggers aren't even pursuing yet.
138
-
139
- = Image sharing for Facebook =
140
-
141
- Did you know that photo posts on Facebook get 84% more click-throughs than text posts (according to KISSmetrics)? The ImageSharer plugin makes it stupid simple for your readers to easily share your beautiful images on Facebook with just a click of the button.
142
-
143
- = Image sharing for Twitter =
144
-
145
- According to Buffer, image tweets on Twitter get fully 2x the engagement of text tweets! Essentially, every time one of your readers shares an image from your blog, you're getting the equivalent of two ordinary tweets.
146
-
147
- = Easy image sharing for all three social networks =
148
-
149
- ImageSharer makes it super easy to add image sharing for all three powerful social networks without any coding or frustrating setup. Simply install the Sumo plugin, click to activate ImageSharer, and watch your share stats start rolling in.
150
 
151
  = Latest Updates =
152
 
@@ -273,13 +161,13 @@ Why you should encourage Twitter sharing
273
 
274
  [See all of our screenshots at Sumo.com](http://sumo.com/?src=wordpress_ss)
275
 
276
- 1. This screen shot is how to Sign up once you have activated the plugin.
277
- 2. This is the screen to choose which apps to install.
278
- 3. Fully customizable email pop ups (List Builder app)
279
  4. Total control of the design and feel of the pop ups
280
  5. Connect with all major email providers (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)
281
  6. A/B testing to maximize your conversion rate
282
- 7. Advanced display rules to control which visitors see your pop ups
283
  8. Detailed stats page to track your email growth
284
  9. Super sexy sharing buttons for mobile and desktop (Share app)
285
  10. Performance of how your shares are doing
@@ -359,7 +247,11 @@ Why you should encourage Twitter sharing
359
  = 1.23 =
360
  * Sumo
361
 
 
 
362
 
 
 
363
 
364
  == Upgrade Notice ==
365
 
@@ -430,3 +322,9 @@ Why you should encourage Twitter sharing
430
 
431
  = 1.23 =
432
  * Sumo
 
 
 
 
 
 
1
+ === Free Tools to Automate Your Site Growth ===
2
  Contributors: SumoMe
3
+ Tags: analytics, campaign monitor, click to tweet, contact form, content analytics, convertkit, drip, email form, ExactTarget, exit-intent, Facebook, facebook share, FeedBlitz, floating social buttons, growth, heat map, heatmaps, Hubspot, image sharing, inbound marketing, Inbox First, infusionsoft, landing page, lightbox, links, mailchimp, mailerlite, mailing list, mailjet, MyEmma, MyNewsletterBuilder, newsletter, Ontraport, pardot, popup, sailthru, scroll box, share, share buttons, share image, sharebar, sharing, site traffic, sms, social, social bookmarking, social media buttons, social plugin, social sharing, subscribers, subscription, traffic growth, tweet button, twitter, twitter share, vero, vertical response, welcome mat, WhatCounts, widget, zapier
4
  Requires at least: 3.0.1
5
  Tested up to: 4.7.2
6
+ Stable tag: 1.25
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
+ Free and easy way to double your email subscribers, plus sharing tools to double your traffic from Facebook, Twitter, Pinterest & more.
11
 
12
  == Description ==
13
 
14
+ Most blogs are designed for hit-and-run readers. People find your blog, read your article, and leave. Wouldn't it be nice if some of those people subscribed or shared your amazing post?
15
 
16
+ >Sumo provides free tools you need to grow your WordPress site. This plugin will make it easy for your readers to join your email list, share your articles, and optimize with analytics. The free tools include:
17
  >
18
+ >`List Builder` will let you create a fancy lightbox pop up to [build email subscriptions](http://sumo.com/?src=wordpress) (for 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, and others).
19
  >
20
+ >`Share` makes it insanely easy for people to share your content on mobile or web.
21
  >
22
+ >`Welcome Mat` displays a full-screen call-to-action that shows when visitors land on your site.
23
  >
24
+ >`Heat Maps` help you see where people are clicking (or not clicking) on your website.
25
  >
26
  >`Scroll Box` is an email collection box triggered by how far your reader makes it down the screen.
27
  >
29
  >
30
  >`Highlighter` makes it easy to click to tweet about your article by selecting popular parts of your writing (like Kindle and Medium).
31
  >
32
+ >`Image Sharer` makes it simple to share your images (with a link to your post) on Pinterest, Facebook and Twitter.
33
  >
34
  >And even more great free tools in our Sumo Store.
35
 
36
  Now, people will find your blog, read your article, share your article on Twitter/Facebook/Pinterest, and subscribe via email to your email newsletter.
37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
 
39
  = Latest Updates =
40
 
161
 
162
  [See all of our screenshots at Sumo.com](http://sumo.com/?src=wordpress_ss)
163
 
164
+ 1. This screen shot is how to Sign up once you have activated the plugin
165
+ 2. This view shows the suite of Sumo apps
166
+ 3. Fully customizable email pop ups from our List Builder 3 app
167
  4. Total control of the design and feel of the pop ups
168
  5. Connect with all major email providers (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)
169
  6. A/B testing to maximize your conversion rate
170
+ 7. Advanced display rules to control which visitors see your pop ups and when
171
  8. Detailed stats page to track your email growth
172
  9. Super sexy sharing buttons for mobile and desktop (Share app)
173
  10. Performance of how your shares are doing
247
  = 1.23 =
248
  * Sumo
249
 
250
+ = 1.24 =
251
+ * Sumo transition
252
 
253
+ = 1.25 =
254
+ * Sumo transition. Added more information to statistics section. Fixed broken link.
255
 
256
  == Upgrade Notice ==
257
 
322
 
323
  = 1.23 =
324
  * Sumo
325
+
326
+ = 1.24 =
327
+ * Sumo transition
328
+
329
+ = 1.25 =
330
+ * Sumo transition. Added more information to statistics section. Fixed broken link.
classes/class_sumome.php CHANGED
@@ -154,7 +154,7 @@ class WP_Plugin_SumoMe {
154
 
155
  if ($site_id) {
156
 
157
- echo('<script data-cfasync="false" src="//load.sumo.com/" data-sumo-platform="'.$this->dataSumoPlatform.'" data-sumo-site-id="' . esc_attr($site_id) . '" async></script>');
158
  }
159
  }
160
 
@@ -168,7 +168,7 @@ class WP_Plugin_SumoMe {
168
 
169
  if ($site_id) {
170
  include(SUMOME__PLUGIN_DIR.'/js/preload.php');
171
- echo('<script data-cfasync="false" src="//load.sumo.com/" data-sumo-platform="'.$this->dataSumoPlatform.'" data-sumo-mode="admin" data-sumo-site-id="' . esc_attr($site_id) . '" async></script>');
172
 
173
  }
174
  }
154
 
155
  if ($site_id) {
156
 
157
+ echo('<script data-cfasync="false" src="//load.sumome.com/" data-sumo-platform="'.$this->dataSumoPlatform.'" data-sumo-site-id="' . esc_attr($site_id) . '" async></script>');
158
  }
159
  }
160
 
168
 
169
  if ($site_id) {
170
  include(SUMOME__PLUGIN_DIR.'/js/preload.php');
171
+ echo('<script data-cfasync="false" src="//load.sumome.com/" data-sumo-platform="'.$this->dataSumoPlatform.'" data-sumo-mode="admin" data-sumo-site-id="' . esc_attr($site_id) . '" async></script>');
172
 
173
  }
174
  }
sumome.php CHANGED
@@ -2,10 +2,10 @@
2
  /*
3
  Plugin Name: SumoMe
4
  Plugin URI: https://sumo.com
5
- Description: Free Tools to grow your email list from Sumo.com
6
- Version: 1.23
7
  Author: SumoMe
8
- Author URI: https://www.sumo.com
9
  */
10
 
11
  define('SUMOME__PLUGIN_DIR', plugin_dir_path( __FILE__ ));
@@ -19,7 +19,7 @@ register_deactivation_hook(__FILE__, array('WP_Plugin_SumoMe', 'deactivate_SumoM
19
 
20
  function sumome_plugin_settings_link($links)
21
  {
22
- $settings_link = '<a href="options-general.php?page=sumome">Settings</a>';
23
  array_unshift($links, $settings_link);
24
  return $links;
25
  }
2
  /*
3
  Plugin Name: SumoMe
4
  Plugin URI: https://sumo.com
5
+ Description: Free Tools to automate your site growth from Sumo.com
6
+ Version: 1.25
7
  Author: SumoMe
8
+ Author URI: https://www.Sumo.com
9
  */
10
 
11
  define('SUMOME__PLUGIN_DIR', plugin_dir_path( __FILE__ ));
19
 
20
  function sumome_plugin_settings_link($links)
21
  {
22
+ $settings_link = '<a href="options-general.php?page=sumo">Settings</a>';
23
  array_unshift($links, $settings_link);
24
  return $links;
25
  }
views/main.php CHANGED
@@ -19,7 +19,7 @@ $itemArray['Statistics']['class']="sumome-popup-no-dim sumo-statistics";
19
  $itemArray['Statistics']['columns']=1;
20
 
21
  $itemArray['I Need Help']['data-name']="sumome-control-help";
22
- $itemArray['I Need Help']['data-href']="http://help.sumo.com";
23
  $itemArray['I Need Help']['class']="sumome-popup-no-dim";
24
  $itemArray['I Need Help']['columns']=1;
25
 
@@ -78,8 +78,8 @@ $itemArray['Sumo Settings']['columns']=1;
78
  <div class="large-12 columns footer">
79
  <h4 class="list-number-title">Need Help?</h4>
80
  <div class="sumome-help">
81
- <span>Take a look at our <a target="_blank" href="https://help.sumo.com/">help page</a> to see our frequently answered</span>
82
- <span>questions or <a target="_blank" href="https://help.sumo.com/hc/en-us/requests/new">send us a message</a> and we will get back to you asap.</span>
83
  </div>
84
  </div>
85
  </div>
19
  $itemArray['Statistics']['columns']=1;
20
 
21
  $itemArray['I Need Help']['data-name']="sumome-control-help";
22
+ $itemArray['I Need Help']['data-href']="http://help.sumome.com";
23
  $itemArray['I Need Help']['class']="sumome-popup-no-dim";
24
  $itemArray['I Need Help']['columns']=1;
25
 
78
  <div class="large-12 columns footer">
79
  <h4 class="list-number-title">Need Help?</h4>
80
  <div class="sumome-help">
81
+ <span>Take a look at our <a target="_blank" href="https://help.sumome.com/">help page</a> to see our frequently answered</span>
82
+ <span>questions or <a target="_blank" href="https://help.sumome.com/hc/en-us/requests/new">send us a message</a> and we will get back to you asap.</span>
83
  </div>
84
  </div>
85
  </div>
views/siteID.php CHANGED
@@ -14,7 +14,7 @@
14
  <?php do_settings_fields('sumome', 'sumome-settings') ?>
15
  </table>
16
  <div class="sumome-instructions">
17
- NOTE: If you already have a site ID from a previous installation and wish to recover your settings, enter the site ID above. You may also generate a new site ID to perform a fresh installation. Changing the site ID will lose all settings, apps, and purchases.
18
  </div>
19
  <?php submit_button(); ?>
20
  </form>
14
  <?php do_settings_fields('sumome', 'sumome-settings') ?>
15
  </table>
16
  <div class="sumome-instructions">
17
+ NOTE: If you already have a site ID from a previous installation and you wish to retain all your settings then enter the site ID above otherwise you may use a new site ID to perform a new installation. Changing the site ID will lose all settings, apps, and purchases.
18
  </div>
19
  <?php submit_button(); ?>
20
  </form>
views/statistics.php CHANGED
@@ -18,7 +18,7 @@ function getSumomeStats() {
18
  statisticsDate='<?php print date('Y-m-d')?>'; //default=last week
19
  }
20
  jQuery.ajax({
21
- url: 'https://sumo.com/apps/dashboard/stats',
22
  type: 'POST',
23
  dataType: 'json',
24
  beforeSend: function(req) {
@@ -31,7 +31,15 @@ function getSumomeStats() {
31
  data: {'site_id':siteID,'date': statisticsDate},
32
  success: function(data) {
33
  jQuery('.loading').hide();
34
- jQuery('.statistics').html(data.htmlBody);
 
 
 
 
 
 
 
 
35
  statisticsDateDropdown();
36
  jQuery(".sumome-dashboard-date-select option[value='"+statisticsDate +"']").attr('selected', 'selected');
37
  jQuery('.statistics-container').show();
18
  statisticsDate='<?php print date('Y-m-d')?>'; //default=last week
19
  }
20
  jQuery.ajax({
21
+ url: 'https://sumome.com/apps/dashboard/stats',
22
  type: 'POST',
23
  dataType: 'json',
24
  beforeSend: function(req) {
31
  data: {'site_id':siteID,'date': statisticsDate},
32
  success: function(data) {
33
  jQuery('.loading').hide();
34
+
35
+ var returnText;
36
+ if (data.htmlBody!=null) {
37
+ returnText=data.htmlBody;
38
+ } else {
39
+ returnText='<h3 class="headline">'+data.headline+'</h3>';
40
+ }
41
+
42
+ jQuery('.statistics').html(returnText);
43
  statisticsDateDropdown();
44
  jQuery(".sumome-dashboard-date-select option[value='"+statisticsDate +"']").attr('selected', 'selected');
45
  jQuery('.statistics-container').show();