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

Version Description

  • Fix for Cross-Site Request Forgery vulnerability. Upgrade immediately.
  • Shareaholic is 100% compatible with WordPress 3.6! Yay!
  • Added close button to settings modals
  • Added "loading" image to modals
  • Added additional strings for localization
  • Localizations
    • Added Simplified Chinese (zh_CN) by Larry Zhang
    • Added Greek (el) by Takis Bouyouris
Download this release

Release Info

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

Code changes from version 7.0.3.3 to 7.0.3.4

admin.php CHANGED
@@ -276,6 +276,7 @@ class ShareaholicAdmin {
276
  public static function advanced_admin() {
277
  $settings = ShareaholicUtilities::get_settings();
278
  $api_key = ShareaholicUtilities::get_or_create_api_key();
 
279
 
280
  if (!ShareaholicUtilities::has_accepted_terms_of_service()) {
281
  ShareaholicUtilities::load_template('terms_of_service_modal', array(
@@ -283,14 +284,16 @@ class ShareaholicAdmin {
283
  ));
284
  }
285
 
286
- if(isset($_POST['reset_settings']) && $_POST['reset_settings'] == 'Y') {
 
287
  ShareaholicUtilities::destroy_settings();
288
  echo "<div class='updated settings_updated'><p><strong>"
289
  . sprintf(__('Settings successfully reset. Refresh this page to complete the reset.', 'shareaholic'))
290
  . "</strong></p></div>";
291
  }
292
 
293
- if(isset($_POST['already_submitted']) && $_POST['already_submitted'] == 'Y') {
 
294
  echo "<div class='updated settings_updated'><p><strong>". sprintf(__('Settings successfully saved', 'shareaholic')) . "</strong></p></div>";
295
  foreach (array('disable_tracking', 'disable_og_tags') as $setting) {
296
  if (isset($settings[$setting]) &&
@@ -321,7 +324,7 @@ class ShareaholicAdmin {
321
 
322
  ShareaholicUtilities::load_template('advanced_settings', array(
323
  'settings' => ShareaholicUtilities::get_settings(),
324
- 'action' => str_replace( '%7E', '~', $_SERVER['REQUEST_URI'])
325
  ));
326
  }
327
 
276
  public static function advanced_admin() {
277
  $settings = ShareaholicUtilities::get_settings();
278
  $api_key = ShareaholicUtilities::get_or_create_api_key();
279
+ $action = str_replace( '%7E', '~', $_SERVER['REQUEST_URI']);
280
 
281
  if (!ShareaholicUtilities::has_accepted_terms_of_service()) {
282
  ShareaholicUtilities::load_template('terms_of_service_modal', array(
284
  ));
285
  }
286
 
287
+ if(isset($_POST['reset_settings']) && $_POST['reset_settings'] == 'Y' &&
288
+ check_admin_referer($action, 'nonce_field')) {
289
  ShareaholicUtilities::destroy_settings();
290
  echo "<div class='updated settings_updated'><p><strong>"
291
  . sprintf(__('Settings successfully reset. Refresh this page to complete the reset.', 'shareaholic'))
292
  . "</strong></p></div>";
293
  }
294
 
295
+ if(isset($_POST['already_submitted']) && $_POST['already_submitted'] == 'Y' &&
296
+ check_admin_referer($action, 'nonce_field')) {
297
  echo "<div class='updated settings_updated'><p><strong>". sprintf(__('Settings successfully saved', 'shareaholic')) . "</strong></p></div>";
298
  foreach (array('disable_tracking', 'disable_og_tags') as $setting) {
299
  if (isset($settings[$setting]) &&
324
 
325
  ShareaholicUtilities::load_template('advanced_settings', array(
326
  'settings' => ShareaholicUtilities::get_settings(),
327
+ 'action' => $action
328
  ));
329
  }
330
 
assets/css/main.css CHANGED
@@ -1,5 +1,6 @@
1
  body {
2
  background: transparent;
 
3
  }
4
 
5
  #app_settings{
@@ -66,6 +67,12 @@ h3 {
66
  height: 550px;
67
  }
68
 
 
 
 
 
 
 
69
  #shortcode_container, #shortcode {
70
  cursor: inherit;
71
  width: 100%;
@@ -284,3 +291,77 @@ input[type='text'] {
284
  background-color: #45a147 !important;
285
  border-color: #316632 !important;
286
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  body {
2
  background: transparent;
3
+ font-family: sans-serif;
4
  }
5
 
6
  #app_settings{
67
  height: 550px;
68
  }
69
 
70
+ .bg-loading-img {
71
+ background-image:url(../img/ajax_loader_green_128.gif);
72
+ background-repeat:no-repeat;
73
+ background-position: center center;
74
+ }
75
+
76
  #shortcode_container, #shortcode {
77
  cursor: inherit;
78
  width: 100%;
291
  background-color: #45a147 !important;
292
  border-color: #316632 !important;
293
  }
294
+
295
+ .signuppromo{
296
+ border: 1px solid #1E8520;
297
+ background: #45A147;
298
+ border-radius: 6px;
299
+ padding: 20px 20px;
300
+ color: white;
301
+ font-size: 14px;
302
+ float: right;
303
+ margin: 30px;
304
+ min-width: 250px;
305
+ box-shadow: 0px 1px 5px rgba(0,0,0,0.27);
306
+ }
307
+
308
+ .promoh1{
309
+ font-size: 24px;
310
+ line-height: 28px;
311
+ margin: 10px 0 0 0;
312
+ padding: 0;
313
+ text-shadow: 0px 1px 0px rgba(0,0,0,0.4);
314
+ }
315
+
316
+ .promosub{
317
+ color: black;
318
+ margin: 10px 0 0 0;
319
+ font-weight: bold;
320
+ }
321
+
322
+ .signuppromo ul{
323
+ margin: 24px 0px;
324
+ }
325
+
326
+ .signuppromo ul li{
327
+ margin: 10px 0px;
328
+ }
329
+
330
+ .signuppromo a,.signuppromo a:active {
331
+ -moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
332
+ -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
333
+ box-shadow:inset 0px 1px 0px 0px #ffffff;
334
+ background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #ffffff), color-stop(1, #f6f6f6));
335
+ background:-moz-linear-gradient(top, #ffffff 5%, #f6f6f6 100%);
336
+ background:-webkit-linear-gradient(top, #ffffff 5%, #f6f6f6 100%);
337
+ background:-o-linear-gradient(top, #ffffff 5%, #f6f6f6 100%);
338
+ background:-ms-linear-gradient(top, #ffffff 5%, #f6f6f6 100%);
339
+ background:linear-gradient(to bottom, #ffffff 5%, #f6f6f6 100%);
340
+ filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f6f6f6',GradientType=0);
341
+ background-color:#ffffff;
342
+ -moz-border-radius:6px;
343
+ -webkit-border-radius:6px;
344
+ border-radius:6px;
345
+ width: 50%;
346
+ border:1px solid #dcdcdc;
347
+ text-align: center;
348
+ margin: 0 auto;
349
+ display:block;
350
+ color:#666666;
351
+ font-size:15px;
352
+ font-weight:bold;
353
+ padding:16px 24px;
354
+ text-decoration:none;
355
+ text-shadow:0px 1px 0px #ffffff;
356
+ }
357
+
358
+ .signuppromo a:hover {
359
+ background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #f6f6f6), color-stop(1, #ffffff));
360
+ background:-moz-linear-gradient(top, #f6f6f6 5%, #ffffff 100%);
361
+ background:-webkit-linear-gradient(top, #f6f6f6 5%, #ffffff 100%);
362
+ background:-o-linear-gradient(top, #f6f6f6 5%, #ffffff 100%);
363
+ background:-ms-linear-gradient(top, #f6f6f6 5%, #ffffff 100%);
364
+ background:linear-gradient(to bottom, #f6f6f6 5%, #ffffff 100%);
365
+ filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6f6f6', endColorstr='#ffffff',GradientType=0);
366
+ background-color:#f6f6f6;
367
+ }
assets/css/reveal.css CHANGED
@@ -46,8 +46,10 @@
46
  color: #aaa;
47
  text-shadow: 0 -1px 1px rbga(0,0,0,.6);
48
  font-weight: bold;
 
49
  cursor: pointer;
50
- }
 
51
  /*
52
 
53
  NOTES
46
  color: #aaa;
47
  text-shadow: 0 -1px 1px rbga(0,0,0,.6);
48
  font-weight: bold;
49
+ text-decoration: none;
50
  cursor: pointer;
51
+ }
52
+
53
  /*
54
 
55
  NOTES
assets/img/ajax_loader_green_128.gif ADDED
Binary file
languages/readme.txt ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ == Shareaholic in Your Language ==
2
+
3
+ Shareaholic is used all over the world. Our goal is to support Shareaholic in the native language of all our users and people who want to use our products.
4
+
5
+ We would appreciate your help in translating Shareaholic into even more languages! It doesn’t take much to get started. Thanks so much!
6
+
7
+ == How to translate Shareaholic into your own language ==
8
+
9
+ Instructions: https://shareaholic.com/tools/wordpress/translate
10
+
11
+ == Shareaholic for WordPress is currently localized in the following languages: ==
12
+
13
+ * English (en)
14
+ * Simplified Chinese (zh_CN) by [Larry Zhang](http://zhxl.me)
15
+ * Greek (el) by [Takis Bouyouris](http://www.nevma.gr)
16
+ * Contribute a translation!
17
+
18
+ == Notes ==
19
+
20
+ * http://codex.wordpress.org/WordPress_in_Your_Language
languages/shareaholic-el.mo ADDED
Binary file
languages/shareaholic-el.po ADDED
@@ -0,0 +1,203 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2013 Shareaholic | share buttons, analytics, related content
2
+ # This file is distributed under the same license as the Shareaholic | share buttons, analytics, related content package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Shareaholic | share buttons, analytics, related content "
6
+ "7.0.0.8\n"
7
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/shareaholic\n"
8
+ "POT-Creation-Date: 2013-07-09 22:02:07+00:00\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "PO-Revision-Date: 2013-07-29 15:28+0200\n"
13
+ "Last-Translator: Takis Bouyouris <takis@nevma.gr>\n"
14
+ "Language-Team: LANGUAGE <LL@li.org>\n"
15
+ "X-Generator: Poedit 1.5.4\n"
16
+
17
+ #: admin.php:258
18
+ msgid "Settings successfully saved"
19
+ msgstr "Οι ρυθμίσεις έχουν αποθηκευτεί με επιτυχία"
20
+
21
+ #: templates/advanced_settings.php:3
22
+ msgid "Shareaholic: Advanced Settings"
23
+ msgstr "Shareaholic: Λεπτομερείς Ρυθμίσεις"
24
+
25
+ #: templates/advanced_settings.php:5
26
+ msgid "You rarely should need to edit the settings on this page."
27
+ msgstr ""
28
+ "Η ανάγκη να επεξεργαστείτε τις ρυθμίσεις σε αυτή τη σελίδα είναι πολύ σπάνια."
29
+
30
+ #: templates/advanced_settings.php:15
31
+ msgid "Disable Analytics"
32
+ msgstr "Απενεργοποιήστε τα Στατιστικά"
33
+
34
+ #: templates/advanced_settings.php:15
35
+ msgid "(it is recommended NOT to disable analytics)"
36
+ msgstr "(συνίσταται να ΜΗΝ απενεργοποιήσετε τα στατιστικά)"
37
+
38
+ #: templates/advanced_settings.php:21
39
+ msgid "Do not automatically include <code>Open Graph</code> tags"
40
+ msgstr "Μην συμπεριλάβετε αυτόματα τα tags του <code>Open Graph</code>"
41
+
42
+ #: templates/advanced_settings.php:21
43
+ msgid "(it is recommended NOT to disable open graph tags)"
44
+ msgstr "(συνίσταται να ΜΗΝ απενεργοποιήσετε τα tags του open graph)"
45
+
46
+ #: templates/advanced_settings.php:26 templates/settings.php:71
47
+ msgid "Save Changes"
48
+ msgstr "Αποθήκευση αλλαγών"
49
+
50
+ #: templates/deprecation_warnings.php:6
51
+ msgid ""
52
+ "is being deprecated. Please update the code found in the following files:"
53
+ msgstr ""
54
+ "συνίσταται να μην χρησιμοποιείται πια. Παρακαλούμε ανανεώστε τον κώδικα στις "
55
+ "παρακάτω γραμμές:"
56
+
57
+ #: templates/failed_to_create_api_key.php:6
58
+ #: templates/terms_of_service_notice.php:6
59
+ msgid ""
60
+ "Action required: You've installed Shareaholic for WordPress. We're ready "
61
+ "when you are. %sGet started now &raquo;%s"
62
+ msgstr ""
63
+ "Δώστε προσοχή εδώ: Το Shareaholic για το WordPress έχει εγκατασταθεί. Είστε "
64
+ "έτοιμοι. %sΞεκινήστε τώρα &raquo;%s"
65
+
66
+ #: templates/failed_to_create_api_key_modal.php:2
67
+ msgid "Setup Shareaholic"
68
+ msgstr "Ρυθμίστε το Shareaholic"
69
+
70
+ #: templates/failed_to_create_api_key_modal.php:7
71
+ msgid ""
72
+ "It appears that we are having some trouble setting up Shareaholic for "
73
+ "WordPress right now. This is usually temporary. Please revisit this section "
74
+ "after a few minutes or click \"retry\" now."
75
+ msgstr ""
76
+ "Παρουσιάστηκε κάποιο πρόβλημα κατά τη ρύθμιση του Shareaholic για το "
77
+ "WordPress. Συνήθως αυτό είναι προσωρινό. Παρακαλούμε επισκεφθείτε αυτή την "
78
+ "περιοχή σε μερικά λεπτά ή πανήστε \"Προσπαθήστε ξανά\" τώρα."
79
+
80
+ #: templates/failed_to_create_api_key_modal.php:12
81
+ msgid "Retry"
82
+ msgstr "Προσπαθήστε ξανά"
83
+
84
+ #: templates/failed_to_create_api_key_modal.php:14
85
+ msgid "or, try again later"
86
+ msgstr "ή προσπαθήστε ξανά αργότερα"
87
+
88
+ #: templates/footer.php:8
89
+ msgid ""
90
+ "If you like our work, show some love and %sgive us a good rating%s. Made "
91
+ "with much love in Boston, Massachusetts."
92
+ msgstr ""
93
+ "Αν σας αρέσει η δουλειά μας, τότε δείξτε μας την αγάπη σας και %δώστε μας "
94
+ "μια καλή βαθμολογία%s. Κατασκευάστηκε στη Βοστώνη της Μασσαχουσέττης με πολύ "
95
+ "αγάπη."
96
+
97
+ #: templates/meta_boxes.php:6
98
+ msgid "Hide Share Buttons"
99
+ msgstr "Κρύψτε τα κουμπιά για το share"
100
+
101
+ #: templates/meta_boxes.php:16
102
+ msgid "Hide Related Content"
103
+ msgstr "Κρύψτε το Σχετικό Περιεχόμενο"
104
+
105
+ #: templates/meta_boxes.php:26
106
+ msgid "Do not include Open Graph tags"
107
+ msgstr "Μη συμπεριλάβετε τα tags για το Open Graph"
108
+
109
+ #: templates/settings.php:3
110
+ msgid "Shareaholic: Available Apps"
111
+ msgstr "Shareaholic: Διαθέσιμες Εφαρμογές"
112
+
113
+ #: templates/settings.php:19
114
+ msgid "Share Buttons"
115
+ msgstr "Κουμπιά για share"
116
+
117
+ #: templates/settings.php:46
118
+ msgid "Related Content / Recommendations"
119
+ msgstr "Σχετικό Περιεχόμενο / Προτάσεις"
120
+
121
+ #: templates/terms_of_service_modal.php:2
122
+ msgid "Thanks for Installing"
123
+ msgstr "Ευχαριστούμε που το Εγκαταστήσατε"
124
+
125
+ #: templates/terms_of_service_modal.php:4
126
+ msgid ""
127
+ "%sShareaholic%s gives you the essential tools you need to become a "
128
+ "successful publisher."
129
+ msgstr ""
130
+ "Το %sShareaholic%s σας παρέχει τα απαραίτητα εργαλεία για να γίνετε ένας "
131
+ "επιτυχημένεος εκδότης."
132
+
133
+ #: templates/terms_of_service_modal.php:8
134
+ msgid ""
135
+ "%sShare buttons%s let your readers post your content to their favorite "
136
+ "networks."
137
+ msgstr ""
138
+ "Τα κουμπιά για το %sShare%s επιτρέπουν στους αναγνώστες σας να κάνουν post "
139
+ "το περιεχόμενό σας στα αγαπημένα τους social networks."
140
+
141
+ #: templates/terms_of_service_modal.php:12
142
+ msgid ""
143
+ "%sRelated content%s keeps people on your site and turns visitors into "
144
+ "readers."
145
+ msgstr ""
146
+ "Το %sΣχετικό Περιεχόμενο%s κάνεις τους χρήστες σας να επανέρχονται στην "
147
+ "ιστοσελίδα σας και τους μετατρέπει σε αναγνώστες σας."
148
+
149
+ #: templates/terms_of_service_modal.php:16
150
+ msgid ""
151
+ "%sAnalytics%s gives you the insight to create tailored content and grow your "
152
+ "site."
153
+ msgstr ""
154
+ "Τα %sΣτατιστικά%s σας δίνουν τη δυνατότητα να δημιουργείτε εξειδικευμένο "
155
+ "περιεχόμενο και να ανπτύσσετε την ιστοσελίδα σας."
156
+
157
+ #: templates/terms_of_service_modal.php:20
158
+ msgid "Get Started"
159
+ msgstr "Ξεκινήστε"
160
+
161
+ #: templates/terms_of_service_modal.php:21
162
+ msgid ""
163
+ "By clicking \"Get Started\" you agree to Shareholic's %sTerms of Service%s "
164
+ "and %sPrivacy Policy%s."
165
+ msgstr ""
166
+ "Πατώντας \"Ξεκινήστε\" συμφωνείτε στους %sΌρους Χρήσης%s και την %sΠολιτική "
167
+ "Εμπιστευτικότητας%s του Shareaholic."
168
+
169
+ #: templates/why_to_sign_up.php:104
170
+ msgid "Edit General Website Settings"
171
+ msgstr "Επεξεργασία Γενικών Ρυθμίσεων Ιστοσελίδας"
172
+
173
+ #: utilities.php:81
174
+ msgid "Settings"
175
+ msgstr "Ρυθμίσεις"
176
+
177
+ #. Plugin Name of the plugin/theme
178
+ msgid "Shareaholic | share buttons, analytics, related content"
179
+ msgstr "Shareaholic | κουμπιά για share, στατιστικά, σχετικό περιεχόμενο"
180
+
181
+ #. Plugin URI of the plugin/theme
182
+ msgid "https://shareaholic.com/publishers/"
183
+ msgstr "https://shareaholic.com/publishers/"
184
+
185
+ #. Description of the plugin/theme
186
+ msgid ""
187
+ "Whether you want to get people sharing, grow your fans, make money, or know "
188
+ "who's reading your content, Shareaholic will help you get it done. See <a "
189
+ "href=\"admin.php?page=shareaholic-settings\">configuration panel</a> for "
190
+ "more settings."
191
+ msgstr ""
192
+ "Παρακινήστε τους χρήστες σας να κάνουν share το περιεχόμενό σας, αναπτύξτε "
193
+ "τη βάση των χρηστών σας, παρακολουθήστε ποιος διαβάζει το περιεχόμενό σας. "
194
+ "Με το Shareaholic θα το καταφέρετε. Πηγαίνεται στην <a href=\"admin.php?"
195
+ "page=shareaholic-settings\">κεντρική οθόνη</a> για περισσότερες ρυθμίσεις."
196
+
197
+ #. Author of the plugin/theme
198
+ msgid "Shareaholic"
199
+ msgstr "Shareaholic"
200
+
201
+ #. Author URI of the plugin/theme
202
+ msgid "https://shareaholic.com"
203
+ msgstr "https://shareaholic.com"
languages/shareaholic-zh_CN.mo ADDED
Binary file
languages/shareaholic-zh_CN.po ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2013 Shareaholic | share buttons, analytics, related content
2
+ # This file is distributed under the same license as the Shareaholic | share buttons, analytics, related content package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Shareaholic | share buttons, analytics, related content "
6
+ "7.0.0.8\n"
7
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/shareaholic\n"
8
+ "POT-Creation-Date: 2013-07-09 22:02:07+00:00\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "PO-Revision-Date: 2013-07-29 09:00+0800\n"
13
+ "Last-Translator: \n"
14
+ "Language-Team: Larry Zhang <zhangxl.tony@gmail.com>\n"
15
+ "X-Generator: Poedit 1.5.7\n"
16
+ "Language: 简体中文\n"
17
+ "X-Poedit-SourceCharset: UTF-8\n"
18
+
19
+ #: admin.php:258
20
+ msgid "Settings successfully saved"
21
+ msgstr "设置成功"
22
+
23
+ #: templates/advanced_settings.php:3
24
+ msgid "Shareaholic: Advanced Settings"
25
+ msgstr "乐享:高级设置"
26
+
27
+ #: templates/advanced_settings.php:5
28
+ msgid "You rarely should need to edit the settings on this page."
29
+ msgstr "您无需修改此页的设置。"
30
+
31
+ #: templates/advanced_settings.php:15
32
+ msgid "Disable Analytics"
33
+ msgstr "停用统计功能"
34
+
35
+ #: templates/advanced_settings.php:15
36
+ msgid "(it is recommended NOT to disable analytics)"
37
+ msgstr "(建议不要停用统计功能)"
38
+
39
+ #: templates/advanced_settings.php:21
40
+ #, fuzzy
41
+ msgid "Do not automatically include <code>Open Graph</code> tags"
42
+ msgstr "请勿包含<code>Open Graph</code>标记"
43
+
44
+ #: templates/advanced_settings.php:21
45
+ #, fuzzy
46
+ msgid "(it is recommended NOT to disable open graph tags)"
47
+ msgstr "(建议不要停用open graph标记)"
48
+
49
+ #: templates/advanced_settings.php:26 templates/settings.php:71
50
+ msgid "Save Changes"
51
+ msgstr "保存更改"
52
+
53
+ #: templates/deprecation_warnings.php:6
54
+ msgid ""
55
+ "is being deprecated. Please update the code found in the following files:"
56
+ msgstr "已被弃用。请升级下列文件中的代码:"
57
+
58
+ #: templates/failed_to_create_api_key.php:6
59
+ #: templates/terms_of_service_notice.php:6
60
+ msgid ""
61
+ "Action required: You've installed Shareaholic for WordPress. We're ready "
62
+ "when you are. %sGet started now &raquo;%s"
63
+ msgstr ""
64
+ "开始行动:您已成功按钮 WordPress 版的乐享。我们已准备就绪,等待您下令 %s现在"
65
+ "开始 &raquo;%s"
66
+
67
+ #: templates/failed_to_create_api_key_modal.php:2
68
+ msgid "Setup Shareaholic"
69
+ msgstr "设置乐享"
70
+
71
+ #: templates/failed_to_create_api_key_modal.php:7
72
+ msgid ""
73
+ "It appears that we are having some trouble setting up Shareaholic for "
74
+ "WordPress right now. This is usually temporary. Please revisit this section "
75
+ "after a few minutes or click \"retry\" now."
76
+ msgstr ""
77
+ "貌似我们遇到了一些问题,不过大多是暂时性的,您可以几分钟后再来或者现在就点击 "
78
+ "\"重试\"。"
79
+
80
+ #: templates/failed_to_create_api_key_modal.php:12
81
+ msgid "Retry"
82
+ msgstr "重试"
83
+
84
+ #: templates/failed_to_create_api_key_modal.php:14
85
+ msgid "or, try again later"
86
+ msgstr "或稍后再试"
87
+
88
+ #: templates/footer.php:8
89
+ msgid ""
90
+ "If you like our work, show some love and %sgive us a good rating%s. Made "
91
+ "with much love in Boston, Massachusetts."
92
+ msgstr "如果您喜欢,就请%s给我们好评%s吧。来自麻省波士顿的倾力奉献。"
93
+
94
+ #: templates/meta_boxes.php:6
95
+ msgid "Hide Share Buttons"
96
+ msgstr "隐藏分享按钮"
97
+
98
+ #: templates/meta_boxes.php:16
99
+ msgid "Hide Related Content"
100
+ msgstr "隐藏相关内容"
101
+
102
+ #: templates/meta_boxes.php:26
103
+ #, fuzzy
104
+ msgid "Do not include Open Graph tags"
105
+ msgstr "不包含 Open Graph 标记"
106
+
107
+ #: templates/settings.php:3
108
+ msgid "Shareaholic: Available Apps"
109
+ msgstr "乐享:可用应用"
110
+
111
+ #: templates/settings.php:19
112
+ msgid "Share Buttons"
113
+ msgstr "分享按钮"
114
+
115
+ #: templates/settings.php:46
116
+ msgid "Related Content / Recommendations"
117
+ msgstr "相关内容 / 推荐"
118
+
119
+ #: templates/terms_of_service_modal.php:2
120
+ msgid "Thanks for Installing"
121
+ msgstr "感谢惠顾"
122
+
123
+ #: templates/terms_of_service_modal.php:4
124
+ msgid ""
125
+ "%sShareaholic%s gives you the essential tools you need to become a "
126
+ "successful publisher."
127
+ msgstr "%s乐享%s 是您通向成功博主的利器。"
128
+
129
+ #: templates/terms_of_service_modal.php:8
130
+ msgid ""
131
+ "%sShare buttons%s let your readers post your content to their favorite "
132
+ "networks."
133
+ msgstr "%s分享按钮%s是您的读者可以内容发送到他们喜欢的网站。"
134
+
135
+ #: templates/terms_of_service_modal.php:12
136
+ msgid ""
137
+ "%sRelated content%s keeps people on your site and turns visitors into "
138
+ "readers."
139
+ msgstr "%s相关内容%s帮您留住网站的访客。"
140
+
141
+ #: templates/terms_of_service_modal.php:16
142
+ msgid ""
143
+ "%sAnalytics%s gives you the insight to create tailored content and grow your "
144
+ "site."
145
+ msgstr "%s统计分析%s 帮助您打造受欢迎的内容来改进网站。"
146
+
147
+ #: templates/terms_of_service_modal.php:20
148
+ msgid "Get Started"
149
+ msgstr "现在开始"
150
+
151
+ #: templates/terms_of_service_modal.php:21
152
+ msgid ""
153
+ "By clicking \"Get Started\" you agree to Shareholic's %sTerms of Service%s "
154
+ "and %sPrivacy Policy%s."
155
+ msgstr "点击 \"现在开始\" 代表您接受 乐享 的%s服务条款%s和%s隐私政策%s。"
156
+
157
+ #: templates/why_to_sign_up.php:104
158
+ msgid "Edit General Website Settings"
159
+ msgstr "编辑通用设置"
160
+
161
+ #: utilities.php:81
162
+ msgid "Settings"
163
+ msgstr "设置"
164
+
165
+ #. Plugin Name of the plugin/theme
166
+ msgid "Shareaholic | share buttons, analytics, related content"
167
+ msgstr "乐享 | 分享按钮,统计分析,相关内容"
168
+
169
+ #. Plugin URI of the plugin/theme
170
+ msgid "https://shareaholic.com/publishers/"
171
+ msgstr "https://shareaholic.com/publishers/"
172
+
173
+ #. Description of the plugin/theme
174
+ msgid ""
175
+ "Whether you want to get people sharing, grow your fans, make money, or know "
176
+ "who's reading your content, Shareaholic will help you get it done. See <a "
177
+ "href=\"admin.php?page=shareaholic-settings\">configuration panel</a> for "
178
+ "more settings."
179
+ msgstr ""
180
+ "无论您是否希望人们去分享,增加粉丝,盈利还是了解用户的情况,乐享都能帮您搞"
181
+ "定。查看<a href=\"admin.php?page=shareaholic-settings\">配置面板</a>进行更多"
182
+ "设置。"
183
+
184
+ #. Author of the plugin/theme
185
+ msgid "Shareaholic"
186
+ msgstr "乐享"
187
+
188
+ #. Author URI of the plugin/theme
189
+ msgid "https://shareaholic.com"
190
+ msgstr "https://shareaholic.com"
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.0.8\n"
7
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/shareaholic\n"
8
- "POT-Creation-Date: 2013-07-09 22:02:07+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,10 +13,14 @@ msgstr ""
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
 
16
- #: admin.php:258
17
  msgid "Settings successfully saved"
18
  msgstr ""
19
 
 
 
 
 
20
  #: templates/advanced_settings.php:3
21
  msgid "Shareaholic: Advanced Settings"
22
  msgstr ""
@@ -41,13 +45,18 @@ msgstr ""
41
  msgid "(it is recommended NOT to disable open graph tags)"
42
  msgstr ""
43
 
44
- #: templates/advanced_settings.php:26 templates/settings.php:71
45
  msgid "Save Changes"
46
  msgstr ""
47
 
 
 
 
 
48
  #: templates/deprecation_warnings.php:6
49
  msgid ""
50
- "is being deprecated. Please update the code found in the following files:"
 
51
  msgstr ""
52
 
53
  #: templates/failed_to_create_api_key.php:6
@@ -98,16 +107,41 @@ msgstr ""
98
  msgid "Shareaholic: Available Apps"
99
  msgstr ""
100
 
101
- #: templates/settings.php:19
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  msgid "Share Buttons"
103
  msgstr ""
104
 
105
- #: templates/settings.php:46
 
 
 
 
 
 
106
  msgid "Related Content / Recommendations"
107
  msgstr ""
108
 
 
 
 
 
 
 
109
  #: templates/terms_of_service_modal.php:2
110
- msgid "Thanks for Installing"
111
  msgstr ""
112
 
113
  #: templates/terms_of_service_modal.php:4
@@ -117,9 +151,7 @@ msgid ""
117
  msgstr ""
118
 
119
  #: templates/terms_of_service_modal.php:8
120
- msgid ""
121
- "%sShare buttons%s let your readers post your content to their favorite "
122
- "networks."
123
  msgstr ""
124
 
125
  #: templates/terms_of_service_modal.php:12
@@ -129,13 +161,11 @@ msgid ""
129
  msgstr ""
130
 
131
  #: templates/terms_of_service_modal.php:16
132
- msgid ""
133
- "%sAnalytics%s gives you the insight to create tailored content and grow your "
134
- "site."
135
  msgstr ""
136
 
137
  #: templates/terms_of_service_modal.php:20
138
- msgid "Get Started"
139
  msgstr ""
140
 
141
  #: templates/terms_of_service_modal.php:21
@@ -148,7 +178,7 @@ msgstr ""
148
  msgid "Edit General Website Settings"
149
  msgstr ""
150
 
151
- #: utilities.php:81
152
  msgid "Settings"
153
  msgstr ""
154
 
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
  "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
+
24
  #: templates/advanced_settings.php:3
25
  msgid "Shareaholic: Advanced Settings"
26
  msgstr ""
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
57
  msgid ""
58
+ "will be deprecated SOON. Please update the code found in the following files "
59
+ "at your convenience:"
60
  msgstr ""
61
 
62
  #: templates/failed_to_create_api_key.php:6
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 ""
146
 
147
  #: templates/terms_of_service_modal.php:4
151
  msgstr ""
152
 
153
  #: templates/terms_of_service_modal.php:8
154
+ msgid "%sShare buttons%s enables your readers to spread your content."
 
 
155
  msgstr ""
156
 
157
  #: templates/terms_of_service_modal.php:12
161
  msgstr ""
162
 
163
  #: templates/terms_of_service_modal.php:16
164
+ msgid "%sAnalytics%s gives you all the insights you need to grow your site."
 
 
165
  msgstr ""
166
 
167
  #: templates/terms_of_service_modal.php:20
168
+ msgid "Get Started »"
169
  msgstr ""
170
 
171
  #: templates/terms_of_service_modal.php:21
178
  msgid "Edit General Website Settings"
179
  msgstr ""
180
 
181
+ #: utilities.php:91
182
  msgid "Settings"
183
  msgstr ""
184
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  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, 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.5.2
6
- Stable tag: 7.0.3.3
7
 
8
  Adds an attractive social bookmarking menu and related content widget to your posts, pages, index, or any combination of the three.
9
 
@@ -76,7 +76,7 @@ Listed here are credits and special thanks to some of you who have helped us out
76
  * Credit goes to [Alexander Ovsov](http://www.webhostinggeeks.com) for translating to Belarusian
77
  * Credit goes to Bartosz Chojnacki for translating to Polish
78
  * Credit goes to Joan Jordi Berdullas Segura for translating to Catalan
79
- * Credit goes to [Nikolay Nikolov](http://statiiki.com/) for translating to Bulgarian
80
  * Credit goes to [Nata Strazda](http://www.webhostinghub.com/) for translating to Lithuanian
81
 
82
  == Screenshots ==
@@ -124,7 +124,7 @@ In your PHP / theme template code, you would add:
124
 
125
  Grab the corresponding App ID from your Shareaholic Dashboard for the App you want to manually insert into your theme. Shareaholic Shortcode's are full featured and support all available configuration options available. Enjoy!
126
 
127
- Old legacy methods (no longer supported as of version 7.0.0.0):
128
 
129
  `<?php if(function_exists('selfserv_shareaholic')) { selfserv_shareaholic(); } ?>`
130
  `<?php if(function_exists('get_shr_like_buttonset')) { get_shr_like_buttonset('Top'); } ?>`
@@ -141,6 +141,16 @@ Please see here: [Usage & Installation Instructions](https://shareaholic.com/too
141
 
142
  == Changelog ==
143
 
 
 
 
 
 
 
 
 
 
 
144
  = 7.0.3.3 =
145
  * Increased cURL timeout to prevent API timeouts
146
  * Namespaced Share Buttons CSS more so as to prevent potential conflicts with other plugins
@@ -906,6 +916,9 @@ Please see here: [Usage & Installation Instructions](https://shareaholic.com/too
906
 
907
  == Upgrade Notice ==
908
 
 
 
 
909
  = 7.0.3.3 =
910
  This is a highly recommended upgrade. Fixes issues of API timeouts and data-summary not being encoding correctly.
911
 
2
  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, 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
6
+ Stable tag: 7.0.3.4
7
 
8
  Adds an attractive social bookmarking menu and related content widget to your posts, pages, index, or any combination of the three.
9
 
76
  * Credit goes to [Alexander Ovsov](http://www.webhostinggeeks.com) for translating to Belarusian
77
  * Credit goes to Bartosz Chojnacki for translating to Polish
78
  * Credit goes to Joan Jordi Berdullas Segura for translating to Catalan
79
+ * Credit goes to [Nikolay Nikolov](http://en.chat4o.com/) for translating to Bulgarian
80
  * Credit goes to [Nata Strazda](http://www.webhostinghub.com/) for translating to Lithuanian
81
 
82
  == Screenshots ==
124
 
125
  Grab the corresponding App ID from your Shareaholic Dashboard for the App you want to manually insert into your theme. Shareaholic Shortcode's are full featured and support all available configuration options available. Enjoy!
126
 
127
+ Old legacy methods (not officially supported as of version 7.0.0.0):
128
 
129
  `<?php if(function_exists('selfserv_shareaholic')) { selfserv_shareaholic(); } ?>`
130
  `<?php if(function_exists('get_shr_like_buttonset')) { get_shr_like_buttonset('Top'); } ?>`
141
 
142
  == Changelog ==
143
 
144
+ = 7.0.3.4 =
145
+ * Fix for Cross-Site Request Forgery vulnerability. Upgrade immediately.
146
+ * Shareaholic is 100% compatible with WordPress 3.6! Yay!
147
+ * Added close button to settings modals
148
+ * Added "loading" image to modals
149
+ * Added additional strings for localization
150
+ * Localizations
151
+ * Added Simplified Chinese (zh_CN) by [Larry Zhang](http://zhxl.me)
152
+ * Added Greek (el) by [Takis Bouyouris](http://www.nevma.gr)
153
+
154
  = 7.0.3.3 =
155
  * Increased cURL timeout to prevent API timeouts
156
  * Namespaced Share Buttons CSS more so as to prevent potential conflicts with other plugins
916
 
917
  == Upgrade Notice ==
918
 
919
+ = 7.0.3.4 =
920
+ Fix for security vulnerability. Upgrade immediately.
921
+
922
  = 7.0.3.3 =
923
  This is a highly recommended upgrade. Fixes issues of API timeouts and data-summary not being encoding correctly.
924
 
sexy-bookmarks.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ add_action('admin_init', 'update_primary_shareaholic_plugin_file', 1);
4
+
5
+ function update_primary_shareaholic_plugin_file(){
6
+ if (is_plugin_active('shareaholic/sexy-bookmarks.php')) {
7
+ deactivate_plugins('shareaholic/sexy-bookmarks.php');
8
+ activate_plugins('shareaholic/shareaholic.php');
9
+ }
10
+ }
11
+
12
+ ?>
shareaholic.php CHANGED
@@ -3,14 +3,14 @@
3
  * The main and first file!
4
  *
5
  * @package shareaholic
6
- * @version 7.0.3.3
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.3.3
14
  Author: Shareaholic
15
  Author URI: https://shareaholic.com
16
  Credits & Thanks: https://shareaholic.com/tools/wordpress/credits
@@ -23,8 +23,7 @@ Credits & Thanks: https://shareaholic.com/tools/wordpress/credits
23
  */
24
 
25
  define('SHAREAHOLIC_DIR', dirname(__FILE__));
26
- define('SHAREAHOLIC_ASSET_DIR', get_option('siteurl') . '/wp-content/plugins/' . plugin_basename(dirname(__FILE__)) . '/assets/');
27
- load_plugin_textdomain('shareaholic', false, basename(dirname(__FILE__)) . '/languages/');
28
 
29
  // because define can use function returns and const can't
30
  define('SHAREAHOLIC_DEBUG', getenv('SHAREAHOLIC_DEBUG'));
@@ -43,7 +42,7 @@ require_once(SHAREAHOLIC_DIR . '/deprecation.php');
43
  */
44
  class Shareaholic {
45
  const URL = 'https://shareaholic.com';
46
- const VERSION = '7.0.3.3';
47
  /**
48
  * Starts off as false so that ::get_instance() returns
49
  * a new instance.
@@ -60,7 +59,8 @@ class Shareaholic {
60
  add_action('wp_head', array('ShareaholicPublic', 'wp_head'));
61
  add_shortcode('shareaholic', array('ShareaholicPublic', 'shortcode'));
62
 
63
- add_action('admin_init', 'ShareaholicUtilities::check_for_other_plugin');
 
64
 
65
  add_action('wp_ajax_shareaholic_add_location', array('ShareaholicAdmin', 'add_location'));
66
  add_action('add_meta_boxes', array('ShareaholicAdmin', 'add_meta_boxes'));
@@ -75,9 +75,9 @@ class Shareaholic {
75
  add_action('publish_post', array('ShareaholicNotifier', 'post_notify'));
76
  add_action('publish_page', array('ShareaholicNotifier', 'post_notify'));
77
 
78
- register_activation_hook(__FILE__, array($this, 'after_activation' ));
79
- register_deactivation_hook( __FILE__, array($this, 'deactivate' ));
80
- register_uninstall_hook(__FILE__, array('Shareaholic', 'uninstall' ));
81
 
82
  add_filter('plugin_action_links_'.plugin_basename(__FILE__), 'ShareaholicUtilities::admin_plugin_action_links', -10);
83
  }
@@ -108,6 +108,14 @@ class Shareaholic {
108
  }
109
  }
110
 
 
 
 
 
 
 
 
 
111
  /**
112
  * Runs any update code if the version is different from what's
113
  * stored in the settings. This will only run if we are on the
3
  * The main and first file!
4
  *
5
  * @package shareaholic
6
+ * @version 7.0.3.4
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.3.4
14
  Author: Shareaholic
15
  Author URI: https://shareaholic.com
16
  Credits & Thanks: https://shareaholic.com/tools/wordpress/credits
23
  */
24
 
25
  define('SHAREAHOLIC_DIR', dirname(__FILE__));
26
+ define('SHAREAHOLIC_ASSET_DIR', plugins_url( '/assets/' , __FILE__ ));
 
27
 
28
  // because define can use function returns and const can't
29
  define('SHAREAHOLIC_DEBUG', getenv('SHAREAHOLIC_DEBUG'));
42
  */
43
  class Shareaholic {
44
  const URL = 'https://shareaholic.com';
45
+ const VERSION = '7.0.3.4';
46
  /**
47
  * Starts off as false so that ::get_instance() returns
48
  * a new instance.
59
  add_action('wp_head', array('ShareaholicPublic', 'wp_head'));
60
  add_shortcode('shareaholic', array('ShareaholicPublic', 'shortcode'));
61
 
62
+ add_action('admin_init', 'ShareaholicUtilities::check_for_other_plugin');
63
+ add_action('plugins_loaded', array($this, 'shareaholic_init'));
64
 
65
  add_action('wp_ajax_shareaholic_add_location', array('ShareaholicAdmin', 'add_location'));
66
  add_action('add_meta_boxes', array('ShareaholicAdmin', 'add_meta_boxes'));
75
  add_action('publish_post', array('ShareaholicNotifier', 'post_notify'));
76
  add_action('publish_page', array('ShareaholicNotifier', 'post_notify'));
77
 
78
+ register_activation_hook(__FILE__, array($this, 'after_activation'));
79
+ register_deactivation_hook( __FILE__, array($this, 'deactivate'));
80
+ register_uninstall_hook(__FILE__, array('Shareaholic', 'uninstall'));
81
 
82
  add_filter('plugin_action_links_'.plugin_basename(__FILE__), 'ShareaholicUtilities::admin_plugin_action_links', -10);
83
  }
108
  }
109
  }
110
 
111
+ /**
112
+ * This function fires once any activated plugins have been loaded. Is generally used for immediate filter setup, or plugin overrides.
113
+ */
114
+ public function shareaholic_init() {
115
+ ShareaholicUtilities::localize();
116
+ }
117
+
118
+
119
  /**
120
  * Runs any update code if the version is different from what's
121
  * stored in the settings. This will only run if we are on the
templates/advanced_settings.php CHANGED
@@ -5,6 +5,7 @@
5
  <?php echo sprintf(__('You rarely should need to edit the settings on this page.', 'shareaholic')); ?>
6
  <div style="min-height:300px;">
7
  <form name='advanced_settings' method='post' action='<?php echo $action ?>'>
 
8
  <input type='hidden' name='already_submitted' value='Y'>
9
  <div class='clear'>
10
  <fieldset>
@@ -28,9 +29,10 @@
28
  </form>
29
 
30
  <form name='reset_settings' method='post' action='<?php echo $action ?>'>
 
31
  <input type='hidden' name='reset_settings' value='Y'>
32
  <fieldset>
33
- <p>Clicking this button will reset all of your settings and start you from scratch.</p>
34
  <input type='submit' value='<?php echo sprintf(__('Reset Everything', 'shareaholic')); ?>'>
35
  </fieldset>
36
  </form>
5
  <?php echo sprintf(__('You rarely should need to edit the settings on this page.', 'shareaholic')); ?>
6
  <div style="min-height:300px;">
7
  <form name='advanced_settings' method='post' action='<?php echo $action ?>'>
8
+ <?php wp_nonce_field($action, 'nonce_field') ?>
9
  <input type='hidden' name='already_submitted' value='Y'>
10
  <div class='clear'>
11
  <fieldset>
29
  </form>
30
 
31
  <form name='reset_settings' method='post' action='<?php echo $action ?>'>
32
+ <?php wp_nonce_field($action, 'nonce_field') ?>
33
  <input type='hidden' name='reset_settings' value='Y'>
34
  <fieldset>
35
+ <p><?php echo sprintf(__('Clicking this button will reset all of your settings and start you from scratch.', 'shareaholic')); ?></p>
36
  <input type='submit' value='<?php echo sprintf(__('Reset Everything', 'shareaholic')); ?>'>
37
  </fieldset>
38
  </form>
templates/failed_to_create_api_key.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php if ( current_user_can( 'manage_options' ) ){ ?>
2
  <div class="shareaholic-wrap-container" style="padding: 0 20px 0px 15px; background-color: #45a147; margin: 25px 0px 20px -18px;">
3
- <div style="margin: 0px 8px 0 4px; float: left;"><img src="<?php echo SHAREAHOLIC_ASSET_DIR; ?>/img/check.png" width=56 height=50 /></div>
4
  <div class="shareaholic-text-container" style="color: #fff; text-shadow: 0px 1px 1px rgba(0,0,0,0.4); font-size: 14px; display: table-cell;">
5
  <p>
6
  <strong><?php echo sprintf(__('Action required: You\'ve installed Shareaholic for WordPress. We\'re ready when you are. %sGet started now &raquo;%s', 'shareaholic'), '<a href="admin.php?page=shareaholic-settings" class="button-secondary">', '</a>'); ?></strong>
1
  <?php if ( current_user_can( 'manage_options' ) ){ ?>
2
  <div class="shareaholic-wrap-container" style="padding: 0 20px 0px 15px; background-color: #45a147; margin: 25px 0px 20px -18px;">
3
+ <div style="margin: 0px 8px 0 4px; float: left;"><img src="<?php echo SHAREAHOLIC_ASSET_DIR; ?>img/check.png" width=56 height=50 /></div>
4
  <div class="shareaholic-text-container" style="color: #fff; text-shadow: 0px 1px 1px rgba(0,0,0,0.4); font-size: 14px; display: table-cell;">
5
  <p>
6
  <strong><?php echo sprintf(__('Action required: You\'ve installed Shareaholic for WordPress. We\'re ready when you are. %sGet started now &raquo;%s', 'shareaholic'), '<a href="admin.php?page=shareaholic-settings" class="button-secondary">', '</a>'); ?></strong>
templates/settings.php CHANGED
@@ -3,7 +3,8 @@
3
  <h2><?php echo sprintf(__('Shareaholic: Available Apps', 'shareaholic')); ?></h2>
4
 
5
  <div class='reveal-modal' id='editing_modal'>
6
- <div id='iframe_container'></div>
 
7
  </div>
8
 
9
  <script>
@@ -20,7 +21,7 @@ window.verification_key = '<?php echo $settings['verification_key'] ?>'
20
  <fieldset class="app" style="line-height:18px;"><?php echo sprintf(__('First time here? Read %sUnderstanding the new Shareaholic for WordPress interface and configuration settings.%s', 'shareaholic'), '<a href="https://blog.shareaholic.com/2013/07/understanding-the-new-shareaholic-for-wordpress-interface-and-configuration-settings/" target="_blank">','</a>'); ?> <?php echo sprintf(__('If you are upgrading from an earlier version of Shareaholic for WordPress and need help, have a question or have a bug to report, please %slet us know%s.', 'shareaholic'), '<a href="#" onclick="SnapEngage.startLink();">','</a>'); ?>
21
  </fieldset>
22
 
23
- <fieldset class="app"><legend><h2><img src="<?php echo SHAREAHOLIC_ASSET_DIR; ?>/img/sharebuttons@2x.png" height=32 width=32 /> <?php echo sprintf(__('Share Buttons', 'shareaholic')); ?></h2></legend>
24
  <span class="helper"><i class="icon-question-sign"></i><?php echo sprintf(__('Pick where you want your buttons to be displayed. Click "Edit" to customize look & feel, themes, share counters, alignment, etc.', 'shareaholic')); ?></span>
25
 
26
  <?php foreach(array('post', 'page', 'index', 'category') as $page_type) { ?>
@@ -47,7 +48,7 @@ window.verification_key = '<?php echo $settings['verification_key'] ?>'
47
 
48
  <div class='clear'></div>
49
 
50
- <fieldset class="app"><legend><h2><img src="<?php echo SHAREAHOLIC_ASSET_DIR; ?>/img/related_content@2x.png" height=32 width=32 /> <?php echo sprintf(__('Related Content / Recommendations', 'shareaholic')); ?></h2></legend>
51
  <span class="helper"><i class="icon-question-sign"></i><?php echo sprintf(__('Pick where you want Related Content to be displayed. Click "Edit" to customize look & feel, themes, block lists, etc.', 'shareaholic')); ?></span>
52
  <?php foreach(array('post', 'page', 'index', 'category') as $page_type) { ?>
53
  <?php if (isset($settings['location_name_ids']['recommendations']["{$page_type}_{$position}_content"])) { ?>
@@ -70,13 +71,13 @@ window.verification_key = '<?php echo $settings['verification_key'] ?>'
70
 
71
  <div class='clear'></div>
72
 
73
- <strong>Data Status:</strong>
74
  <?php
75
  $status = ShareaholicUtilities::recommendations_status_check();
76
  if ($status == "processing" || $status == 'unknown'){
77
- echo '<img class="shrsb_health_icon" align="top" src="'.SHAREAHOLIC_ASSET_DIR.'/img/circle_yellow.png" /> Processing';
78
  } else {
79
- echo '<img class="shrsb_health_icon" align="top" src="'.SHAREAHOLIC_ASSET_DIR.'/img/circle_green.png" /> Ready';
80
  }
81
  ?>
82
 
3
  <h2><?php echo sprintf(__('Shareaholic: Available Apps', 'shareaholic')); ?></h2>
4
 
5
  <div class='reveal-modal' id='editing_modal'>
6
+ <div id='iframe_container' class='bg-loading-img' allowtransparency='true'></div>
7
+ <a class="close-reveal-modal">&#215;</a>
8
  </div>
9
 
10
  <script>
21
  <fieldset class="app" style="line-height:18px;"><?php echo sprintf(__('First time here? Read %sUnderstanding the new Shareaholic for WordPress interface and configuration settings.%s', 'shareaholic'), '<a href="https://blog.shareaholic.com/2013/07/understanding-the-new-shareaholic-for-wordpress-interface-and-configuration-settings/" target="_blank">','</a>'); ?> <?php echo sprintf(__('If you are upgrading from an earlier version of Shareaholic for WordPress and need help, have a question or have a bug to report, please %slet us know%s.', 'shareaholic'), '<a href="#" onclick="SnapEngage.startLink();">','</a>'); ?>
22
  </fieldset>
23
 
24
+ <fieldset class="app"><legend><h2><img src="<?php echo SHAREAHOLIC_ASSET_DIR; ?>img/sharebuttons@2x.png" height=32 width=32 /> <?php echo sprintf(__('Share Buttons', 'shareaholic')); ?></h2></legend>
25
  <span class="helper"><i class="icon-question-sign"></i><?php echo sprintf(__('Pick where you want your buttons to be displayed. Click "Edit" to customize look & feel, themes, share counters, alignment, etc.', 'shareaholic')); ?></span>
26
 
27
  <?php foreach(array('post', 'page', 'index', 'category') as $page_type) { ?>
48
 
49
  <div class='clear'></div>
50
 
51
+ <fieldset class="app"><legend><h2><img src="<?php echo SHAREAHOLIC_ASSET_DIR; ?>img/related_content@2x.png" height=32 width=32 /> <?php echo sprintf(__('Related Content / Recommendations', 'shareaholic')); ?></h2></legend>
52
  <span class="helper"><i class="icon-question-sign"></i><?php echo sprintf(__('Pick where you want Related Content to be displayed. Click "Edit" to customize look & feel, themes, block lists, etc.', 'shareaholic')); ?></span>
53
  <?php foreach(array('post', 'page', 'index', 'category') as $page_type) { ?>
54
  <?php if (isset($settings['location_name_ids']['recommendations']["{$page_type}_{$position}_content"])) { ?>
71
 
72
  <div class='clear'></div>
73
 
74
+ <strong><?php echo sprintf(__('Data Status:', 'shareaholic')); ?></strong>
75
  <?php
76
  $status = ShareaholicUtilities::recommendations_status_check();
77
  if ($status == "processing" || $status == 'unknown'){
78
+ echo '<img class="shrsb_health_icon" align="top" src="'.SHAREAHOLIC_ASSET_DIR.'img/circle_yellow.png" />'. sprintf(__('Processing', 'shareaholic'));
79
  } else {
80
+ echo '<img class="shrsb_health_icon" align="top" src="'.SHAREAHOLIC_ASSET_DIR.'img/circle_green.png" />'. sprintf(__('Ready', 'shareaholic'));
81
  }
82
  ?>
83
 
templates/terms_of_service_notice.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php if ( current_user_can( 'manage_options' ) ){ ?>
2
  <div class="shareaholic-wrap-container" style="padding: 0 20px 0px 15px; background-color: #45a147; margin: 25px 0px 20px -18px;">
3
- <div style="margin: 0px 8px 0 4px; float: left;"><img src="<?php echo SHAREAHOLIC_ASSET_DIR; ?>/img/check.png" width=56 height=50 /></div>
4
  <div class="shareaholic-text-container" style="color: #fff; text-shadow: 0px 1px 1px rgba(0,0,0,0.4); font-size: 14px; display: table-cell;">
5
  <p>
6
  <strong><?php echo sprintf(__('Action required: You\'ve installed Shareaholic for WordPress. We\'re ready when you are. %sGet started now &raquo;%s', 'shareaholic'), '<a href="admin.php?page=shareaholic-settings" class="button-secondary">', '</a>'); ?></strong>
1
  <?php if ( current_user_can( 'manage_options' ) ){ ?>
2
  <div class="shareaholic-wrap-container" style="padding: 0 20px 0px 15px; background-color: #45a147; margin: 25px 0px 20px -18px;">
3
+ <div style="margin: 0px 8px 0 4px; float: left;"><img src="<?php echo SHAREAHOLIC_ASSET_DIR; ?>img/check.png" width=56 height=50 /></div>
4
  <div class="shareaholic-text-container" style="color: #fff; text-shadow: 0px 1px 1px rgba(0,0,0,0.4); font-size: 14px; display: table-cell;">
5
  <p>
6
  <strong><?php echo sprintf(__('Action required: You\'ve installed Shareaholic for WordPress. We\'re ready when you are. %sGet started now &raquo;%s', 'shareaholic'), '<a href="admin.php?page=shareaholic-settings" class="button-secondary">', '</a>'); ?></strong>
templates/why_to_sign_up.php CHANGED
@@ -1,105 +1,12 @@
1
- <style type="text/css">
2
- body {
3
- font-family: sans-serif;
4
- }
5
-
6
- .signuppromo{
7
- border: 1px solid #1E8520;
8
- background: #45A147;
9
- border-radius: 6px;
10
- padding: 20px 20px;
11
- color: white;
12
- font-size: 14px;
13
- float: right;
14
- margin: 30px;
15
- min-width: 250px;
16
- box-shadow: 0px 1px 5px rgba(0,0,0,0.27);
17
- }
18
-
19
- .promoh1{
20
- font-size: 24px;
21
- line-height: 28px;
22
- margin: 10px 0 0 0;
23
- padding: 0;
24
- text-shadow: 0px 1px 0px rgba(0,0,0,0.4);
25
- }
26
-
27
- .promosub{
28
- color: black;
29
- margin: 10px 0 0 0;
30
- font-weight: bold;
31
- }
32
-
33
- .signuppromo ul{
34
- margin: 24px 0px;
35
- }
36
-
37
- .signuppromo ul li{
38
- margin: 10px 0px;
39
- }
40
-
41
-
42
- .signuppromo a,.signuppromo a:active {
43
-
44
-
45
- -moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
46
- -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
47
- box-shadow:inset 0px 1px 0px 0px #ffffff;
48
-
49
- background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #ffffff), color-stop(1, #f6f6f6));
50
- background:-moz-linear-gradient(top, #ffffff 5%, #f6f6f6 100%);
51
- background:-webkit-linear-gradient(top, #ffffff 5%, #f6f6f6 100%);
52
- background:-o-linear-gradient(top, #ffffff 5%, #f6f6f6 100%);
53
- background:-ms-linear-gradient(top, #ffffff 5%, #f6f6f6 100%);
54
- background:linear-gradient(to bottom, #ffffff 5%, #f6f6f6 100%);
55
- filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f6f6f6',GradientType=0);
56
-
57
- background-color:#ffffff;
58
-
59
- -moz-border-radius:6px;
60
- -webkit-border-radius:6px;
61
- border-radius:6px;
62
- width: 50%;
63
- border:1px solid #dcdcdc;
64
- text-align: center;
65
- margin: 0 auto;
66
- display:block;
67
- color:#666666;
68
- font-size:15px;
69
- font-weight:bold;
70
- padding:16px 24px;
71
- text-decoration:none;
72
-
73
- text-shadow:0px 1px 0px #ffffff;
74
-
75
- }
76
- .signuppromo a:hover {
77
-
78
- background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #f6f6f6), color-stop(1, #ffffff));
79
- background:-moz-linear-gradient(top, #f6f6f6 5%, #ffffff 100%);
80
- background:-webkit-linear-gradient(top, #f6f6f6 5%, #ffffff 100%);
81
- background:-o-linear-gradient(top, #f6f6f6 5%, #ffffff 100%);
82
- background:-ms-linear-gradient(top, #f6f6f6 5%, #ffffff 100%);
83
- background:linear-gradient(to bottom, #f6f6f6 5%, #ffffff 100%);
84
- filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6f6f6', endColorstr='#ffffff',GradientType=0);
85
-
86
- background-color:#f6f6f6;
87
- }
88
-
89
- }
90
- </style>
91
-
92
-
93
  <div class="signuppromo unit size1of5">
94
- <p class="promoh1">Customize even more with a FREE Shareaholic account.</p>
95
- <p class="promosub">Such as:</p>
96
-
97
  <ul>
98
- <li>Customize tweets coming from your website.</li>
99
- <li>Choose your URL Shortener, or use your own.</li>
100
- <li>Choose from various themes and styles.</li>
101
- <li>Exclude pages from Recommendations engine.</li>
102
- <li>Plus tons of great features and customization options.</li>
103
  </ul>
104
  <button data-href='edit' id='general_settings' class="btn btn-large"><?php echo sprintf(__('Edit General Website Settings', 'shareaholic')); ?></button>
105
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <div class="signuppromo unit size1of5">
2
+ <p class="promoh1"><?php echo sprintf(__('Customize even more with a FREE Shareaholic account.', 'shareaholic')); ?></p>
3
+ <p class="promosub"><?php echo sprintf(__('Such as:', 'shareaholic')); ?></p>
 
4
  <ul>
5
+ <li><?php echo sprintf(__('Customize tweets coming from your website.', 'shareaholic')); ?></li>
6
+ <li><?php echo sprintf(__('Choose your URL Shortener, or use your own.', 'shareaholic')); ?></li>
7
+ <li><?php echo sprintf(__('Choose from various themes and styles.', 'shareaholic')); ?></li>
8
+ <li><?php echo sprintf(__('Exclude pages from Recommendations engine.', 'shareaholic')); ?></li>
9
+ <li><?php echo sprintf(__('Plus tons of great features and customization options.', 'shareaholic')); ?></li>
10
  </ul>
11
  <button data-href='edit' id='general_settings' class="btn btn-large"><?php echo sprintf(__('Edit General Website Settings', 'shareaholic')); ?></button>
12
  </div>
utilities.php CHANGED
@@ -661,6 +661,14 @@ class ShareaholicUtilities {
661
 
662
  $response = ShareaholicCurl::post($event_api_url, $event_params, '', true);
663
  }
 
 
 
 
 
 
 
 
664
 
665
  /**
666
  * This is a wrapper for the Recommendations Status API
661
 
662
  $response = ShareaholicCurl::post($event_api_url, $event_params, '', true);
663
  }
664
+
665
+ /**
666
+ * This loads the locales
667
+ *
668
+ */
669
+ public static function localize() {
670
+ load_plugin_textdomain('shareaholic', false, basename(dirname(__FILE__)) . '/languages/');
671
+ }
672
 
673
  /**
674
  * This is a wrapper for the Recommendations Status API