Hueman Addons - Version 1.0.4

Version Description

: May 30th, 2016 = * Fix : disapppearing sharebar, added function scope to jQuerySharre.js to avoid 3rd party plugin conflicts

Download this release

Release Info

Developer nikeo
Plugin Icon 128x128 Hueman Addons
Version 1.0.4
Comparing to
See all releases

Code changes from version 1.0.3 to 1.0.4

assets/front/js/jQuerySharrre.js CHANGED
@@ -1,5 +1,3 @@
1
- var $ = $ || jQuery;
2
-
3
  /*!
4
  * Sharrre.com - Make your sharing widget!
5
  * Version: 2.0.1
@@ -7,396 +5,407 @@ var $ = $ || jQuery;
7
  * License: MIT http://en.wikipedia.org/wiki/MIT_License or GPLv2 http://en.wikipedia.org/wiki/GNU_General_Public_License
8
  */
9
  var SharrrePlatform = SharrrePlatform || (function () {
10
- var platforms = {};
11
-
12
- return {
13
- 'register': function (name, constructor) {
14
- platforms[name] = constructor;
15
- },
16
- 'get': function (name, options) {
17
- if (!platforms[name]) {
18
- console.error("Sharrre - No platform found for " + name);
19
- return false;
 
 
20
  }
21
- return new platforms[name](options);
22
- }
23
- };
24
- })();
25
-
26
-
27
- SharrrePlatform.register("linkedin", function (options) {
28
- defaultSettings = { //http://developer.linkedin.com/plugins/share-button
29
- url: '', //if you need to personalize url button
30
- urlCount: false, //if you want to use personnalize button url on global counter
31
- counter: '',
32
- count: true,
33
- popup: {
34
- width: 550,
35
- height: 550
36
- }
37
- };
38
 
39
- defaultSettings = $.extend(true, {}, defaultSettings, options);
40
- return {
41
- settings: defaultSettings,
42
- url: function (test) {
43
- return "https://www.linkedin.com/countserv/count/share?format=jsonp&url={url}&callback=?";
44
- },
45
- trackingAction: {site: 'linkedin', action: 'share'},
46
- load: function (self) {
47
- var sett = this.settings;
48
- $(self.element).find('.buttons').append('<div class="button linkedin"><script type="IN/share" data-url="' + (sett.url !== '' ? sett.url : self.options.url) + '" data-counter="' + sett.counter + '"></script></div>');
49
- var loading = 0;
50
- if (typeof window.IN === 'undefined' && loading === 0) {
51
- loading = 1;
52
- (function () {
53
- var li = document.createElement('script');
54
- li.type = 'text/javascript';
55
- li.async = true;
56
- li.src = 'https://platform.linkedin.com/in.js';
57
- var s = document.getElementsByTagName('script')[0];
58
- s.parentNode.insertBefore(li, s);
59
- })();
60
  }
61
- else if (typeof window.IN !== 'undefined' && window.IN.parse) {
62
- IN.parse(document);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  }
64
- },
65
- tracking: function () {
66
- function LinkedInShare() {
67
- _gaq.push(['_trackSocial', 'linkedin', 'share']);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  }
69
- },
70
- popup: function (opt) {
71
- window.open('https://www.linkedin.com/cws/share?url=' +
72
- encodeURIComponent((this.settings.url !== '' ? this.settings.url : opt.url)) +
73
- '&token=&isFramed=true', 'linkedin', 'toolbar=no, width=' + this.settings.popup.width + ", height=" + this.settings.popup.height);
74
- }
75
- };
76
- });
77
-
78
-
79
- SharrrePlatform.register("facebook", function (options) {
80
- defaultSettings = { //http://developers.facebook.com/docs/reference/plugins/like/
81
- url: '', //if you need to personalize url button
82
- urlCount: false, //if you want to use personnalize button url on global counter
83
- action: 'like',
84
- layout: 'button_count',
85
- count: true,
86
- width: '',
87
- send: 'false',
88
- faces: 'false',
89
- colorscheme: '',
90
- font: '',
91
- lang: 'en_US',
92
- share: '',
93
- appId: '',
94
- popup: {
95
- width: 900,
96
- height: 500
97
- }
98
- };
99
 
100
- defaultSettings = $.extend(true, {}, defaultSettings, options);
101
-
102
- return {
103
- settings: defaultSettings,
104
- url: function (url) {
105
- return "https://graph.facebook.com/fql?q=SELECT%20url,%20normalized_url,%20share_count,%20like_count,%20comment_count,%20total_count,commentsbox_count,%20comments_fbid,%20click_count%20FROM%20link_stat%20WHERE%20url=%27{url}%27&callback=?";
106
- },
107
- trackingAction: {site: 'facebook', action: 'like'},
108
- load: function (self) {
109
- var sett = this.settings;
110
- $(self.element).find('.buttons').append('<div class="button facebook"><div id="fb-root"></div>' +
111
- '<div class="fb-like" data-href="' + (sett.url !== '' ? sett.url : self.options.url) +
112
- '" data-send="' + sett.send +
113
- '" data-layout="' + sett.layout +
114
- '" data-width="' + sett.width +
115
- '" data-show-faces="' + sett.faces +
116
- '" data-action="' + sett.action +
117
- '" data-colorscheme="' + sett.colorscheme +
118
- '" data-font="' + sett.font +
119
- '" data-via="' + sett.via +
120
- '" data-share="' + sett.share +
121
- '"></div></div>');
122
- var loading = 0;
123
- if (typeof FB === 'undefined' && loading === 0) {
124
- loading = 1;
125
- (function (d, s, id) {
126
- var js, fjs = d.getElementsByTagName(s)[0];
127
- if (d.getElementById(id)) {
128
- return;
129
- }
130
- js = d.createElement(s);
131
- js.id = id;
132
- js.src = 'https://connect.facebook.net/' + sett.lang + '/all.js#xfbml=1';
133
- if (sett.appId) {
134
- js.src += '&appId=' + sett.appId;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
135
  }
136
- fjs.parentNode.insertBefore(js, fjs);
137
- }(document, 'script', 'facebook-jssdk'));
138
- }
139
- else {
140
- FB.XFBML.parse();
 
141
  }
142
- },
143
- tracking: function () {
144
- fb = window.setInterval(function () {
145
- if (typeof FB !== 'undefined' && 'undefined' !== typeof(_gaq) ) {
146
- FB.Event.subscribe('edge.create', function (targetUrl) {
147
- _gaq.push(['_trackSocial', 'facebook', 'like', targetUrl]);
148
- });
149
- FB.Event.subscribe('edge.remove', function (targetUrl) {
150
- _gaq.push(['_trackSocial', 'facebook', 'unlike', targetUrl]);
151
- });
152
- FB.Event.subscribe('message.send', function (targetUrl) {
153
- _gaq.push(['_trackSocial', 'facebook', 'send', targetUrl]);
154
- });
155
- //console.log('ok');
156
- clearInterval(fb);
157
- }
158
- }, 1000);
159
- },
160
- popup: function (opt) {
161
- window.open("https://www.facebook.com/sharer/sharer.php?u=" +
162
- encodeURIComponent((this.settings.url !== '' ? this.settings.url : opt.url)) +
163
- "&t=" + opt.text + "", "", "toolbar=0, status=0, width=" + this.settings.popup.width + ", height=" + this.settings.popup.height);
164
- }
165
- };
166
- });
167
 
168
 
169
 
