WordPress Social Tools, Related Posts, Monetization – Shareaholic - Version 7.0.4.2

Version Description

  • Better debug prompts
Download this release

Release Info

Developer shareaholic
Plugin Icon 128x128 WordPress Social Tools, Related Posts, Monetization – Shareaholic
Version 7.0.4.2
Comparing to
See all releases

Code changes from version 7.0.4.1 to 7.0.4.2

admin.php CHANGED
@@ -84,7 +84,7 @@ class ShareaholicAdmin {
84
  */
85
  public static function failed_to_create_api_key() {
86
  ShareaholicUtilities::load_template('failed_to_create_api_key');
87
- if (isset($_GET['page']) && preg_match('/shareaholic/', $_GET['page'])) {
88
  ShareaholicUtilities::load_template('failed_to_create_api_key_modal');
89
  }
90
  }
84
  */
85
  public static function failed_to_create_api_key() {
86
  ShareaholicUtilities::load_template('failed_to_create_api_key');
87
+ if (isset($_GET['page']) && preg_match('/shareaholic-settings/', $_GET['page'])) {
88
  ShareaholicUtilities::load_template('failed_to_create_api_key_modal');
89
  }
90
  }
assets/css/main.css CHANGED
@@ -204,7 +204,7 @@ s,m,l,n = small(5px),medium(10px),large(20px),none(0px)
204
  }
205
 
206
  .api-key-modal{
207
- height: 350px;
208
  }
209
 
210
  .blocking-modal .content{
204
  }
205
 
206
  .api-key-modal{
207
+ height: 400px;
208
  }
209
 
210
  .blocking-modal .content{
assets/js/main.js CHANGED
@@ -1,191 +1,192 @@
1
  (function($) {
2
- window.Shareaholic = window.Shareaholic || {};
3
- window.shareaholic_debug = true;
4
 
5
- Shareaholic.bind_button_clicks = function(click_object, off) {
6
- if (off) {
7
- $(click_object.selector).off('click.app_settings');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  }
9
 
10
- $(click_object.selector).off('click.app_settings').on('click.app_settings', function(e) {
11
- button = this;
12
- e.preventDefault();
13
- url = click_object.url(this);
14
- $frame = $('<iframe>', { src: url }).appendTo('#iframe_container');
15
- if (click_object.callback) {
16
- click_object.callback(this);
17
- }
18
- $('#editing_modal').reveal({
19
- topPosition: 50,
20
- close: function() {
21
- if (click_object.close) {
22
- click_object.close(button);
23
- }
24
- $frame.remove();
25
- }
26
- });
27
- });
28
- }
29
-
30
- Shareaholic.click_objects = {
31
- 'app_settings': {
32
- selector: '#app_settings button',
33
- url: function(button) {
34
- id = $(button).data('location_id');
35
- app = $(button).data('app')
36
- url = first_part_of_url + $(button).data('href') + '?embedded=true&'
37
- + 'verification_key=' + verification_key;
38
- url = url.replace(/{{id}}/, id);
39
- return url;
40
- },
41
- callback: function(button) {
42
- id = $(button).data('location_id');
43
- app = $(button).data('app');
44
- text = 'You can also use this shortcode to place this {{app}} App anywhere.';
45
- html = "<div id='shortcode_container'> \
46
  <span id='shortcode_description'></span> \
47
  <textarea id='shortcode' name='widget_div' onclick='select();' readonly='readonly'></textarea> \
48
  </div>"
49
- $(html).appendTo('.reveal-modal');
50
- $('#shortcode_description').text(text.replace(/{{app}}/, Shareaholic.titlecase(app)));
51
- $('#shortcode').text('[shareaholic app="' + app + '" id="' + id + '"]');
52
- },
53
- close: function(button) {
54
- $('#shortcode_container').remove();
55
- }
56
- },
57
-
58
- 'general_settings': {
59
- selector: '#general_settings',
60
- url: function(button) {
61
- return first_part_of_url + 'edit?embedded=true&'
62
- + 'verification_key=' + verification_key;
63
- },
64
- callback: function(button) {
65
- $('#iframe_container').css('height', '100%');
66
- $('#iframe_container iframe').css('height', '100%');
67
- }
68
- }
69
- }
70
-
71
- Shareaholic.Utils.PostMessage.receive('settings_saved', {
72
- success: function(data) {
73
- $('input[type="submit"]').click();
74
- },
75
- failure: function(data) {
76
- console.log(data);
77
  }
78
- });
79
-
80
- Shareaholic.titlecase = function(string) {
81
- return string.charAt(0).toUpperCase() + string.replace(/_[a-z]/g, function(match) {
82
- return match.toUpperCase().replace(/_/, ' ');
83
- }).slice(1);
84
- }
85
-
86
- Shareaholic.disable_buttons = function() {
87
- $('#app_settings button').each(function() {
88
- if (!$(this).data('location_id')) {
89
- $(this).attr('disabled', 'disabled');
90
- } else {
91
- $(this).removeAttr('disabled');
92
- }
93
  });
94
- }
95
-
96
- Shareaholic.create_new_location = function(_this) {
97
- button = $(_this).siblings('button')
98
- app = button.data('app')
99
- location_id = button.data('location_id')
100
- if (!!location_id) {
101
- return;
102
- }
103
 
104
- data = {}
105
- data['configuration_' + app + '_location'] = {
106
- name: /.*\[(.*)\]/.exec($(_this).attr('name'))[1]
 
107
  }
108
 
109
- $.ajax({
110
- url: first_part_of_url + app + '/locations.json',
111
- type: 'POST',
112
- data: data,
113
- success: function(data, status, jqxhr) {
114
- data['action'] = 'shareaholic_add_location';
115
- button.data('location_id', data['location']['id']);
116
- Shareaholic.disable_buttons();
117
- Shareaholic.submit_to_admin(data, function(stuff) {
118
- console.log(stuff);
119
  });
120
- },
121
- failure: function(things) {
122
- console.log(things);
123
- },
124
- xhrFields: {
125
- withCredentials: true
126
- }
127
- });
128
- }
129
-
130
- Shareaholic.submit_to_admin = function(data, callback) {
131
- $.ajax({
132
- url: ajaxurl,
133
- type: 'POST',
134
- data: data,
135
- success: function(response) {
136
- try {
137
- response = JSON.parse(response);
138
- } catch (e) {
139
- response = {};
140
- }
141
- callback(response);
142
- },
143
- failure: function(response) {
144
- try {
145
- response = JSON.parse(response);
146
- } catch (e) {
147
- response = {};
148
  }
149
- callback(response);
150
- }
151
- })
152
- }
153
 
154
- $(document).ready(function() {
 
 
 
155
 
156
- Shareaholic.disable_buttons();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
157
 
158
- Shareaholic.bind_button_clicks(Shareaholic.click_objects['app_settings']);
159
- Shareaholic.bind_button_clicks(Shareaholic.click_objects['general_settings']);
160
- if (Shareaholic.click_objects['unverified_general_settings']) {
161
- Shareaholic.bind_button_clicks(Shareaholic.click_objects['unverified_general_settings'], true);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162
  }
163
 
164
- $('#terms_of_service_modal').reveal({
165
- closeonbackgroundclick: false,
166
- closeonescape: false,
167
- topPosition: 50
168
- });
169
 
170
- $('#failed_to_create_api_key').reveal({
171
- closeonbackgroundclick: false,
172
- closeonescape: false,
173
- topPosition: 50
174
- });
175
 
176
- $('#get_started').on('click', function(e) {
177
- e.preventDefault();
178
- data = {action: 'shareaholic_accept_terms_of_service'};
179
- // $('#terms_of_service_modal').trigger('reveal:close');
180
- Shareaholic.submit_to_admin(data, function(){
181
- location.reload();
182
- });
183
- })
184
-
185
- $('form input[type=checkbox]').on('click', function() {
186
- if($(this).is(':checked') && !$(this).data('location_id')) {
187
- Shareaholic.create_new_location(this);
188
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
189
  });
190
- });
191
  })(sQuery);
1
  (function($) {
2
+ window.Shareaholic = window.Shareaholic || {};
3
+ window.shareaholic_debug = true;
4
 
5
+ Shareaholic.bind_button_clicks = function (click_object, off) {
6
+ if (off) {
7
+ $(click_object.selector).off('click.app_settings');
8
+ }
9
+
10
+ $(click_object.selector).off('click.app_settings').on('click.app_settings', function (e) {
11
+ button = this;
12
+ e.preventDefault();
13
+ url = click_object.url(this);
14
+ if (click_object.selector == '#general_settings') {
15
+ window.open(url);
16
+ return false;
17
+ } else {
18
+ $frame = $('<iframe>', { src:url }).appendTo('#iframe_container');
19
+ if (click_object.callback) {
20
+ click_object.callback(this);
21
+ }
22
+ $('#editing_modal').reveal({
23
+ topPosition:50,
24
+ close:function () {
25
+ if (click_object.close) {
26
+ click_object.close(button);
27
+ }
28
+ $frame.remove();
29
+ }
30
+ });
31
+ }
32
+ });
33
  }
34
 
35
+ Shareaholic.click_objects = {
36
+ 'app_settings': {
37
+ selector: '#app_settings button',
38
+ url: function(button) {
39
+ id = $(button).data('location_id');
40
+ app = $(button).data('app')
41
+ url = first_part_of_url + $(button).data('href') + '?embedded=true&'
42
+ + 'verification_key=' + verification_key;
43
+ url = url.replace(/{{id}}/, id);
44
+ return url;
45
+ },
46
+ callback: function(button) {
47
+ id = $(button).data('location_id');
48
+ app = $(button).data('app');
49
+ text = 'You can also use this shortcode to place this {{app}} App anywhere.';
50
+ html = "<div id='shortcode_container'> \
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  <span id='shortcode_description'></span> \
52
  <textarea id='shortcode' name='widget_div' onclick='select();' readonly='readonly'></textarea> \
53
  </div>"
54
+ $(html).appendTo('.reveal-modal');
55
+ $('#shortcode_description').text(text.replace(/{{app}}/, Shareaholic.titlecase(app)));
56
+ $('#shortcode').text('[shareaholic app="' + app + '" id="' + id + '"]');
57
+ },
58
+ close: function(button) {
59
+ $('#shortcode_container').remove();
60
+ }
61
+ },
62
+
63
+ 'general_settings': {
64
+ selector: '#general_settings',
65
+ url: function(button) {
66
+ return first_part_of_url + 'edit'
67
+ + '?verification_key=' + verification_key;
68
+ }
69
+ }
 
 
 
 
 
 
 
 
 
 
 
 
70
  }
71
+
72
+ Shareaholic.Utils.PostMessage.receive('settings_saved', {
73
+ success: function(data) {
74
+ $('input[type="submit"]').click();
75
+ },
76
+ failure: function(data) {
77
+ console.log(data);
78
+ }
 
 
 
 
 
 
 
79
  });
 
 
 
 
 
 
 
 
 
80
 
81
+ Shareaholic.titlecase = function(string) {
82
+ return string.charAt(0).toUpperCase() + string.replace(/_[a-z]/g, function(match) {
83
+ return match.toUpperCase().replace(/_/, ' ');
84
+ }).slice(1);
85
  }
86
 
87
+ Shareaholic.disable_buttons = function() {
88
+ $('#app_settings button').each(function() {
89
+ if (!$(this).data('location_id')) {
90
+ $(this).attr('disabled', 'disabled');
91
+ } else {
92
+ $(this).removeAttr('disabled');
93
+ }
 
 
 
94
  });
95
+ }
96
+
97
+ Shareaholic.create_new_location = function(_this) {
98
+ button = $(_this).siblings('button')
99
+ app = button.data('app')
100
+ location_id = button.data('location_id')
101
+ if (!!location_id) {
102
+ return;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  }
 
 
 
 
104
 
105
+ data = {}
106
+ data['configuration_' + app + '_location'] = {
107
+ name: /.*\[(.*)\]/.exec($(_this).attr('name'))[1]
108
+ }
109
 
110
+ $.ajax({
111
+ url: first_part_of_url + app + '/locations.json',
112
+ type: 'POST',
113
+ data: data,
114
+ success: function(data, status, jqxhr) {
115
+ data['action'] = 'shareaholic_add_location';
116
+ button.data('location_id', data['location']['id']);
117
+ Shareaholic.disable_buttons();
118
+ Shareaholic.submit_to_admin(data, function(stuff) {
119
+ console.log(stuff);
120
+ });
121
+ },
122
+ failure: function(things) {
123
+ console.log(things);
124
+ },
125
+ xhrFields: {
126
+ withCredentials: true
127
+ }
128
+ });
129
+ }
130
 
131
+ Shareaholic.submit_to_admin = function(data, callback) {
132
+ $.ajax({
133
+ url: ajaxurl,
134
+ type: 'POST',
135
+ data: data,
136
+ success: function(response) {
137
+ try {
138
+ response = JSON.parse(response);
139
+ } catch (e) {
140
+ response = {};
141
+ }
142
+ callback(response);
143
+ },
144
+ failure: function(response) {
145
+ try {
146
+ response = JSON.parse(response);
147
+ } catch (e) {
148
+ response = {};
149
+ }
150
+ callback(response);
151
+ }
152
+ })
153
  }
154
 
155
+ $(document).ready(function() {
 
 
 
 
156
 
157
+ Shareaholic.disable_buttons();
 
 
 
 
158
 
159
+ Shareaholic.bind_button_clicks(Shareaholic.click_objects['app_settings']);
160
+ Shareaholic.bind_button_clicks(Shareaholic.click_objects['general_settings']);
161
+ if (Shareaholic.click_objects['unverified_general_settings']) {
162
+ Shareaholic.bind_button_clicks(Shareaholic.click_objects['unverified_general_settings'], true);
163
+ }
164
+
165
+ $('#terms_of_service_modal').reveal({
166
+ closeonbackgroundclick: false,
167
+ closeonescape: false,
168
+ topPosition: 50
169
+ });
170
+
171
+ $('#failed_to_create_api_key').reveal({
172
+ closeonbackgroundclick: false,
173
+ closeonescape: false,
174
+ topPosition: 50
175
+ });
176
+
177
+ $('#get_started').on('click', function(e) {
178
+ e.preventDefault();
179
+ data = {action: 'shareaholic_accept_terms_of_service'};
180
+ // $('#terms_of_service_modal').trigger('reveal:close');
181
+ Shareaholic.submit_to_admin(data, function(){
182
+ location.reload();
183
+ });
184
+ })
185
+
186
+ $('form input[type=checkbox]').on('click', function() {
187
+ if($(this).is(':checked') && !$(this).data('location_id')) {
188
+ Shareaholic.create_new_location(this);
189
+ }
190
+ });
191
  });
 
192
  })(sQuery);
assets/js/main.min.js CHANGED
@@ -1,7 +1,7 @@
1
- (function(a){window.Shareaholic=window.Shareaholic||{};window.shareaholic_debug=!0;Shareaholic.bind_button_clicks=function(b,c){c&&a(b.selector).off("click.app_settings");a(b.selector).off("click.app_settings").on("click.app_settings",function(c){button=this;c.preventDefault();url=b.url(this);$frame=a("<iframe>",{src:url}).appendTo("#iframe_container");b.callback&&b.callback(this);a("#editing_modal").reveal({topPosition:50,close:function(){b.close&&b.close(button);$frame.remove()}})})};Shareaholic.click_objects=
2
- {app_settings:{selector:"#app_settings button",url:function(b){id=a(b).data("location_id");app=a(b).data("app");url=first_part_of_url+a(b).data("href")+"?embedded=true&verification_key="+verification_key;return url=url.replace(/{{id}}/,id)},callback:function(b){id=a(b).data("location_id");app=a(b).data("app");text="You can also use this shortcode to place this {{app}} App anywhere.";html="<div id='shortcode_container'> <span id='shortcode_description'></span> <textarea id='shortcode' name='widget_div' onclick='select();' readonly='readonly'></textarea> </div>";
3
- a(html).appendTo(".reveal-modal");a("#shortcode_description").text(text.replace(/{{app}}/,Shareaholic.titlecase(app)));a("#shortcode").text('[shareaholic app="'+app+'" id="'+id+'"]')},close:function(b){a("#shortcode_container").remove()}},general_settings:{selector:"#general_settings",url:function(a){return first_part_of_url+"edit?embedded=true&verification_key="+verification_key},callback:function(b){a("#iframe_container").css("height","100%");a("#iframe_container iframe").css("height","100%")}}};
4
- Shareaholic.Utils.PostMessage.receive("settings_saved",{success:function(b){a('input[type="submit"]').click()},failure:function(a){console.log(a)}});Shareaholic.titlecase=function(a){return a.charAt(0).toUpperCase()+a.replace(/_[a-z]/g,function(a){return a.toUpperCase().replace(/_/," ")}).slice(1)};Shareaholic.disable_buttons=function(){a("#app_settings button").each(function(){a(this).data("location_id")?a(this).removeAttr("disabled"):a(this).attr("disabled","disabled")})};Shareaholic.create_new_location=
5
- function(b){button=a(b).siblings("button");app=button.data("app");location_id=button.data("location_id");location_id||(data={},data["configuration_"+app+"_location"]={name:/.*\[(.*)\]/.exec(a(b).attr("name"))[1]},a.ajax({url:first_part_of_url+app+"/locations.json",type:"POST",data:data,success:function(a,b,d){a.action="shareaholic_add_location";button.data("location_id",a.location.id);Shareaholic.disable_buttons();Shareaholic.submit_to_admin(a,function(a){console.log(a)})},failure:function(a){console.log(a)},
6
- xhrFields:{withCredentials:!0}}))};Shareaholic.submit_to_admin=function(b,c){a.ajax({url:ajaxurl,type:"POST",data:b,success:function(a){try{a=JSON.parse(a)}catch(b){a={}}c(a)},failure:function(a){try{a=JSON.parse(a)}catch(b){a={}}c(a)}})};a(document).ready(function(){Shareaholic.disable_buttons();Shareaholic.bind_button_clicks(Shareaholic.click_objects.app_settings);Shareaholic.bind_button_clicks(Shareaholic.click_objects.general_settings);Shareaholic.click_objects.unverified_general_settings&&Shareaholic.bind_button_clicks(Shareaholic.click_objects.unverified_general_settings,
7
- !0);a("#terms_of_service_modal").reveal({closeonbackgroundclick:!1,closeonescape:!1,topPosition:100});a("#failed_to_create_api_key").reveal({closeonbackgroundclick:!1,closeonescape:!1});a("#get_started").on("click",function(a){a.preventDefault();data={action:"shareaholic_accept_terms_of_service"};Shareaholic.submit_to_admin(data,function(){location.reload()})});a("form input[type=checkbox]").on("click",function(){a(this).is(":checked")&&!a(this).data("location_id")&&Shareaholic.create_new_location(this)})})})(sQuery);
1
+ (function(b){window.Shareaholic=window.Shareaholic||{};window.shareaholic_debug=!0;Shareaholic.bind_button_clicks=function(a,c){c&&b(a.selector).off("click.app_settings");b(a.selector).off("click.app_settings").on("click.app_settings",function(c){button=this;c.preventDefault();url=a.url(this);if("#general_settings"==a.selector)return window.open(url),!1;$frame=b("<iframe>",{src:url}).appendTo("#iframe_container");a.callback&&a.callback(this);b("#editing_modal").reveal({topPosition:50,close:function(){a.close&&
2
+ a.close(button);$frame.remove()}})})};Shareaholic.click_objects={app_settings:{selector:"#app_settings button",url:function(a){id=b(a).data("location_id");app=b(a).data("app");url=first_part_of_url+b(a).data("href")+"?embedded=true&verification_key="+verification_key;return url=url.replace(/{{id}}/,id)},callback:function(a){id=b(a).data("location_id");app=b(a).data("app");text="You can also use this shortcode to place this {{app}} App anywhere.";html="<div id='shortcode_container'> <span id='shortcode_description'></span> <textarea id='shortcode' name='widget_div' onclick='select();' readonly='readonly'></textarea> </div>";
3
+ b(html).appendTo(".reveal-modal");b("#shortcode_description").text(text.replace(/{{app}}/,Shareaholic.titlecase(app)));b("#shortcode").text('[shareaholic app="'+app+'" id="'+id+'"]')},close:function(a){b("#shortcode_container").remove()}},general_settings:{selector:"#general_settings",url:function(a){return first_part_of_url+"edit?verification_key="+verification_key}}};Shareaholic.Utils.PostMessage.receive("settings_saved",{success:function(a){b('input[type="submit"]').click()},failure:function(a){console.log(a)}});
4
+ Shareaholic.titlecase=function(a){return a.charAt(0).toUpperCase()+a.replace(/_[a-z]/g,function(a){return a.toUpperCase().replace(/_/," ")}).slice(1)};Shareaholic.disable_buttons=function(){b("#app_settings button").each(function(){b(this).data("location_id")?b(this).removeAttr("disabled"):b(this).attr("disabled","disabled")})};Shareaholic.create_new_location=function(a){button=b(a).siblings("button");app=button.data("app");location_id=button.data("location_id");location_id||(data={},data["configuration_"+
5
+ app+"_location"]={name:/.*\[(.*)\]/.exec(b(a).attr("name"))[1]},b.ajax({url:first_part_of_url+app+"/locations.json",type:"POST",data:data,success:function(a,b,d){a.action="shareaholic_add_location";button.data("location_id",a.location.id);Shareaholic.disable_buttons();Shareaholic.submit_to_admin(a,function(a){console.log(a)})},failure:function(a){console.log(a)},xhrFields:{withCredentials:!0}}))};Shareaholic.submit_to_admin=function(a,c){b.ajax({url:ajaxurl,type:"POST",data:a,success:function(a){try{a=
6
+ JSON.parse(a)}catch(b){a={}}c(a)},failure:function(a){try{a=JSON.parse(a)}catch(b){a={}}c(a)}})};b(document).ready(function(){Shareaholic.disable_buttons();Shareaholic.bind_button_clicks(Shareaholic.click_objects.app_settings);Shareaholic.bind_button_clicks(Shareaholic.click_objects.general_settings);Shareaholic.click_objects.unverified_general_settings&&Shareaholic.bind_button_clicks(Shareaholic.click_objects.unverified_general_settings,!0);b("#terms_of_service_modal").reveal({closeonbackgroundclick:!1,
7
+ closeonescape:!1,topPosition:50});b("#failed_to_create_api_key").reveal({closeonbackgroundclick:!1,closeonescape:!1,topPosition:50});b("#get_started").on("click",function(a){a.preventDefault();data={action:"shareaholic_accept_terms_of_service"};Shareaholic.submit_to_admin(data,function(){location.reload()})});b("form input[type=checkbox]").on("click",function(){b(this).is(":checked")&&!b(this).data("location_id")&&Shareaholic.create_new_location(this)})})})(sQuery);
languages/shareaholic.pot CHANGED
@@ -3,9 +3,9 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Shareaholic | share buttons, analytics, related content "
6
- "7.0.3.3\n"
7
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/shareaholic\n"
8
- "POT-Creation-Date: 2013-07-29 16:03:53+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -13,11 +13,11 @@ msgstr ""
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
 
16
- #: admin.php:230 admin.php:294
17
  msgid "Settings successfully saved"
18
  msgstr ""
19
 
20
- #: admin.php:289
21
  msgid "Settings successfully reset. Refresh this page to complete the reset."
22
  msgstr ""
23
 
@@ -25,32 +25,99 @@ msgstr ""
25
  msgid "Shareaholic: Advanced Settings"
26
  msgstr ""
27
 
28
- #: templates/advanced_settings.php:5
29
  msgid "You rarely should need to edit the settings on this page."
30
  msgstr ""
31
 
32
- #: templates/advanced_settings.php:15
 
 
 
 
 
 
 
 
 
 
 
33
  msgid "Disable Analytics"
34
  msgstr ""
35
 
36
- #: templates/advanced_settings.php:15
37
  msgid "(it is recommended NOT to disable analytics)"
38
  msgstr ""
39
 
40
- #: templates/advanced_settings.php:21
41
  msgid "Do not automatically include <code>Open Graph</code> tags"
42
  msgstr ""
43
 
44
- #: templates/advanced_settings.php:21
45
  msgid "(it is recommended NOT to disable open graph tags)"
46
  msgstr ""
47
 
48
- #: templates/advanced_settings.php:26 templates/settings.php:88
 
 
 
 
49
  msgid "Save Changes"
50
  msgstr ""
51
 
52
- #: templates/advanced_settings.php:34
53
- msgid "Reset Everything"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  msgstr ""
55
 
56
  #: templates/deprecation_warnings.php:6
@@ -107,39 +174,51 @@ msgstr ""
107
  msgid "Shareaholic: Available Apps"
108
  msgstr ""
109
 
110
- #: templates/settings.php:20
111
  msgid ""
112
  "First time here? Read %sUnderstanding the new Shareaholic for WordPress "
113
  "interface and configuration settings.%s"
114
  msgstr ""
115
 
116
- #: templates/settings.php:20
117
  msgid ""
118
  "If you are upgrading from an earlier version of Shareaholic for WordPress "
119
  "and need help, have a question or have a bug to report, please %slet us know"
120
  "%s."
121
  msgstr ""
122
 
123
- #: templates/settings.php:23
124
  msgid "Share Buttons"
125
  msgstr ""
126
 
127
- #: templates/settings.php:24
128
  msgid ""
129
  "Pick where you want your buttons to be displayed. Click \"Edit\" to "
130
  "customize look & feel, themes, share counters, alignment, etc."
131
  msgstr ""
132
 
133
- #: templates/settings.php:50
134
  msgid "Related Content / Recommendations"
135
  msgstr ""
136
 
137
- #: templates/settings.php:51
138
  msgid ""
139
  "Pick where you want Related Content to be displayed. Click \"Edit\" to "
140
  "customize look & feel, themes, block lists, etc."
141
  msgstr ""
142
 
 
 
 
 
 
 
 
 
 
 
 
 
143
  #: templates/terms_of_service_modal.php:2
144
  msgid "Thanks for Installing!"
145
  msgstr ""
@@ -174,11 +253,39 @@ msgid ""
174
  "and %sPrivacy Policy%s."
175
  msgstr ""
176
 
177
- #: templates/why_to_sign_up.php:104
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
178
  msgid "Edit General Website Settings"
179
  msgstr ""
180
 
181
- #: utilities.php:91
182
  msgid "Settings"
183
  msgstr ""
184
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Shareaholic | share buttons, analytics, related content "
6
+ "7.0.4.1\n"
7
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/shareaholic\n"
8
+ "POT-Creation-Date: 2013-09-25 16:56:44+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
 
16
+ #: admin.php:230 admin.php:297
17
  msgid "Settings successfully saved"
18
  msgstr ""
19
 
20
+ #: admin.php:291
21
  msgid "Settings successfully reset. Refresh this page to complete the reset."
22
  msgstr ""
23
 
25
  msgid "Shareaholic: Advanced Settings"
26
  msgstr ""
27
 
28
+ #: templates/advanced_settings.php:7
29
  msgid "You rarely should need to edit the settings on this page."
30
  msgstr ""
31
 
32
+ #: templates/advanced_settings.php:7
33
+ msgid ""
34
+ "After changing any Shareaholic advanced setting, it is good practice to "
35
+ "clear any WordPress caching plugins (if you are using one, like W3 Total "
36
+ "Cache or WP Super Cache)."
37
+ msgstr ""
38
+
39
+ #: templates/advanced_settings.php:14
40
+ msgid "Advanced"
41
+ msgstr ""
42
+
43
+ #: templates/advanced_settings.php:19
44
  msgid "Disable Analytics"
45
  msgstr ""
46
 
47
+ #: templates/advanced_settings.php:19
48
  msgid "(it is recommended NOT to disable analytics)"
49
  msgstr ""
50
 
51
+ #: templates/advanced_settings.php:25
52
  msgid "Do not automatically include <code>Open Graph</code> tags"
53
  msgstr ""
54
 
55
+ #: templates/advanced_settings.php:25
56
  msgid "(it is recommended NOT to disable open graph tags)"
57
  msgstr ""
58
 
59
+ #: templates/advanced_settings.php:28 templates/settings.php:90
60
+ msgid "Saving Changes..."
61
+ msgstr ""
62
+
63
+ #: templates/advanced_settings.php:28 templates/settings.php:90
64
  msgid "Save Changes"
65
  msgstr ""
66
 
67
+ #: templates/advanced_settings.php:36
68
+ msgid "Server Connectivity"
69
+ msgstr ""
70
+
71
+ #: templates/advanced_settings.php:38
72
+ msgid "All Shareaholic servers are reachable"
73
+ msgstr ""
74
+
75
+ #: templates/advanced_settings.php:39
76
+ msgid "Shareaholic should be working correctly."
77
+ msgstr ""
78
+
79
+ #: templates/advanced_settings.php:39
80
+ msgid "All Shareaholic servers are accessible."
81
+ msgstr ""
82
+
83
+ #: templates/advanced_settings.php:41
84
+ msgid "Unable to reach any Shareaholic server"
85
+ msgstr ""
86
+
87
+ #: templates/advanced_settings.php:41
88
+ msgid "Checking..."
89
+ msgstr ""
90
+
91
+ #: templates/advanced_settings.php:41
92
+ msgid "Re-check"
93
+ msgstr ""
94
+
95
+ #: templates/advanced_settings.php:42
96
+ msgid ""
97
+ "A network problem or firewall is blocking all connections from your web "
98
+ "server to Shareaholic.com. <strong>Shareaholic cannot work correctly until "
99
+ "this is fixed.</strong> Please contact your web host or firewall "
100
+ "administrator and give them <a href=\"%s\" target=\"_blank\">this "
101
+ "information about Shareaholic and firewalls</a>. Let us <a href=\"#\" "
102
+ "onclick=\"%s\">know</a> too, so we can follow up!"
103
+ msgstr ""
104
+
105
+ #: templates/advanced_settings.php:52
106
+ msgid "Reset"
107
+ msgstr ""
108
+
109
+ #: templates/advanced_settings.php:53
110
+ msgid ""
111
+ "This will reset all of your settings and start you from scratch. This can "
112
+ "not be undone."
113
+ msgstr ""
114
+
115
+ #: templates/advanced_settings.php:55
116
+ msgid "Resetting Plugin..."
117
+ msgstr ""
118
+
119
+ #: templates/advanced_settings.php:55
120
+ msgid "Reset Plugin"
121
  msgstr ""
122
 
123
  #: templates/deprecation_warnings.php:6
174
  msgid "Shareaholic: Available Apps"
175
  msgstr ""
176
 
177
+ #: templates/settings.php:22
178
  msgid ""
179
  "First time here? Read %sUnderstanding the new Shareaholic for WordPress "
180
  "interface and configuration settings.%s"
181
  msgstr ""
182
 
183
+ #: templates/settings.php:22
184
  msgid ""
185
  "If you are upgrading from an earlier version of Shareaholic for WordPress "
186
  "and need help, have a question or have a bug to report, please %slet us know"
187
  "%s."
188
  msgstr ""
189
 
190
+ #: templates/settings.php:25
191
  msgid "Share Buttons"
192
  msgstr ""
193
 
194
+ #: templates/settings.php:26
195
  msgid ""
196
  "Pick where you want your buttons to be displayed. Click \"Edit\" to "
197
  "customize look & feel, themes, share counters, alignment, etc."
198
  msgstr ""
199
 
200
+ #: templates/settings.php:52
201
  msgid "Related Content / Recommendations"
202
  msgstr ""
203
 
204
+ #: templates/settings.php:53
205
  msgid ""
206
  "Pick where you want Related Content to be displayed. Click \"Edit\" to "
207
  "customize look & feel, themes, block lists, etc."
208
  msgstr ""
209
 
210
+ #: templates/settings.php:75
211
+ msgid "Data Status:"
212
+ msgstr ""
213
+
214
+ #: templates/settings.php:79
215
+ msgid "Processing"
216
+ msgstr ""
217
+
218
+ #: templates/settings.php:81
219
+ msgid "Ready"
220
+ msgstr ""
221
+
222
  #: templates/terms_of_service_modal.php:2
223
  msgid "Thanks for Installing!"
224
  msgstr ""
253
  "and %sPrivacy Policy%s."
254
  msgstr ""
255
 
256
+ #: templates/why_to_sign_up.php:2
257
+ msgid "Customize even more with a FREE Shareaholic account."
258
+ msgstr ""
259
+
260
+ #: templates/why_to_sign_up.php:3
261
+ msgid "Such as:"
262
+ msgstr ""
263
+
264
+ #: templates/why_to_sign_up.php:5
265
+ msgid "Customize tweets coming from your website."
266
+ msgstr ""
267
+
268
+ #: templates/why_to_sign_up.php:6
269
+ msgid "Choose your URL Shortener, or use your own."
270
+ msgstr ""
271
+
272
+ #: templates/why_to_sign_up.php:7
273
+ msgid "Choose from various themes and styles."
274
+ msgstr ""
275
+
276
+ #: templates/why_to_sign_up.php:8
277
+ msgid "Exclude pages from Recommendations engine."
278
+ msgstr ""
279
+
280
+ #: templates/why_to_sign_up.php:9
281
+ msgid "Plus tons of great features and customization options."
282
+ msgstr ""
283
+
284
+ #: templates/why_to_sign_up.php:11
285
  msgid "Edit General Website Settings"
286
  msgstr ""
287
 
288
+ #: utilities.php:92
289
  msgid "Settings"
290
  msgstr ""
291
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: shareaholic
3
  Tags: sexybookmarks, shareaholic, shareholic, facebook, twitter, linkedin, URL Shortener, bitly, tinyurl, Goo.gl, Google+1, Google Analytics, Google Plus, Google, Instapaper, Wish List, Digg, Gmail, Google Bookmarks, Translate, Tumblr, AIM, Yahoo Messenger, Delicious, StumbleUpon, mister wong, evernote, add this, addtoany, share this, sharethis, share and follow, share and enjoy, sharing is sexy, sharing is caring, yahoo, reddit, hackernews, tweet button, twitter button, fark, buffer, myspace, orkut, netlog, hubspot, weheartit, printfriendly, yammer, wanelo, pinterest, google translate, bookmarks, social, email button, social share, socialize, sociable, sharebar, bookmark button, share button, social bookmarking, bookmarks menu, bookmarking, share, seo, analytics, stats, sharing, facebook like, facebook recommend, WPMU, mutisite, shortcode, yaarp, yarpp, nrelate, outbrain, linkwithin, related content, related posts, related, popular posts, popular, thumbnails, recommendations
4
  Requires at least: 2.7
5
  Tested up to: 3.6.1
6
- Stable tag: 7.0.4.1
7
 
8
  Adds an attractive social bookmarking menu and related content widget to your posts, pages, index, or any combination of the three.
9
 
@@ -148,6 +148,9 @@ Please see here: [Usage & Installation Instructions](https://shareaholic.com/too
148
 
149
  == Changelog ==
150
 
 
 
 
151
  = 7.0.4.1 =
152
  * Added "Server Connectivity" section to Advanced Settings
153
  * Cleaned up localization strings
@@ -939,6 +942,9 @@ Please see here: [Usage & Installation Instructions](https://shareaholic.com/too
939
 
940
  == Upgrade Notice ==
941
 
 
 
 
942
  = 7.0.4.1 =
943
  New "Server Connectivity" section added under "Advanced Settings"
944
 
3
  Tags: sexybookmarks, shareaholic, shareholic, facebook, twitter, linkedin, URL Shortener, bitly, tinyurl, Goo.gl, Google+1, Google Analytics, Google Plus, Google, Instapaper, Wish List, Digg, Gmail, Google Bookmarks, Translate, Tumblr, AIM, Yahoo Messenger, Delicious, StumbleUpon, mister wong, evernote, add this, addtoany, share this, sharethis, share and follow, share and enjoy, sharing is sexy, sharing is caring, yahoo, reddit, hackernews, tweet button, twitter button, fark, buffer, myspace, orkut, netlog, hubspot, weheartit, printfriendly, yammer, wanelo, pinterest, google translate, bookmarks, social, email button, social share, socialize, sociable, sharebar, bookmark button, share button, social bookmarking, bookmarks menu, bookmarking, share, seo, analytics, stats, sharing, facebook like, facebook recommend, WPMU, mutisite, shortcode, yaarp, yarpp, nrelate, outbrain, linkwithin, related content, related posts, related, popular posts, popular, thumbnails, recommendations
4
  Requires at least: 2.7
5
  Tested up to: 3.6.1
6
+ Stable tag: 7.0.4.2
7
 
8
  Adds an attractive social bookmarking menu and related content widget to your posts, pages, index, or any combination of the three.
9
 
148
 
149
  == Changelog ==
150
 
151
+ = 7.0.4.2 =
152
+ * Better debug prompts
153
+
154
  = 7.0.4.1 =
155
  * Added "Server Connectivity" section to Advanced Settings
156
  * Cleaned up localization strings
942
 
943
  == Upgrade Notice ==
944
 
945
+ = 7.0.4.2 =
946
+ Better debug prompts
947
+
948
  = 7.0.4.1 =
949
  New "Server Connectivity" section added under "Advanced Settings"
950
 
shareaholic.php CHANGED
@@ -3,14 +3,14 @@
3
  * The main file!
4
  *
5
  * @package shareaholic
6
- * @version 7.0.4.1
7
  */
8
 
9
  /*
10
  Plugin Name: Shareaholic | share buttons, analytics, related content
11
  Plugin URI: https://shareaholic.com/publishers/
12
  Description: Whether you want to get people sharing, grow your fans, make money, or know who's reading your content, Shareaholic will help you get it done. See <a href="admin.php?page=shareaholic-settings">configuration panel</a> for more settings.
13
- Version: 7.0.4.1
14
  Author: Shareaholic
15
  Author URI: https://shareaholic.com
16
  Text Domain: shareaholic
@@ -53,7 +53,7 @@ require_once(SHAREAHOLIC_DIR . '/deprecation.php');
53
  */
54
  class Shareaholic {
55
  const URL = 'https://shareaholic.com';
56
- const VERSION = '7.0.4.1';
57
  /**
58
  * Starts off as false so that ::get_instance() returns
59
  * a new instance.
3
  * The main file!
4
  *
5
  * @package shareaholic
6
+ * @version 7.0.4.2
7
  */
8
 
9
  /*
10
  Plugin Name: Shareaholic | share buttons, analytics, related content
11
  Plugin URI: https://shareaholic.com/publishers/
12
  Description: Whether you want to get people sharing, grow your fans, make money, or know who's reading your content, Shareaholic will help you get it done. See <a href="admin.php?page=shareaholic-settings">configuration panel</a> for more settings.
13
+ Version: 7.0.4.2
14
  Author: Shareaholic
15
  Author URI: https://shareaholic.com
16
  Text Domain: shareaholic
53
  */
54
  class Shareaholic {
55
  const URL = 'https://shareaholic.com';
56
+ const VERSION = '7.0.4.2';
57
  /**
58
  * Starts off as false so that ::get_instance() returns
59
  * a new instance.
templates/failed_to_create_api_key_modal.php CHANGED
@@ -4,14 +4,21 @@
4
  <div class="line pvl">
5
  <div class="unit size3of3">
6
  <p>
7
- <?php echo sprintf(__('It appears that we are having some trouble setting up Shareaholic for WordPress right now. This is usually temporary. Please revisit this section after a few minutes or click "retry" now.', 'shareaholic')); ?>
8
  </p>
9
  </div>
10
  </div>
11
  <div class="pvl">
12
- <a id='get_started' class="btn_main" href=''><?php echo sprintf(__('Retry', 'shareaholic')); ?></a>
13
  <br /><br />
14
- <a href='<?php echo admin_url() ?>' style="font-size:12px; font-weight:normal;"><?php echo sprintf(__('or, try again later', 'shareaholic')); ?></a>
 
 
 
 
 
 
15
  </div>
16
  </div>
17
  </div>
 
4
  <div class="line pvl">
5
  <div class="unit size3of3">
6
  <p>
7
+ <?php _e('It appears that we are having some trouble setting up Shareaholic for WordPress right now. This is usually temporary. Please revisit this section after a few minutes or click "retry" now.', 'shareaholic'); ?>
8
  </p>
9
  </div>
10
  </div>
11
  <div class="pvl">
12
+ <a id='get_started' class="btn_main" href=''><?php echo _e('Retry', 'shareaholic'); ?></a>
13
  <br /><br />
14
+ <span style="font-size:12px; font-weight:normal;">
15
+ <a href='<?php echo admin_url() ?>'><?php _e('or, try again later.', 'shareaholic'); ?></a>
16
+ </span>
17
+ <br /><br />
18
+ <span style="font-size:11px; font-weight:normal;">
19
+ <?php echo sprintf(__('If you continue to get this prompt for more than a few hours, try to check server connectivity or reset the plugin in %sadvanced settings%s.', 'shareaholic'), '<a href="admin.php?page=shareaholic-advanced">', '</a>'); ?> <?php echo sprintf(__('Also, if you have a question or have a bug to report, please %slet us know%s.', 'shareaholic'), '<a href="#" onclick="SnapEngage.startLink();">','</a>'); ?>
20
+ </span>
21
  </div>
22
  </div>
23
  </div>
24
+
templates/settings.php CHANGED
@@ -13,7 +13,7 @@ window.verification_key = '<?php echo $settings['verification_key'] ?>'
13
  </script>
14
 
15
  <div class='unit size3of5'>
16
- <form name="settings" method="post" action="<?php echo $action; ?>"></iframe>
17
  <?php wp_nonce_field($action, 'nonce_field') ?>
18
  <input type="hidden" name="already_submitted" value="Y">
19
 
13
  </script>
14
 
15
  <div class='unit size3of5'>
16
+ <form name="settings" method="post" action="<?php echo $action; ?>">
17
  <?php wp_nonce_field($action, 'nonce_field') ?>
18
  <input type="hidden" name="already_submitted" value="Y">
19
 
templates/verify_api_key_js.php CHANGED
@@ -22,7 +22,6 @@ Shareaholic.click_objects['unverified_general_settings'] = {
22
  url: function(button) {
23
  url = first_part_of_url + 'verify'
24
  + '?verification_key=<?php echo $verification_key ?>'
25
- + '&embedded=true'
26
  + '&redirect_to='
27
  + encodeURIComponent(
28
  Shareaholic.click_objects['general_settings'].url(button)
22
  url: function(button) {
23
  url = first_part_of_url + 'verify'
24
  + '?verification_key=<?php echo $verification_key ?>'
 
25
  + '&redirect_to='
26
  + encodeURIComponent(
27
  Shareaholic.click_objects['general_settings'].url(button)