170
- SharrrePlatform.register("googlePlus", function (options) {
171
- defaultSettings = { //http://www.google.com/webmasters/+1/button/
172
- url: '', //if you need to personnalize button url
173
- urlCount: false, //if you want to use personnalize button url on global counter
174
- size: 'medium',
175
- lang: 'en-US',
176
- annotation: '',
177
- count: true,
178
- popup: {
179
- width: 900,
180
- height: 500
181
- }
182
- };
183
 
184
- defaultSettings = $.extend(true, {}, defaultSettings, options);
185
- return {
186
- settings: defaultSettings,
187
- url: function (url) {
188
- return url + '?url={url}&type=googlePlus';
189
- },
190
- trackingAction: {site: 'Google', action: '+1'},
191
- load: function (self) {
192
- var sett = this.settings;
193
- //$(self.element).find('.buttons').append('<div class="button googleplus"><g:plusone size="'+self.options.buttons.googlePlus.size+'" href="'+self.options.url+'"></g:plusone></div>');
194
- $(self.element).find('.buttons').append('<div class="button googleplus"><div class="g-plusone" data-size="' +
195
- sett.size + '" data-href="' + (sett.url !== '' ? sett.url : self.options.url) +
196
- '" data-annotation="' + sett.annotation + '"></div></div>');
197
- window.___gcfg = {
198
- lang: sett.lang
199
- };
200
- var loading = 0;
201
- if ((typeof gapi === 'undefined' || typeof gapi.plusone === 'undefined') && loading === 0) {
202
- loading = 1;
203
- (function () {
204
- var po = document.createElement('script');
205
- po.type = 'text/javascript';
206
- po.async = true;
207
- po.src = 'https://apis.google.com/js/plusone.js';
208
- var s = document.getElementsByTagName('script')[0];
209
- s.parentNode.insertBefore(po, s);
210
- })();
 
 
 
 
 
 
 
 
 
 
 
211
  }
212
- else {
213
- gapi.plusone.go();
 
 
 
 
 
 
 
 
 
 
 
214
  }
215
- },
216
- tracking: function () {
217
- },
218
- popup: function (opt) {
219
- window.open("https://plus.google.com/share?hl=" + this.settings.lang +
220
- "&url=" + encodeURIComponent((this.settings.url !== '' ? this.settings.url : opt.url)),
221
- "", "toolbar=0, status=0, width=" + this.settings.popup.width + ", height=" + this.settings.popup.height);
222
- }
223
- };
224
- });
225
-
226
-
227
- SharrrePlatform.register("pinterest", function (options) {
228
- defaultSettings = { //http://pinterest.com/about/goodies/
229
- url: '', //if you need to personalize url button
230
- media: '',
231
- description: '',
232
- layout: 'horizontal',
233
- popup: {
234
- width: 700,
235
- height: 300
236
- }
237
- };
238
 
239
- defaultSettings = $.extend(true, {}, defaultSettings, options);
240
- return {
241
- settings: defaultSettings,
242
- url: function (test) {
243
- return "https://api.pinterest.com/v1/urls/count.json?url={url}&callback=?";
244
- },
245
- trackingAction: {site: 'pinterest', action: 'pin'},
246
- load: function (self) {
247
- var sett = this.settings;
248
- $(self.element).find('.buttons').append('<div class="button pinterest"><a href="https://www.pinterest.com/pin/create/button/?url=' + (sett.url !== '' ? sett.url : self.options.url) + '&media=' + sett.media + '&description=' + sett.description + '" data-pin-do="buttonBookmark" count-layout="' + sett.layout + '">Pin It</a></div>');
249
-
250
- (function () {
251
- var li = document.createElement('script');
252
- li.type = 'text/javascript';
253
- li.async = true;
254
- li.src = 'https://assets.pinterest.com/js/pinit.js';
255
- li.setAttribute('data-pin-build', 'parsePinBtns');
256
- var s = document.getElementsByTagName('script')[0];
257
- s.parentNode.insertBefore(li, s);
258
- })();
259
-
260
- if (window.parsePinBtns) {
261
- window.parsePinBtns();
262
- }
263
- $(self.element).find('.pinterest').on('click', function () {
264
- self.openPopup('pinterest');
265
- });
266
- },
267
- tracking: function () {
268
- },
269
- popup: function (opt) {
270
- window.open('https://pinterest.com/pin/create/button/?url=' +
271
- encodeURIComponent((this.settings.url !== '' ? this.settings.url : opt.url)) +
272
- '&media=' + encodeURIComponent(this.settings.media) +
273
- '&description=' + this.settings.description, 'pinterest',
274
- 'toolbar=no,width=' + this.settings.popup.width + ", height=" + this.settings.popup.height);
275
- }
276
- };
277
- });
278
-
279
-
280
-
281
- SharrrePlatform.register("twitter", function (options) {
282
- defaultSettings = { //http://twitter.com/about/resources/tweetbutton
283
- url: '', //if you need to personalize url button
284
- urlCount: false, //if you want to use personnalize button url on global counter
285
- count: false,
286
- hashtags: '',
287
- via: '',
288
- related: '',
289
- lang: 'en',
290
- popup: {
291
- width: 650,
292
- height: 360
293
- }
294
- };
295
 
296
- defaultSettings = $.extend(true, {}, defaultSettings, options);
297
- return {
298
- settings: defaultSettings,
299
- trackingAction: {site: 'twitter', action: 'tweet'},
300
- url: function (test) {
301
- return "https://opensharecount.com/count.json?url={url}";
302
- },
303
- load: function (self) {
304
- var sett = this.settings;
305
- $(self.element).find('.buttons').append(
306
- '<div class="button twitter"><a href="https://twitter.com/share" class="twitter-share-button" data-url="' + (sett.url !== '' ? sett.url : self.options.url) + '" data-count="' + sett.count + '" data-text="' + self.options.text + '" data-via="' + sett.via + '" data-hashtags="' + sett.hashtags + '" data-related="' + sett.related + '" data-lang="' + sett.lang + '">Tweet</a></div>');
307
- var loading = 0;
308
- if (typeof twttr === 'undefined' && loading === 0) {
309
- loading = 1;
310
  (function () {
311
- var twitterScriptTag = document.createElement('script');
312
- twitterScriptTag.type = 'text/javascript';
313
- twitterScriptTag.async = true;
314
- twitterScriptTag.src = 'https://platform.twitter.com/widgets.js';
 
315
  var s = document.getElementsByTagName('script')[0];
316
- s.parentNode.insertBefore(twitterScriptTag, s);
317
  })();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
318
  }
319
- else {
320
- $.ajax({url: 'https://platform.twitter.com/widgets.js', dataType: 'script', cache: true}); //http://stackoverflow.com/q/6536108
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
321
  }
322
- },
323
- tracking: function () {
324
- tw = window.setInterval(function () {
325
- if (typeof twttr !== 'undefined') {
326
- twttr.events.bind('tweet', function (event) {
327
- if (event && 'undefined' !== typeof(_gaq) ) {
328
- _gaq.push(['_trackSocial', 'twitter', 'tweet']);
329
- }
330
- });
331
- clearInterval(tw);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
332
  }
333
- }, 1000);
334
- },
335
- popup: function (opt) {
336
- window.open("https://twitter.com/intent/tweet?text=" + encodeURIComponent(opt.text) + "&url=" + encodeURIComponent((this.settings.url !== '' ? this.setting.url : opt.url)) + (this.settings.via !== '' ? '&via=' + this.settings.via : ''), "", "toolbar=0, status=0,width=" + this.settings.popup.width + ", height=" + this.settings.popup.height);
337
- }
338
- };
339
- });
340
-
341
-
342
- SharrrePlatform.register("twitterFollow", function (options) {
343
- defaultSettings = { //http://twitter.com/about/resources/tweetbutton
344
- url: '', //if you need to personalize url button
345
- urlCount: false, //if you want to use personnalize button url on global counter
346
- count: true,
347
- display: 'horizontal',
348
- lang: 'en',
349
- popup: {
350
- width: 650,
351
- height: 360
352
- },
353
- user: "",
354
- size: 'default',
355
- showCount: 'false'
356
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
357
 
358
- defaultSettings = $.extend(true, {}, defaultSettings, options);
359
- return {
360
- settings: defaultSettings,
361
- trackingAction: {site: 'twitter', action: 'follow'},
362
- url: function (test) {
363
- return '';
364
- // Needs an API token
365
  // return "https://api.twitter.com/1.1/users/show.json?screen_name=" + this.settings.user + "&include_entities=true&callback=?";
366
- },
367
- load: function (self) {
368
- var sett = this.settings;
369
- $(self.element).find('.buttons').append(
370
- '<div class="button twitterFollow"><a href="https://twitter.com/' + sett.user + '" class="twitter-follow-button"' +
371
- '" data-size="' + sett.size +
372
- '" data-show-count="' + sett.showCount +
373
- '" data-lang="' + sett.lang +
374
- '">Follow @' + sett.user + '</a></div>');
375
- var loading = 0;
376
- if (typeof twttr === 'undefined' && loading === 0) {
377
- loading = 1;
378
- (function () {
379
- var twitterScriptTag = document.createElement('script');
380
- twitterScriptTag.type = 'text/javascript';
381
- twitterScriptTag.async = true;
382
- twitterScriptTag.src = 'https://platform.twitter.com/widgets.js';
383
- var s = document.getElementsByTagName('script')[0];
384
- s.parentNode.insertBefore(twitterScriptTag, s);
385
- })();
386
- }
387
- else {
388
- $.ajax({url: 'https://platform.twitter.com/widgets.js', dataType: 'script', cache: true}); //http://stackoverflow.com/q/6536108
 
 
 
 
 
 
 
 
389
  }
390
- },
391
- tracking: function () {
392
- },
393
- popup: function (opt) {
394
- window.open("https://twitter.com/intent/follow?screen_name=" + encodeURIComponent(this.settings.user), "",
395
- "toolbar=0, status=0, ,width=" + this.settings.popup.width + ", height=" + this.settings.popup.height);
396
 
397
- }
398
- };
399
- });
400
 
401
 
402
 
 
 
1
  /*!
2
  * Sharrre.com - Make your sharing widget!
3
  * Version: 2.0.1
5
  * License: MIT http://en.wikipedia.org/wiki/MIT_License or GPLv2 http://en.wikipedia.org/wiki/GNU_General_Public_License
6
  */
7
  var SharrrePlatform = SharrrePlatform || (function () {
8
+ var platforms = {};
9
+
10
+ return {
11
+ 'register': function (name, constructor) {
12
+ platforms[name] = constructor;
13
+ },
14
+ 'get': function (name, options) {
15
+ if (!platforms[name]) {
16
+ console.error("Sharrre - No platform found for " + name);
17
+ return false;
18
+ }
19
+ return new platforms[name](options);
20
  }
21
+ };
22
+ })();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
+ // noConflict Scope
25
+ (function($, SharrrePlatform){
26
+
27
+ // check jQuery
28
+ if (typeof $ == 'undefined'){
29
+ return;
30
+ }
31
+
32
+ SharrrePlatform.register("linkedin", function (options) {
33
+ defaultSettings = { //http://developer.linkedin.com/plugins/share-button
34
+ url: '', //if you need to personalize url button
35
+ urlCount: false, //if you want to use personnalize button url on global counter
36
+ counter: '',
37
+ count: true,
38
+ popup: {
39
+ width: 550,
40
+ height: 550
 
 
 
 
41
  }
42
+ };
43
+
44
+ defaultSettings = $.extend(true, {}, defaultSettings, options);
45
+ return {
46
+ settings: defaultSettings,
47
+ url: function (test) {
48
+ return "https://www.linkedin.com/countserv/count/share?format=jsonp&url={url}&callback=?";
49
+ },
50
+ trackingAction: {site: 'linkedin', action: 'share'},
51
+ load: function (self) {
52
+ var sett = this.settings;
53
+ $(self.element).find('.buttons').append('<div class="button linkedin"><script type="IN/share" data-url="' + (sett.url !== '' ? sett.url : self.options.url) + '" data-counter="' + sett.counter + '"></script></div>');
54
+ var loading = 0;
55
+ if (typeof window.IN === 'undefined' && loading === 0) {
56
+ loading = 1;
57
+ (function () {
58
+ var li = document.createElement('script');
59
+ li.type = 'text/javascript';
60
+ li.async = true;
61
+ li.src = 'https://platform.linkedin.com/in.js';
62
+ var s = document.getElementsByTagName('script')[0];
63
+ s.parentNode.insertBefore(li, s);
64
+ })();
65
+ }
66
+ else if (typeof window.IN !== 'undefined' && window.IN.parse) {
67
+ IN.parse(document);
68
+ }
69
+ },
70
+ tracking: function () {
71
+ function LinkedInShare() {
72
+ _gaq.push(['_trackSocial', 'linkedin', 'share']);
73
+ }
74
+ },
75
+ popup: function (opt) {
76
+ window.open('https://www.linkedin.com/cws/share?url=' +
77
+ encodeURIComponent((this.settings.url !== '' ? this.settings.url : opt.url)) +
78
+ '&token=&isFramed=true', 'linkedin', 'toolbar=no, width=' + this.settings.popup.width + ", height=" + this.settings.popup.height);
79
  }
80
+ };
81
+ });
82
+
83
+
84
+ SharrrePlatform.register("facebook", function (options) {
85
+ defaultSettings = { //http://developers.facebook.com/docs/reference/plugins/like/
86
+ url: '', //if you need to personalize url button
87
+ urlCount: false, //if you want to use personnalize button url on global counter
88
+ action: 'like',
89
+ layout: 'button_count',
90
+ count: true,
91
+ width: '',
92
+ send: 'false',
93
+ faces: 'false',
94
+ colorscheme: '',
95
+ font: '',
96
+ lang: 'en_US',
97
+ share: '',
98
+ appId: '',
99
+ popup: {
100
+ width: 900,
101
+ height: 500
102
  }
103
+ };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
 
105
+ defaultSettings = $.extend(true, {}, defaultSettings, options);
106
+
107
+ return {
108
+ settings: defaultSettings,
109
+ url: function (url) {
110
+ return "https://graph.facebook.com/fql?q=SELECT%20url,%20normalized_url,%20share_count,%20like_count,%20comment_count,%20total_count,commentsbox_count,%20comments_fbid,%20click_count%20FROM%20link_stat%20WHERE%20url=%27{url}%27&callback=?";
111
+ },
112
+ trackingAction: {site: 'facebook', action: 'like'},
113
+ load: function (self) {
114
+ var sett = this.settings;
115
+ $(self.element).find('.buttons').append('<div class="button facebook"><div id="fb-root"></div>' +
116
+ '<div class="fb-like" data-href="' + (sett.url !== '' ? sett.url : self.options.url) +
117
+ '" data-send="' + sett.send +
118
+ '" data-layout="' + sett.layout +
119
+ '" data-width="' + sett.width +
120
+ '" data-show-faces="' + sett.faces +
121
+ '" data-action="' + sett.action +
122
+ '" data-colorscheme="' + sett.colorscheme +
123
+ '" data-font="' + sett.font +
124
+ '" data-via="' + sett.via +
125
+ '" data-share="' + sett.share +
126
+ '"></div></div>');
127
+ var loading = 0;
128
+ if (typeof FB === 'undefined' && loading === 0) {
129
+ loading = 1;
130
+ (function (d, s, id) {
131
+ var js, fjs = d.getElementsByTagName(s)[0];
132
+ if (d.getElementById(id)) {
133
+ return;
134
+ }
135
+ js = d.createElement(s);
136
+ js.id = id;
137
+ js.src = 'https://connect.facebook.net/' + sett.lang + '/all.js#xfbml=1';
138
+ if (sett.appId) {
139
+ js.src += '&appId=' + sett.appId;
140
+ }
141
+ fjs.parentNode.insertBefore(js, fjs);
142
+ }(document, 'script', 'facebook-jssdk'));
143
+ }
144
+ else {
145
+ FB.XFBML.parse();
146
+ }
147
+ },
148
+ tracking: function () {
149
+ fb = window.setInterval(function () {
150
+ if (typeof FB !== 'undefined' && 'undefined' !== typeof(_gaq) ) {
151
+ FB.Event.subscribe('edge.create', function (targetUrl) {
152
+ _gaq.push(['_trackSocial', 'facebook', 'like', targetUrl]);
153
+ });
154
+ FB.Event.subscribe('edge.remove', function (targetUrl) {
155
+ _gaq.push(['_trackSocial', 'facebook', 'unlike', targetUrl]);
156
+ });
157
+ FB.Event.subscribe('message.send', function (targetUrl) {
158
+ _gaq.push(['_trackSocial', 'facebook', 'send', targetUrl]);
159
+ });
160
+ //console.log('ok');
161
+ clearInterval(fb);
162
  }
163
+ }, 1000);
164
+ },
165
+ popup: function (opt) {
166
+ window.open("https://www.facebook.com/sharer/sharer.php?u=" +
167
+ encodeURIComponent((this.settings.url !== '' ? this.settings.url : opt.url)) +
168
+ "&t=" + opt.text + "", "", "toolbar=0, status=0, width=" + this.settings.popup.width + ", height=" + this.settings.popup.height);
169
  }
170
+ };
171
+ });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
172
 
173
 
174
 
175
+ SharrrePlatform.register("googlePlus", function (options) {
176
+ defaultSettings = { //http://www.google.com/webmasters/+1/button/
177
+ url: '', //if you need to personnalize button url
178
+ urlCount: false, //if you want to use personnalize button url on global counter
179
+ size: 'medium',
180
+ lang: 'en-US',
181
+ annotation: '',
182
+ count: true,
183
+ popup: {
184
+ width: 900,
185
+ height: 500
186
+ }
187
+ };
188
 
189
+ defaultSettings = $.extend(true, {}, defaultSettings, options);
190
+ return {
191
+ settings: defaultSettings,
192
+ url: function (url) {
193
+ return url + '?url={url}&type=googlePlus';
194
+ },
195
+ trackingAction: {site: 'Google', action: '+1'},
196
+ load: function (self) {
197
+ var sett = this.settings;
198
+ //$(self.element).find('.buttons').append('<div class="button googleplus"><g:plusone size="'+self.options.buttons.googlePlus.size+'" href="'+self.options.url+'"></g:plusone></div>');
199
+ $(self.element).find('.buttons').append('<div class="button googleplus"><div class="g-plusone" data-size="' +
200
+ sett.size + '" data-href="' + (sett.url !== '' ? sett.url : self.options.url) +
201
+ '" data-annotation="' + sett.annotation + '"></div></div>');
202
+ window.___gcfg = {
203
+ lang: sett.lang
204
+ };
205
+ var loading = 0;
206
+ if ((typeof gapi === 'undefined' || typeof gapi.plusone === 'undefined') && loading === 0) {
207
+ loading = 1;
208
+ (function () {
209
+ var po = document.createElement('script');
210
+ po.type = 'text/javascript';
211
+ po.async = true;
212
+ po.src = 'https://apis.google.com/js/plusone.js';
213
+ var s = document.getElementsByTagName('script')[0];
214
+ s.parentNode.insertBefore(po, s);
215
+ })();
216
+ }
217
+ else {
218
+ gapi.plusone.go();
219
+ }
220
+ },
221
+ tracking: function () {
222
+ },
223
+ popup: function (opt) {
224
+ window.open("https://plus.google.com/share?hl=" + this.settings.lang +
225
+ "&url=" + encodeURIComponent((this.settings.url !== '' ? this.settings.url : opt.url)),
226
+ "", "toolbar=0, status=0, width=" + this.settings.popup.width + ", height=" + this.settings.popup.height);
227
  }
228
+ };
229
+ });
230
+
231
+
232
+ SharrrePlatform.register("pinterest", function (options) {
233
+ defaultSettings = { //http://pinterest.com/about/goodies/
234
+ url: '', //if you need to personalize url button
235
+ media: '',
236
+ description: '',
237
+ layout: 'horizontal',
238
+ popup: {
239
+ width: 700,
240
+ height: 300
241
  }
242
+ };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
243
 
244
+ defaultSettings = $.extend(true, {}, defaultSettings, options);
245
+ return {
246
+ settings: defaultSettings,
247
+ url: function (test) {
248
+ return "https://api.pinterest.com/v1/urls/count.json?url={url}&callback=?";
249
+ },
250
+ trackingAction: {site: 'pinterest', action: 'pin'},
251
+ load: function (self) {
252
+ var sett = this.settings;
253
+ $(self.element).find('.buttons').append('<div class="button pinterest"><a href="https://www.pinterest.com/pin/create/button/?url=' + (sett.url !== '' ? sett.url : self.options.url) + '&media=' + sett.media + '&description=' + sett.description + '" data-pin-do="buttonBookmark" count-layout="' + sett.layout + '">Pin It</a></div>');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
254
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
255
  (function () {
256
+ var li = document.createElement('script');
257
+ li.type = 'text/javascript';
258
+ li.async = true;
259
+ li.src = 'https://assets.pinterest.com/js/pinit.js';
260
+ li.setAttribute('data-pin-build', 'parsePinBtns');
261
  var s = document.getElementsByTagName('script')[0];
262
+ s.parentNode.insertBefore(li, s);
263
  })();
264
+
265
+ if (window.parsePinBtns) {
266
+ window.parsePinBtns();
267
+ }
268
+ $(self.element).find('.pinterest').on('click', function () {
269
+ self.openPopup('pinterest');
270
+ });
271
+ },
272
+ tracking: function () {
273
+ },
274
+ popup: function (opt) {
275
+ window.open('https://pinterest.com/pin/create/button/?url=' +
276
+ encodeURIComponent((this.settings.url !== '' ? this.settings.url : opt.url)) +
277
+ '&media=' + encodeURIComponent(this.settings.media) +
278
+ '&description=' + this.settings.description, 'pinterest',
279
+ 'toolbar=no,width=' + this.settings.popup.width + ", height=" + this.settings.popup.height);
280
  }
281
+ };
282
+ });
283
+
284
+
285
+
286
+ SharrrePlatform.register("twitter", function (options) {
287
+ defaultSettings = { //http://twitter.com/about/resources/tweetbutton
288
+ url: '', //if you need to personalize url button
289
+ urlCount: false, //if you want to use personnalize button url on global counter
290
+ count: false,
291
+ hashtags: '',
292
+ via: '',
293
+ related: '',
294
+ lang: 'en',
295
+ popup: {
296
+ width: 650,
297
+ height: 360
298
  }
299
+ };
300
+
301
+ defaultSettings = $.extend(true, {}, defaultSettings, options);
302
+ return {
303
+ settings: defaultSettings,
304
+ trackingAction: {site: 'twitter', action: 'tweet'},
305
+ url: function (test) {
306
+ return "https://opensharecount.com/count.json?url={url}";
307
+ },
308
+ load: function (self) {
309
+ var sett = this.settings;
310
+ $(self.element).find('.buttons').append(
311
+ '<div class="button twitter"><a href="https://twitter.com/share" class="twitter-share-button" data-url="' + (sett.url !== '' ? sett.url : self.options.url) + '" data-count="' + sett.count + '" data-text="' + self.options.text + '" data-via="' + sett.via + '" data-hashtags="' + sett.hashtags + '" data-related="' + sett.related + '" data-lang="' + sett.lang + '">Tweet</a></div>');
312
+ var loading = 0;
313
+ if (typeof twttr === 'undefined' && loading === 0) {
314
+ loading = 1;
315
+ (function () {
316
+ var twitterScriptTag = document.createElement('script');
317
+ twitterScriptTag.type = 'text/javascript';
318
+ twitterScriptTag.async = true;
319
+ twitterScriptTag.src = 'https://platform.twitter.com/widgets.js';
320
+ var s = document.getElementsByTagName('script')[0];
321
+ s.parentNode.insertBefore(twitterScriptTag, s);
322
+ })();
323
  }
324
+ else {
325
+ $.ajax({url: 'https://platform.twitter.com/widgets.js', dataType: 'script', cache: true}); //http://stackoverflow.com/q/6536108
326
+ }
327
+ },
328
+ tracking: function () {
329
+ tw = window.setInterval(function () {
330
+ if (typeof twttr !== 'undefined') {
331
+ twttr.events.bind('tweet', function (event) {
332
+ if (event && 'undefined' !== typeof(_gaq) ) {
333
+ _gaq.push(['_trackSocial', 'twitter', 'tweet']);
334
+ }
335
+ });
336
+ clearInterval(tw);
337
+ }
338
+ }, 1000);
339
+ },
340
+ popup: function (opt) {
341
+ window.open("https://twitter.com/intent/tweet?text=" + encodeURIComponent(opt.text) + "&url=" + encodeURIComponent((this.settings.url !== '' ? this.setting.url : opt.url)) + (this.settings.via !== '' ? '&via=' + this.settings.via : ''), "", "toolbar=0, status=0,width=" + this.settings.popup.width + ", height=" + this.settings.popup.height);
342
+ }
343
+ };
344
+ });
345
+
346
+
347
+ SharrrePlatform.register("twitterFollow", function (options) {
348
+ defaultSettings = { //http://twitter.com/about/resources/tweetbutton
349
+ url: '', //if you need to personalize url button
350
+ urlCount: false, //if you want to use personnalize button url on global counter
351
+ count: true,
352
+ display: 'horizontal',
353
+ lang: 'en',
354
+ popup: {
355
+ width: 650,
356
+ height: 360
357
+ },
358
+ user: "",
359
+ size: 'default',
360
+ showCount: 'false'
361
+ };
362
 
363
+ defaultSettings = $.extend(true, {}, defaultSettings, options);
364
+ return {
365
+ settings: defaultSettings,
366
+ trackingAction: {site: 'twitter', action: 'follow'},
367
+ url: function (test) {
368
+ return '';
369
+ // Needs an API token
370
  // return "https://api.twitter.com/1.1/users/show.json?screen_name=" + this.settings.user + "&include_entities=true&callback=?";
371
+ },
372
+ load: function (self) {
373
+ var sett = this.settings;
374
+ $(self.element).find('.buttons').append(
375
+ '<div class="button twitterFollow"><a href="https://twitter.com/' + sett.user + '" class="twitter-follow-button"' +
376
+ '" data-size="' + sett.size +
377
+ '" data-show-count="' + sett.showCount +
378
+ '" data-lang="' + sett.lang +
379
+ '">Follow @' + sett.user + '</a></div>');
380
+ var loading = 0;
381
+ if (typeof twttr === 'undefined' && loading === 0) {
382
+ loading = 1;
383
+ (function () {
384
+ var twitterScriptTag = document.createElement('script');
385
+ twitterScriptTag.type = 'text/javascript';
386
+ twitterScriptTag.async = true;
387
+ twitterScriptTag.src = 'https://platform.twitter.com/widgets.js';
388
+ var s = document.getElementsByTagName('script')[0];
389
+ s.parentNode.insertBefore(twitterScriptTag, s);
390
+ })();
391
+ }
392
+ else {
393
+ $.ajax({url: 'https://platform.twitter.com/widgets.js', dataType: 'script', cache: true}); //http://stackoverflow.com/q/6536108
394
+ }
395
+ },
396
+ tracking: function () {
397
+ },
398
+ popup: function (opt) {
399
+ window.open("https://twitter.com/intent/follow?screen_name=" + encodeURIComponent(this.settings.user), "",
400
+ "toolbar=0, status=0, ,width=" + this.settings.popup.width + ", height=" + this.settings.popup.height);
401
+
402
  }
403
+ };
404
+ });
405
+ })(window.jQuery, SharrrePlatform);
406
+
407
+
 
408
 
 
 
 
409
 
410
 
411
 
assets/front/js/jQuerySharrre.min.js CHANGED
@@ -1 +1 @@
1
- var $=$||jQuery,SharrrePlatform=SharrrePlatform||function(){var a={};return{register:function(b,c){a[b]=c},get:function(b,c){return a[b]?new a[b](c):(console.error("Sharrre - No platform found for "+b),!1)}}}();SharrrePlatform.register("linkedin",function(a){return defaultSettings={url:"",urlCount:!1,counter:"",count:!0,popup:{width:550,height:550}},defaultSettings=$.extend(!0,{},defaultSettings,a),{settings:defaultSettings,url:function(a){return"https://www.linkedin.com/countserv/count/share?format=jsonp&url={url}&callback=?"},trackingAction:{site:"linkedin",action:"share"},load:function(a){var b=this.settings;$(a.element).find(".buttons").append('<div class="button linkedin"><script type="IN/share" data-url="'+(""!==b.url?b.url:a.options.url)+'" data-counter="'+b.counter+'"></script></div>');var c=0;"undefined"==typeof window.IN&&0===c?(c=1,function(){var a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://platform.linkedin.com/in.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}()):"undefined"!=typeof window.IN&&window.IN.parse&&IN.parse(document)},tracking:function(){},popup:function(a){window.open("https://www.linkedin.com/cws/share?url="+encodeURIComponent(""!==this.settings.url?this.settings.url:a.url)+"&token=&isFramed=true","linkedin","toolbar=no, width="+this.settings.popup.width+", height="+this.settings.popup.height)}}}),SharrrePlatform.register("facebook",function(a){return defaultSettings={url:"",urlCount:!1,action:"like",layout:"button_count",count:!0,width:"",send:"false",faces:"false",colorscheme:"",font:"",lang:"en_US",share:"",appId:"",popup:{width:900,height:500}},defaultSettings=$.extend(!0,{},defaultSettings,a),{settings:defaultSettings,url:function(a){return"https://graph.facebook.com/fql?q=SELECT%20url,%20normalized_url,%20share_count,%20like_count,%20comment_count,%20total_count,commentsbox_count,%20comments_fbid,%20click_count%20FROM%20link_stat%20WHERE%20url=%27{url}%27&callback=?"},trackingAction:{site:"facebook",action:"like"},load:function(a){var b=this.settings;$(a.element).find(".buttons").append('<div class="button facebook"><div id="fb-root"></div><div class="fb-like" data-href="'+(""!==b.url?b.url:a.options.url)+'" data-send="'+b.send+'" data-layout="'+b.layout+'" data-width="'+b.width+'" data-show-faces="'+b.faces+'" data-action="'+b.action+'" data-colorscheme="'+b.colorscheme+'" data-font="'+b.font+'" data-via="'+b.via+'" data-share="'+b.share+'"></div></div>');var c=0;"undefined"==typeof FB&&0===c?(c=1,function(a,c,d){var e,f=a.getElementsByTagName(c)[0];a.getElementById(d)||(e=a.createElement(c),e.id=d,e.src="https://connect.facebook.net/"+b.lang+"/all.js#xfbml=1",b.appId&&(e.src+="&appId="+b.appId),f.parentNode.insertBefore(e,f))}(document,"script","facebook-jssdk")):FB.XFBML.parse()},tracking:function(){fb=window.setInterval(function(){"undefined"!=typeof FB&&"undefined"!=typeof _gaq&&(FB.Event.subscribe("edge.create",function(a){_gaq.push(["_trackSocial","facebook","like",a])}),FB.Event.subscribe("edge.remove",function(a){_gaq.push(["_trackSocial","facebook","unlike",a])}),FB.Event.subscribe("message.send",function(a){_gaq.push(["_trackSocial","facebook","send",a])}),clearInterval(fb))},1e3)},popup:function(a){window.open("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(""!==this.settings.url?this.settings.url:a.url)+"&t="+a.text,"","toolbar=0, status=0, width="+this.settings.popup.width+", height="+this.settings.popup.height)}}}),SharrrePlatform.register("googlePlus",function(a){return defaultSettings={url:"",urlCount:!1,size:"medium",lang:"en-US",annotation:"",count:!0,popup:{width:900,height:500}},defaultSettings=$.extend(!0,{},defaultSettings,a),{settings:defaultSettings,url:function(a){return a+"?url={url}&type=googlePlus"},trackingAction:{site:"Google",action:"+1"},load:function(a){var b=this.settings;$(a.element).find(".buttons").append('<div class="button googleplus"><div class="g-plusone" data-size="'+b.size+'" data-href="'+(""!==b.url?b.url:a.options.url)+'" data-annotation="'+b.annotation+'"></div></div>'),window.___gcfg={lang:b.lang};var c=0;"undefined"!=typeof gapi&&"undefined"!=typeof gapi.plusone||0!==c?gapi.plusone.go():(c=1,function(){var a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://apis.google.com/js/plusone.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}())},tracking:function(){},popup:function(a){window.open("https://plus.google.com/share?hl="+this.settings.lang+"&url="+encodeURIComponent(""!==this.settings.url?this.settings.url:a.url),"","toolbar=0, status=0, width="+this.settings.popup.width+", height="+this.settings.popup.height)}}}),SharrrePlatform.register("pinterest",function(a){return defaultSettings={url:"",media:"",description:"",layout:"horizontal",popup:{width:700,height:300}},defaultSettings=$.extend(!0,{},defaultSettings,a),{settings:defaultSettings,url:function(a){return"https://api.pinterest.com/v1/urls/count.json?url={url}&callback=?"},trackingAction:{site:"pinterest",action:"pin"},load:function(a){var b=this.settings;$(a.element).find(".buttons").append('<div class="button pinterest"><a href="https://www.pinterest.com/pin/create/button/?url='+(""!==b.url?b.url:a.options.url)+"&media="+b.media+"&description="+b.description+'" data-pin-do="buttonBookmark" count-layout="'+b.layout+'">Pin It</a></div>'),function(){var a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://assets.pinterest.com/js/pinit.js",a.setAttribute("data-pin-build","parsePinBtns");var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}(),window.parsePinBtns&&window.parsePinBtns(),$(a.element).find(".pinterest").on("click",function(){a.openPopup("pinterest")})},tracking:function(){},popup:function(a){window.open("https://pinterest.com/pin/create/button/?url="+encodeURIComponent(""!==this.settings.url?this.settings.url:a.url)+"&media="+encodeURIComponent(this.settings.media)+"&description="+this.settings.description,"pinterest","toolbar=no,width="+this.settings.popup.width+", height="+this.settings.popup.height)}}}),SharrrePlatform.register("twitter",function(a){return defaultSettings={url:"",urlCount:!1,count:!1,hashtags:"",via:"",related:"",lang:"en",popup:{width:650,height:360}},defaultSettings=$.extend(!0,{},defaultSettings,a),{settings:defaultSettings,trackingAction:{site:"twitter",action:"tweet"},url:function(a){return"https://opensharecount.com/count.json?url={url}"},load:function(a){var b=this.settings;$(a.element).find(".buttons").append('<div class="button twitter"><a href="https://twitter.com/share" class="twitter-share-button" data-url="'+(""!==b.url?b.url:a.options.url)+'" data-count="'+b.count+'" data-text="'+a.options.text+'" data-via="'+b.via+'" data-hashtags="'+b.hashtags+'" data-related="'+b.related+'" data-lang="'+b.lang+'">Tweet</a></div>');var c=0;"undefined"==typeof twttr&&0===c?(c=1,function(){var a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://platform.twitter.com/widgets.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}()):$.ajax({url:"https://platform.twitter.com/widgets.js",dataType:"script",cache:!0})},tracking:function(){tw=window.setInterval(function(){"undefined"!=typeof twttr&&(twttr.events.bind("tweet",function(a){a&&"undefined"!=typeof _gaq&&_gaq.push(["_trackSocial","twitter","tweet"])}),clearInterval(tw))},1e3)},popup:function(a){window.open("https://twitter.com/intent/tweet?text="+encodeURIComponent(a.text)+"&url="+encodeURIComponent(""!==this.settings.url?this.setting.url:a.url)+(""!==this.settings.via?"&via="+this.settings.via:""),"","toolbar=0, status=0,width="+this.settings.popup.width+", height="+this.settings.popup.height)}}}),SharrrePlatform.register("twitterFollow",function(a){return defaultSettings={url:"",urlCount:!1,count:!0,display:"horizontal",lang:"en",popup:{width:650,height:360},user:"",size:"default",showCount:"false"},defaultSettings=$.extend(!0,{},defaultSettings,a),{settings:defaultSettings,trackingAction:{site:"twitter",action:"follow"},url:function(a){return""},load:function(a){var b=this.settings;$(a.element).find(".buttons").append('<div class="button twitterFollow"><a href="https://twitter.com/'+b.user+'" class="twitter-follow-button"" data-size="'+b.size+'" data-show-count="'+b.showCount+'" data-lang="'+b.lang+'">Follow @'+b.user+"</a></div>");var c=0;"undefined"==typeof twttr&&0===c?(c=1,function(){var a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://platform.twitter.com/widgets.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}()):$.ajax({url:"https://platform.twitter.com/widgets.js",dataType:"script",cache:!0})},tracking:function(){},popup:function(a){window.open("https://twitter.com/intent/follow?screen_name="+encodeURIComponent(this.settings.user),"","toolbar=0, status=0, ,width="+this.settings.popup.width+", height="+this.settings.popup.height)}}}),function(a,b,c,d){function e(b,c){this.element=b,this.options=a.extend(!0,{},g,c),this.options.share=c.share,this._defaults=g,this._name=f,this.platforms={},this.init()}var f="sharrre",g={className:"sharrre",share:{},shareTotal:0,template:"",title:"",url:c.location.href,text:c.title,urlCurl:"sharrre.php",count:{},total:0,shorterTotal:!0,enableHover:!0,enableCounter:!0,enableTracking:!1,defaultUrl:"javascript:void(0);",popup:{width:900,height:500},hover:function(){},hide:function(){},click:function(){},render:function(){}};e.prototype.init=function(){var b=this;a.each(b.options.share,function(a,c){c===!0&&(b.platforms[a]=SharrrePlatform.get(a,b.options.buttons[a]))}),a(this.element).addClass(this.options.className),"undefined"!=typeof a(this.element).data("title")&&(this.options.title=a(this.element).attr("data-title")),"undefined"!=typeof a(this.element).data("url")&&(this.options.url=a(this.element).data("url")),"undefined"!=typeof a(this.element).data("text")&&(this.options.text=a(this.element).data("text")),a.each(this.options.share,function(a,c){c===!0&&b.options.shareTotal++}),b.options.enableCounter===!0?a.each(this.options.share,function(a,c){if(c===!0)try{b.getSocialJson(a)}catch(d){}}):""!==b.options.template&&(b.renderer(),b.options.count[name]=0,b.rendererPerso()),""!==b.options.template?this.options.render(this,this.options):this.loadButtons(),a(this.element).on("mouseenter",function(){0===a(this).find(".buttons").length&&b.options.enableHover===!0&&b.loadButtons(),b.options.hover(b,b.options)}).on("mouseleave",function(){b.options.hide(b,b.options)}),a(this.element).click(function(a){return a.preventDefault(),b.options.click(b,b.options),!1})},e.prototype.loadButtons=function(){var b=this;a(this.element).append('<div class="buttons"></div>'),a.each(b.options.share,function(a,c){c===!0&&(b.platforms[a].load(b),b.options.enableTracking===!0&&b.platforms[a].tracking())})},e.prototype.getSocialJson=function(b){var c=this,d=0,e=c.platforms[b].settings,f=c.platforms[b].url(this.options.urlCurl),g=encodeURIComponent(this.options.url);e.url.length&&(f=e.url),e.urlCount===!0&&""!==f&&(g=f),e.count===!1&&(f=""),url=f.replace("{url}",g),""!==url?a.getJSON(url,function(a){if("undefined"!=typeof a.count){var e=a.count+"";e=e.replace(" ",""),d+=parseInt(e,10)}else a.data&&a.data.length>0&&"undefined"!=typeof a.data[0].total_count?d+=parseInt(a.data[0].total_count,10):"undefined"!=typeof a[0]?d+=parseInt(a[0].total_posts,10):"undefined"!=typeof a[0];c.options.count[b]=d,c.options.total+=d,c.renderer(),c.rendererPerso()}).error(function(){c.options.count[b]=0,c.rendererPerso()}):(c.renderer(),c.options.count[b]=0,c.rendererPerso())},e.prototype.rendererPerso=function(){var a=0;for(var b in this.options.count)a++;a===this.options.shareTotal&&this.options.render(this,this.options)},e.prototype.renderer=function(){var b=this.options.total,c=this.options.template;this.options.shorterTotal===!0&&(b=this.shorterTotal(b)),""!==c?(c=c.replace("{total}",b),a(this.element).html(c)):a(this.element).html('<div class="box"><a class="count" href="'+this.options.defaultUrl+'">'+b+"</a>"+(""!==this.options.title?'<a class="share" href="'+this.options.defaultUrl+'">'+this.options.title+"</a>":"")+"</div>")},e.prototype.shorterTotal=function(a){return a>=1e6?a=(a/1e6).toFixed(2)+"M":a>=1e3&&(a=(a/1e3).toFixed(1)+"k"),a},e.prototype.openPopup=function(a){this.platforms[a].popup(this.options),this.options.enableTracking===!0&&"undefined"!=typeof _gaq&&(infos=this.platforms[a].trackingAction,_gaq.push(["_trackSocial",infos.site,infos.action]))},e.prototype.simulateClick=function(){var b=a(this.element).html();a(this.element).html(b.replace(this.options.total,this.options.total+1))},e.prototype.update=function(a,b){""!==a&&(this.options.url=a),""!==b&&(this.options.text=b)},a.fn[f]=function(b){var c=arguments;return b===d||"object"==typeof b?this.each(function(){a(this).data("plugin_"+f)||a(this).data("plugin_"+f,new e(this,b))}):"string"==typeof b&&"_"!==b[0]&&"init"!==b?this.each(function(){var d=a(this).data("plugin_"+f);d instanceof e&&"function"==typeof d[b]&&d[b].apply(d,Array.prototype.slice.call(c,1))}):void 0}}(window.jQuery||window.Zepto,window,document);
1
+ var SharrrePlatform=SharrrePlatform||function(){var a={};return{register:function(b,c){a[b]=c},get:function(b,c){return a[b]?new a[b](c):(console.error("Sharrre - No platform found for "+b),!1)}}}();!function(a,b){"undefined"!=typeof a&&(b.register("linkedin",function(b){return defaultSettings={url:"",urlCount:!1,counter:"",count:!0,popup:{width:550,height:550}},defaultSettings=a.extend(!0,{},defaultSettings,b),{settings:defaultSettings,url:function(a){return"https://www.linkedin.com/countserv/count/share?format=jsonp&url={url}&callback=?"},trackingAction:{site:"linkedin",action:"share"},load:function(b){var c=this.settings;a(b.element).find(".buttons").append('<div class="button linkedin"><script type="IN/share" data-url="'+(""!==c.url?c.url:b.options.url)+'" data-counter="'+c.counter+'"></script></div>');var d=0;"undefined"==typeof window.IN&&0===d?(d=1,function(){var a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://platform.linkedin.com/in.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}()):"undefined"!=typeof window.IN&&window.IN.parse&&IN.parse(document)},tracking:function(){},popup:function(a){window.open("https://www.linkedin.com/cws/share?url="+encodeURIComponent(""!==this.settings.url?this.settings.url:a.url)+"&token=&isFramed=true","linkedin","toolbar=no, width="+this.settings.popup.width+", height="+this.settings.popup.height)}}}),b.register("facebook",function(b){return defaultSettings={url:"",urlCount:!1,action:"like",layout:"button_count",count:!0,width:"",send:"false",faces:"false",colorscheme:"",font:"",lang:"en_US",share:"",appId:"",popup:{width:900,height:500}},defaultSettings=a.extend(!0,{},defaultSettings,b),{settings:defaultSettings,url:function(a){return"https://graph.facebook.com/fql?q=SELECT%20url,%20normalized_url,%20share_count,%20like_count,%20comment_count,%20total_count,commentsbox_count,%20comments_fbid,%20click_count%20FROM%20link_stat%20WHERE%20url=%27{url}%27&callback=?"},trackingAction:{site:"facebook",action:"like"},load:function(b){var c=this.settings;a(b.element).find(".buttons").append('<div class="button facebook"><div id="fb-root"></div><div class="fb-like" data-href="'+(""!==c.url?c.url:b.options.url)+'" data-send="'+c.send+'" data-layout="'+c.layout+'" data-width="'+c.width+'" data-show-faces="'+c.faces+'" data-action="'+c.action+'" data-colorscheme="'+c.colorscheme+'" data-font="'+c.font+'" data-via="'+c.via+'" data-share="'+c.share+'"></div></div>');var d=0;"undefined"==typeof FB&&0===d?(d=1,function(a,b,d){var e,f=a.getElementsByTagName(b)[0];a.getElementById(d)||(e=a.createElement(b),e.id=d,e.src="https://connect.facebook.net/"+c.lang+"/all.js#xfbml=1",c.appId&&(e.src+="&appId="+c.appId),f.parentNode.insertBefore(e,f))}(document,"script","facebook-jssdk")):FB.XFBML.parse()},tracking:function(){fb=window.setInterval(function(){"undefined"!=typeof FB&&"undefined"!=typeof _gaq&&(FB.Event.subscribe("edge.create",function(a){_gaq.push(["_trackSocial","facebook","like",a])}),FB.Event.subscribe("edge.remove",function(a){_gaq.push(["_trackSocial","facebook","unlike",a])}),FB.Event.subscribe("message.send",function(a){_gaq.push(["_trackSocial","facebook","send",a])}),clearInterval(fb))},1e3)},popup:function(a){window.open("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(""!==this.settings.url?this.settings.url:a.url)+"&t="+a.text,"","toolbar=0, status=0, width="+this.settings.popup.width+", height="+this.settings.popup.height)}}}),b.register("googlePlus",function(b){return defaultSettings={url:"",urlCount:!1,size:"medium",lang:"en-US",annotation:"",count:!0,popup:{width:900,height:500}},defaultSettings=a.extend(!0,{},defaultSettings,b),{settings:defaultSettings,url:function(a){return a+"?url={url}&type=googlePlus"},trackingAction:{site:"Google",action:"+1"},load:function(b){var c=this.settings;a(b.element).find(".buttons").append('<div class="button googleplus"><div class="g-plusone" data-size="'+c.size+'" data-href="'+(""!==c.url?c.url:b.options.url)+'" data-annotation="'+c.annotation+'"></div></div>'),window.___gcfg={lang:c.lang};var d=0;"undefined"!=typeof gapi&&"undefined"!=typeof gapi.plusone||0!==d?gapi.plusone.go():(d=1,function(){var a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://apis.google.com/js/plusone.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}())},tracking:function(){},popup:function(a){window.open("https://plus.google.com/share?hl="+this.settings.lang+"&url="+encodeURIComponent(""!==this.settings.url?this.settings.url:a.url),"","toolbar=0, status=0, width="+this.settings.popup.width+", height="+this.settings.popup.height)}}}),b.register("pinterest",function(b){return defaultSettings={url:"",media:"",description:"",layout:"horizontal",popup:{width:700,height:300}},defaultSettings=a.extend(!0,{},defaultSettings,b),{settings:defaultSettings,url:function(a){return"https://api.pinterest.com/v1/urls/count.json?url={url}&callback=?"},trackingAction:{site:"pinterest",action:"pin"},load:function(b){var c=this.settings;a(b.element).find(".buttons").append('<div class="button pinterest"><a href="https://www.pinterest.com/pin/create/button/?url='+(""!==c.url?c.url:b.options.url)+"&media="+c.media+"&description="+c.description+'" data-pin-do="buttonBookmark" count-layout="'+c.layout+'">Pin It</a></div>'),function(){var a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://assets.pinterest.com/js/pinit.js",a.setAttribute("data-pin-build","parsePinBtns");var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}(),window.parsePinBtns&&window.parsePinBtns(),a(b.element).find(".pinterest").on("click",function(){b.openPopup("pinterest")})},tracking:function(){},popup:function(a){window.open("https://pinterest.com/pin/create/button/?url="+encodeURIComponent(""!==this.settings.url?this.settings.url:a.url)+"&media="+encodeURIComponent(this.settings.media)+"&description="+this.settings.description,"pinterest","toolbar=no,width="+this.settings.popup.width+", height="+this.settings.popup.height)}}}),b.register("twitter",function(b){return defaultSettings={url:"",urlCount:!1,count:!1,hashtags:"",via:"",related:"",lang:"en",popup:{width:650,height:360}},defaultSettings=a.extend(!0,{},defaultSettings,b),{settings:defaultSettings,trackingAction:{site:"twitter",action:"tweet"},url:function(a){return"https://opensharecount.com/count.json?url={url}"},load:function(b){var c=this.settings;a(b.element).find(".buttons").append('<div class="button twitter"><a href="https://twitter.com/share" class="twitter-share-button" data-url="'+(""!==c.url?c.url:b.options.url)+'" data-count="'+c.count+'" data-text="'+b.options.text+'" data-via="'+c.via+'" data-hashtags="'+c.hashtags+'" data-related="'+c.related+'" data-lang="'+c.lang+'">Tweet</a></div>');var d=0;"undefined"==typeof twttr&&0===d?(d=1,function(){var a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://platform.twitter.com/widgets.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}()):a.ajax({url:"https://platform.twitter.com/widgets.js",dataType:"script",cache:!0})},tracking:function(){tw=window.setInterval(function(){"undefined"!=typeof twttr&&(twttr.events.bind("tweet",function(a){a&&"undefined"!=typeof _gaq&&_gaq.push(["_trackSocial","twitter","tweet"])}),clearInterval(tw))},1e3)},popup:function(a){window.open("https://twitter.com/intent/tweet?text="+encodeURIComponent(a.text)+"&url="+encodeURIComponent(""!==this.settings.url?this.setting.url:a.url)+(""!==this.settings.via?"&via="+this.settings.via:""),"","toolbar=0, status=0,width="+this.settings.popup.width+", height="+this.settings.popup.height)}}}),b.register("twitterFollow",function(b){return defaultSettings={url:"",urlCount:!1,count:!0,display:"horizontal",lang:"en",popup:{width:650,height:360},user:"",size:"default",showCount:"false"},defaultSettings=a.extend(!0,{},defaultSettings,b),{settings:defaultSettings,trackingAction:{site:"twitter",action:"follow"},url:function(a){return""},load:function(b){var c=this.settings;a(b.element).find(".buttons").append('<div class="button twitterFollow"><a href="https://twitter.com/'+c.user+'" class="twitter-follow-button"" data-size="'+c.size+'" data-show-count="'+c.showCount+'" data-lang="'+c.lang+'">Follow @'+c.user+"</a></div>");var d=0;"undefined"==typeof twttr&&0===d?(d=1,function(){var a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://platform.twitter.com/widgets.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}()):a.ajax({url:"https://platform.twitter.com/widgets.js",dataType:"script",cache:!0})},tracking:function(){},popup:function(a){window.open("https://twitter.com/intent/follow?screen_name="+encodeURIComponent(this.settings.user),"","toolbar=0, status=0, ,width="+this.settings.popup.width+", height="+this.settings.popup.height)}}}))}(window.jQuery,SharrrePlatform),function(a,b,c,d){function e(b,c){this.element=b,this.options=a.extend(!0,{},g,c),this.options.share=c.share,this._defaults=g,this._name=f,this.platforms={},this.init()}var f="sharrre",g={className:"sharrre",share:{},shareTotal:0,template:"",title:"",url:c.location.href,text:c.title,urlCurl:"sharrre.php",count:{},total:0,shorterTotal:!0,enableHover:!0,enableCounter:!0,enableTracking:!1,defaultUrl:"javascript:void(0);",popup:{width:900,height:500},hover:function(){},hide:function(){},click:function(){},render:function(){}};e.prototype.init=function(){var b=this;a.each(b.options.share,function(a,c){c===!0&&(b.platforms[a]=SharrrePlatform.get(a,b.options.buttons[a]))}),a(this.element).addClass(this.options.className),"undefined"!=typeof a(this.element).data("title")&&(this.options.title=a(this.element).attr("data-title")),"undefined"!=typeof a(this.element).data("url")&&(this.options.url=a(this.element).data("url")),"undefined"!=typeof a(this.element).data("text")&&(this.options.text=a(this.element).data("text")),a.each(this.options.share,function(a,c){c===!0&&b.options.shareTotal++}),b.options.enableCounter===!0?a.each(this.options.share,function(a,c){if(c===!0)try{b.getSocialJson(a)}catch(d){}}):""!==b.options.template&&(b.renderer(),b.options.count[name]=0,b.rendererPerso()),""!==b.options.template?this.options.render(this,this.options):this.loadButtons(),a(this.element).on("mouseenter",function(){0===a(this).find(".buttons").length&&b.options.enableHover===!0&&b.loadButtons(),b.options.hover(b,b.options)}).on("mouseleave",function(){b.options.hide(b,b.options)}),a(this.element).click(function(a){return a.preventDefault(),b.options.click(b,b.options),!1})},e.prototype.loadButtons=function(){var b=this;a(this.element).append('<div class="buttons"></div>'),a.each(b.options.share,function(a,c){c===!0&&(b.platforms[a].load(b),b.options.enableTracking===!0&&b.platforms[a].tracking())})},e.prototype.getSocialJson=function(b){var c=this,d=0,e=c.platforms[b].settings,f=c.platforms[b].url(this.options.urlCurl),g=encodeURIComponent(this.options.url);e.url.length&&(f=e.url),e.urlCount===!0&&""!==f&&(g=f),e.count===!1&&(f=""),url=f.replace("{url}",g),""!==url?a.getJSON(url,function(a){if("undefined"!=typeof a.count){var e=a.count+"";e=e.replace(" ",""),d+=parseInt(e,10)}else a.data&&a.data.length>0&&"undefined"!=typeof a.data[0].total_count?d+=parseInt(a.data[0].total_count,10):"undefined"!=typeof a[0]?d+=parseInt(a[0].total_posts,10):"undefined"!=typeof a[0];c.options.count[b]=d,c.options.total+=d,c.renderer(),c.rendererPerso()}).error(function(){c.options.count[b]=0,c.rendererPerso()}):(c.renderer(),c.options.count[b]=0,c.rendererPerso())},e.prototype.rendererPerso=function(){var a=0;for(var b in this.options.count)a++;a===this.options.shareTotal&&this.options.render(this,this.options)},e.prototype.renderer=function(){var b=this.options.total,c=this.options.template;this.options.shorterTotal===!0&&(b=this.shorterTotal(b)),""!==c?(c=c.replace("{total}",b),a(this.element).html(c)):a(this.element).html('<div class="box"><a class="count" href="'+this.options.defaultUrl+'">'+b+"</a>"+(""!==this.options.title?'<a class="share" href="'+this.options.defaultUrl+'">'+this.options.title+"</a>":"")+"</div>")},e.prototype.shorterTotal=function(a){return a>=1e6?a=(a/1e6).toFixed(2)+"M":a>=1e3&&(a=(a/1e3).toFixed(1)+"k"),a},e.prototype.openPopup=function(a){this.platforms[a].popup(this.options),this.options.enableTracking===!0&&"undefined"!=typeof _gaq&&(infos=this.platforms[a].trackingAction,_gaq.push(["_trackSocial",infos.site,infos.action]))},e.prototype.simulateClick=function(){var b=a(this.element).html();a(this.element).html(b.replace(this.options.total,this.options.total+1))},e.prototype.update=function(a,b){""!==a&&(this.options.url=a),""!==b&&(this.options.text=b)},a.fn[f]=function(b){var c=arguments;return b===d||"object"==typeof b?this.each(function(){a(this).data("plugin_"+f)||a(this).data("plugin_"+f,new e(this,b))}):"string"==typeof b&&"_"!==b[0]&&"init"!==b?this.each(function(){var d=a(this).data("plugin_"+f);d instanceof e&&"function"==typeof d[b]&&d[b].apply(d,Array.prototype.slice.call(c,1))}):void 0}}(window.jQuery||window.Zepto,window,document);
hueman-addons.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Hueman Addons
4
  * Plugin URI: http://presscustomizr.com
5
  * Description: Hueman Theme Addons
6
- * Version: 1.0.3
7
  * Author: Press Customizr
8
  * Author URI: http://presscustomizr.com
9
  * License: GPLv2 or later
@@ -57,7 +57,7 @@ class HU_addons_plugin {
57
  add_action( 'wp', array($this, 'hu_sharrre_front_actions') );
58
 
59
  //CUSTOMIZER PANEL JS
60
- add_action( 'customize_controls_print_footer_scripts', array( $this, 'hu_add_visibilities' ), 100 );
61
  }//end of construct
62
 
63
 
@@ -204,12 +204,12 @@ class HU_addons_plugin {
204
 
205
 
206
  //hook : 'customize_controls_enqueue_scripts'
207
- function hu_add_visibilities() {
208
  ?>
209
  <script type="text/javascript">
210
  (function (api, $, _) {
211
- var _oldDeps = api.HU_visibilities.prototype.controlDeps;
212
- api.HU_visibilities.prototype.controlDeps = _.extend( _oldDeps, {
213
  'sharrre' : {
214
  controls: [
215
  'sharrre-scrollable',
@@ -329,4 +329,4 @@ function hu_are_share_buttons_enabled() {
329
  if ( ! hu_is_checked('sharrre-twitter-on') && ! hu_is_checked('sharrre-facebook-on') && ! hu_is_checked('sharrre-google-on') && ! hu_is_checked('sharrre-pinterest-on') && ! hu_is_checked('sharrre-linkedin-on') )
330
  return;
331
  return true;
332
- }
3
  * Plugin Name: Hueman Addons
4
  * Plugin URI: http://presscustomizr.com
5
  * Description: Hueman Theme Addons
6
+ * Version: 1.0.4
7
  * Author: Press Customizr
8
  * Author URI: http://presscustomizr.com
9
  * License: GPLv2 or later
57
  add_action( 'wp', array($this, 'hu_sharrre_front_actions') );
58
 
59
  //CUSTOMIZER PANEL JS
60
+ add_action( 'customize_controls_print_footer_scripts', array( $this, 'hu_extend_visibilities' ), 100 );
61
  }//end of construct
62
 
63
 
204
 
205
 
206
  //hook : 'customize_controls_enqueue_scripts'
207
+ function hu_extend_visibilities() {
208
  ?>
209
  <script type="text/javascript">
210
  (function (api, $, _) {
211
+ var _oldDeps = api.CZR_visibilities.prototype.controlDeps;
212
+ api.CZR_visibilities.prototype.controlDeps = _.extend( _oldDeps, {
213
  'sharrre' : {
214
  controls: [
215
  'sharrre-scrollable',
329
  if ( ! hu_is_checked('sharrre-twitter-on') && ! hu_is_checked('sharrre-facebook-on') && ! hu_is_checked('sharrre-google-on') && ! hu_is_checked('sharrre-pinterest-on') && ! hu_is_checked('sharrre-linkedin-on') )
330
  return;
331
  return true;
332
+ }
lang/en_US.po CHANGED
@@ -1,86 +1,86 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: Hueman Addons v1.0.3\n"
4
- "POT-Creation-Date: 2016-05-05 14:53+0200\n"
5
- "PO-Revision-Date: 2016-05-05 14:53+0200\n"
6
- "Last-Translator: \n"
7
- "Language-Team: Press Customizr\n"
8
- "Language: en_US\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.8.5\n"
13
- "X-Poedit-KeywordsList: __;_e;_n:1,2\n"
14
- "X-Poedit-Basepath: ..\n"
15
- "Plural-Forms: nplurals=2; plural=(n > 1);\n"
16
- "X-Poedit-SourceCharset: UTF-8\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
- "X-Poedit-SearchPathExcluded-0: assets\n"
19
- "X-Poedit-SearchPathExcluded-1: node_modules\n"
20
- "X-Poedit-SearchPathExcluded-2: grunt-tasks-config\n"
21
- "X-Poedit-SearchPathExcluded-3: build\n"
22
-
23
- #: hueman-addons.php:68
24
- msgid "Display social sharing buttons in your single posts"
25
- msgstr ""
26
-
27
- #: hueman-addons.php:69
28
- msgid "Social Sharring Bar Setttings"
29
- msgstr ""
30
-
31
- #: hueman-addons.php:70
32
- msgid "Display social sharing buttons in each single articles."
33
- msgstr ""
34
-
35
- #: hueman-addons.php:78
36
- msgid "Make the Share Bar \"sticky\""
37
- msgstr ""
38
-
39
- #: hueman-addons.php:79
40
- msgid ""
41
- "Make the social share bar stick to the browser window when scrolling down a "
42
- "post."
43
- msgstr ""
44
-
45
- #: hueman-addons.php:87
46
- msgid "Enable Twitter Button"
47
- msgstr ""
48
-
49
- #: hueman-addons.php:95
50
- msgid "Twitter Username (without \"@\")"
51
- msgstr ""
52
-
53
- #: hueman-addons.php:96
54
- msgid ""
55
- "Simply enter your username without the \"@\" prefix. Your username will be "
56
- "added to share-tweets of your posts (optional)."
57
- msgstr ""
58
-
59
- #: hueman-addons.php:105
60
- msgid "Enable Facebook Button"
61
- msgstr ""
62
-
63
- #: hueman-addons.php:113
64
- msgid "Enable Google Plus Button"
65
- msgstr ""
66
-
67
- #: hueman-addons.php:121
68
- msgid "Enable Pinterest Button"
69
- msgstr ""
70
-
71
- #: hueman-addons.php:129
72
- msgid "Enable LinkedIn Button"
73
- msgstr ""
74
-
75
- #: hueman-addons.php:270
76
- msgid "works only with the Hueman theme"
77
- msgstr ""
78
-
79
- #: hueman-addons.php:276
80
- #, php-format
81
- msgid "The <strong>%1$s</strong> plugin %2$s."
82
- msgstr ""
83
-
84
- #: inc/sharrre-template.php:2
85
- msgid "Share"
86
- msgstr ""
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Hueman Addons v1.0.4\n"
4
+ "POT-Creation-Date: 2016-05-05 14:53+0200\n"
5
+ "PO-Revision-Date: 2016-05-05 14:53+0200\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: Press Customizr\n"
8
+ "Language: en_US\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.8.5\n"
13
+ "X-Poedit-KeywordsList: __;_e;_n:1,2\n"
14
+ "X-Poedit-Basepath: ..\n"
15
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
16
+ "X-Poedit-SourceCharset: UTF-8\n"
17
+ "X-Poedit-SearchPath-0: .\n"
18
+ "X-Poedit-SearchPathExcluded-0: assets\n"
19
+ "X-Poedit-SearchPathExcluded-1: node_modules\n"
20
+ "X-Poedit-SearchPathExcluded-2: grunt-tasks-config\n"
21
+ "X-Poedit-SearchPathExcluded-3: build\n"
22
+
23
+ #: hueman-addons.php:68
24
+ msgid "Display social sharing buttons in your single posts"
25
+ msgstr ""
26
+
27
+ #: hueman-addons.php:69
28
+ msgid "Social Sharring Bar Setttings"
29
+ msgstr ""
30
+
31
+ #: hueman-addons.php:70
32
+ msgid "Display social sharing buttons in each single articles."
33
+ msgstr ""
34
+
35
+ #: hueman-addons.php:78
36
+ msgid "Make the Share Bar \"sticky\""
37
+ msgstr ""
38
+
39
+ #: hueman-addons.php:79
40
+ msgid ""
41
+ "Make the social share bar stick to the browser window when scrolling down a "
42
+ "post."
43
+ msgstr ""
44
+
45
+ #: hueman-addons.php:87
46
+ msgid "Enable Twitter Button"
47
+ msgstr ""
48
+
49
+ #: hueman-addons.php:95
50
+ msgid "Twitter Username (without \"@\")"
51
+ msgstr ""
52
+
53
+ #: hueman-addons.php:96
54
+ msgid ""
55
+ "Simply enter your username without the \"@\" prefix. Your username will be "
56
+ "added to share-tweets of your posts (optional)."
57
+ msgstr ""
58
+
59
+ #: hueman-addons.php:105
60
+ msgid "Enable Facebook Button"
61
+ msgstr ""
62
+
63
+ #: hueman-addons.php:113
64
+ msgid "Enable Google Plus Button"
65
+ msgstr ""
66
+
67
+ #: hueman-addons.php:121
68
+ msgid "Enable Pinterest Button"
69
+ msgstr ""
70
+
71
+ #: hueman-addons.php:129
72
+ msgid "Enable LinkedIn Button"
73
+ msgstr ""
74
+
75
+ #: hueman-addons.php:270
76
+ msgid "works only with the Hueman theme"
77
+ msgstr ""
78
+
79
+ #: hueman-addons.php:276
80
+ #, php-format
81
+ msgid "The <strong>%1$s</strong> plugin %2$s."
82
+ msgstr ""
83
+
84
+ #: inc/sharrre-template.php:2
85
+ msgid "Share"
86
+ msgstr ""
readme.txt CHANGED
@@ -5,43 +5,27 @@ Plugin URI: https://github.com/presscustomizr/hueman-addons
5
  Tags: hueman theme, hueman
6
  Requires at least: 3.4
7
  Tested up to: 4.5
8
- Stable tag: 1.0.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
12
  Addons for the Hueman WordPress theme
13
 
14
  == Description ==
15
-
16
  **Addons for the Hueman WordPress theme.**
17
  The plugin includes the Share bar and shortcodes for the Hueman theme.
18
 
19
- = Plugin Features =
20
-
21
-
22
-
23
- = Credits =
24
-
25
-
26
-
27
- = Translations =
28
-
29
-
30
 
31
  == Installation ==
32
-
33
  1. Install the plugin right from your WordPress admin in plugins > Add New.
34
  1-bis. Download the plugin, unzip the package and upload it to your /wp-content/plugins/ directory
35
  2. Activate the plugin
36
 
37
- == Frequently Asked Questions ==
38
-
39
-
40
- == Screenshots ==
41
-
42
-
43
 
44
  == Changelog ==
 
 
 
45
  = 1.0.3 : May 5th, 2016 =
46
  * added : lang domain for plugin translation
47
 
5
  Tags: hueman theme, hueman
6
  Requires at least: 3.4
7
  Tested up to: 4.5
8
+ Stable tag: 1.0.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
12
  Addons for the Hueman WordPress theme
13
 
14
  == Description ==
 
15
  **Addons for the Hueman WordPress theme.**
16
  The plugin includes the Share bar and shortcodes for the Hueman theme.
17
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
  == Installation ==
 
20
  1. Install the plugin right from your WordPress admin in plugins > Add New.
21
  1-bis. Download the plugin, unzip the package and upload it to your /wp-content/plugins/ directory
22
  2. Activate the plugin
23
 
 
 
 
 
 
 
24
 
25
  == Changelog ==
26
+ = 1.0.4 : May 30th, 2016 =
27
+ * Fix : disapppearing sharebar, added function scope to jQuerySharre.js to avoid 3rd party plugin conflicts
28
+
29
  = 1.0.3 : May 5th, 2016 =
30
  * added : lang domain for plugin translation
31