Hueman Addons - Version 1.0.3

Version Description

: May 5th, 2016 = * added : lang domain for plugin translation

Download this release

Release Info

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

Version 1.0.3

assets/front/js/jQuerySharrre.js ADDED
@@ -0,0 +1,682 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var $ = $ || jQuery;
2
+
3
+ /*!
4
+ * Sharrre.com - Make your sharing widget!
5
+ * Version: 2.0.1
6
+ * Author: Julien Hany
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
+
403
+ (function ($, window, document, undefined) {
404
+
405
+ /* Defaults*/
406
+ var pluginName = 'sharrre',
407
+ defaults = {
408
+ className: 'sharrre',
409
+ share: {},
410
+ shareTotal: 0,
411
+ template: '',
412
+ title: '',
413
+ url: document.location.href,
414
+ text: document.title,
415
+ urlCurl: 'sharrre.php', //PHP script for google plus...
416
+ count: {}, //counter by social network
417
+ total: 0, //total of sharing
418
+ shorterTotal: true, //show total by k or M when number is to big
419
+ enableHover: true, //disable if you want to personalize hover event with callback
420
+ enableCounter: true, //disable if you just want use buttons
421
+ enableTracking: false, //tracking with google analitycs
422
+ defaultUrl: "javascript:void(0);",
423
+ popup: { // Set the popup width and height
424
+ width: 900,
425
+ height: 500
426
+ },
427
+ hover: function () {
428
+ }, //personalize hover event with this callback function
429
+ hide: function () {
430
+ }, //personalize hide event with this callback function
431
+ click: function () {
432
+ }, //personalize click event with this callback function
433
+ render: function () {
434
+ }
435
+ };
436
+
437
+ /* Plugin constructor*/
438
+ function Plugin(element, options) {
439
+ this.element = element;
440
+ this.options = $.extend(true, {}, defaults, options);
441
+ this.options.share = options.share; //simple solution to allow order of buttons
442
+ this._defaults = defaults;
443
+ this._name = pluginName;
444
+ this.platforms = {};
445
+ this.init();
446
+ }
447
+
448
+ /* Initialization method
449
+ ================================================== */
450
+ Plugin.prototype.init = function () {
451
+ var self = this;
452
+ // Load enabled platforms
453
+ $.each(self.options.share, function (name, val) {
454
+ if (val === true) {
455
+ self.platforms[name] = SharrrePlatform.get(name, self.options.buttons[name]);
456
+ }
457
+ });
458
+
459
+ $(this.element).addClass(this.options.className); //add class
460
+
461
+ //HTML5 Custom data
462
+ if (typeof $(this.element).data('title') !== 'undefined') {
463
+ this.options.title = $(this.element).attr('data-title');
464
+ }
465
+ if (typeof $(this.element).data('url') !== 'undefined') {
466
+ this.options.url = $(this.element).data('url');
467
+ }
468
+ if (typeof $(this.element).data('text') !== 'undefined') {
469
+ this.options.text = $(this.element).data('text');
470
+ }
471
+
472
+ //how many social website have been selected
473
+ $.each(this.options.share, function (name, val) {
474
+ if (val === true) {
475
+ self.options.shareTotal++;
476
+ }
477
+ });
478
+
479
+ if (self.options.enableCounter === true) { //if for some reason you don't need counter
480
+ //get count of social share that have been selected
481
+ $.each(this.options.share, function (name, val) {
482
+ if (val === true) {
483
+ //self.getSocialJson(name);
484
+ try {
485
+ self.getSocialJson(name);
486
+ } catch (e) {
487
+ }
488
+ }
489
+ });
490
+ } else if (self.options.template !== '') {
491
+ self.renderer();
492
+ self.options.count[name] = 0;
493
+ self.rendererPerso();
494
+ }
495
+
496
+ if (self.options.template !== '') { //for personalized button (with template)
497
+ this.options.render(this, this.options);
498
+ }
499
+ else { // if you want to use official button like example 3 or 5
500
+ this.loadButtons();
501
+ }
502
+
503
+ //add hover event
504
+ $(this.element).on('mouseenter', function () {
505
+ //load social button if enable and 1 time
506
+ if ($(this).find('.buttons').length === 0 && self.options.enableHover === true) {
507
+ self.loadButtons();
508
+ }
509
+ self.options.hover(self, self.options);
510
+ }).on('mouseleave', function () {
511
+ self.options.hide(self, self.options);
512
+ });
513
+
514
+ //click event
515
+ $(this.element).click(function (e) {
516
+ e.preventDefault();
517
+ self.options.click(self, self.options);
518
+ return false;
519
+ });
520
+ };
521
+
522
+ /* loadButtons methode
523
+ ================================================== */
524
+ Plugin.prototype.loadButtons = function () {
525
+ var self = this;
526
+ $(this.element).append('<div class="buttons"></div>');
527
+ $.each(self.options.share, function (name, val) {
528
+
529
+ if (val === true) {
530
+ self.platforms[name].load(self);
531
+ if (self.options.enableTracking === true) { //add tracking
532
+ self.platforms[name].tracking();
533
+ }
534
+ }
535
+ });
536
+ };
537
+
538
+ /* getSocialJson methode
539
+ ================================================== */
540
+ Plugin.prototype.getSocialJson = function (name) {
541
+ var self = this,
542
+ count = 0,
543
+ settings = self.platforms[name].settings,
544
+ buttonUrl = self.platforms[name].url(this.options.urlCurl),
545
+ replaceUrl = encodeURIComponent(this.options.url);
546
+ if (settings.url.length) {
547
+ buttonUrl = settings.url;
548
+ }
549
+ if (settings.urlCount === true && buttonUrl !== '') {
550
+ replaceUrl = buttonUrl;
551
+ }
552
+ if (settings.count === false) {
553
+ buttonUrl = '';
554
+ }
555
+ url = buttonUrl.replace('{url}', replaceUrl);
556
+ if (url !== '') { //urlCurl = '' if you don't want to used PHP script but used social button
557
+ $.getJSON(url, function (json) {
558
+ if (typeof json.count !== "undefined") { //GooglePlus, Stumbleupon, Twitter, Pinterest and Digg
559
+ var temp = json.count + '';
560
+ temp = temp.replace('\u00c2\u00a0', ''); //remove google plus special chars
561
+ count += parseInt(temp, 10);
562
+ }
563
+ //get the FB total count (shares, likes and more)
564
+ else if (json.data && json.data.length > 0 && typeof json.data[0].total_count !== "undefined") { //Facebook total count
565
+ count += parseInt(json.data[0].total_count, 10);
566
+ }
567
+ else if (typeof json[0] !== "undefined") { //Delicious
568
+ count += parseInt(json[0].total_posts, 10);
569
+ }
570
+ else if (typeof json[0] !== "undefined") { //Stumbleupon
571
+ }
572
+ self.options.count[name] = count;
573
+ self.options.total += count;
574
+ self.renderer();
575
+ self.rendererPerso();
576
+ })
577
+ .error(function () {
578
+ self.options.count[name] = 0;
579
+ self.rendererPerso();
580
+ });
581
+ }
582
+ else {
583
+ self.renderer();
584
+ self.options.count[name] = 0;
585
+ self.rendererPerso();
586
+ }
587
+ };
588
+
589
+ /* launch render methode
590
+ ================================================== */
591
+ Plugin.prototype.rendererPerso = function () {
592
+ //check if this is the last social website to launch render
593
+ var shareCount = 0;
594
+ for ( var e in this.options.count) {
595
+ shareCount++;
596
+ }
597
+ if (shareCount === this.options.shareTotal) {
598
+ this.options.render(this, this.options);
599
+ }
600
+ };
601
+
602
+ /* render methode
603
+ ================================================== */
604
+ Plugin.prototype.renderer = function () {
605
+ var total = this.options.total,
606
+ template = this.options.template;
607
+ if (this.options.shorterTotal === true) { //format number like 1.2k or 5M
608
+ total = this.shorterTotal(total);
609
+ }
610
+
611
+ if (template !== '') { //if there is a template
612
+ template = template.replace('{total}', total);
613
+ $(this.element).html(template);
614
+ }
615
+ else { //template by defaults
616
+ $(this.element).html(
617
+ '<div class="box"><a class="count" href="' + this.options.defaultUrl + '">' + total + '</a>' +
618
+ (this.options.title !== '' ? '<a class="share" href="' + this.options.defaultUrl + '">' + this.options.title + '</a>' : '') +
619
+ '</div>'
620
+ );
621
+ }
622
+ };
623
+
624
+ /* format total numbers like 1.2k or 5M
625
+ ================================================== */
626
+ Plugin.prototype.shorterTotal = function (num) {
627
+ if (num >= 1e6) {
628
+ num = (num / 1e6).toFixed(2) + "M";
629
+ } else if (num >= 1e3) {
630
+ num = (num / 1e3).toFixed(1) + "k";
631
+ }
632
+ return num;
633
+ };
634
+
635
+ /* Methode for open popup
636
+ ================================================== */
637
+ Plugin.prototype.openPopup = function (site) {
638
+ this.platforms[site].popup(this.options); //open
639
+ if (this.options.enableTracking === true && 'undefined' !== typeof(_gaq) ) { //tracking!
640
+ infos = this.platforms[site].trackingAction;
641
+ _gaq.push(['_trackSocial', infos.site, infos.action]);
642
+ }
643
+ };
644
+
645
+ /* Methode for add +1 to a counter
646
+ ================================================== */
647
+ Plugin.prototype.simulateClick = function () {
648
+ var html = $(this.element).html();
649
+ $(this.element).html(html.replace(this.options.total, this.options.total + 1));
650
+ };
651
+
652
+ /* Methode for add +1 to a counter
653
+ ================================================== */
654
+ Plugin.prototype.update = function (url, text) {
655
+ if (url !== '') {
656
+ this.options.url = url;
657
+ }
658
+ if (text !== '') {
659
+ this.options.text = text;
660
+ }
661
+ };
662
+
663
+ /* A really lightweight plugin wrapper around the constructor, preventing against multiple instantiations
664
+ ================================================== */
665
+ $.fn[pluginName] = function (options) {
666
+ var args = arguments;
667
+ if (options === undefined || typeof options === 'object') {
668
+ return this.each(function () {
669
+ if (!$(this).data('plugin_' + pluginName)) {
670
+ $(this).data('plugin_' + pluginName, new Plugin(this, options));
671
+ }
672
+ });
673
+ } else if (typeof options === 'string' && options[0] !== '_' && options !== 'init') {
674
+ return this.each(function () {
675
+ var instance = $(this).data('plugin_' + pluginName);
676
+ if (instance instanceof Plugin && typeof instance[options] === 'function') {
677
+ instance[options].apply(instance, Array.prototype.slice.call(args, 1));
678
+ }
679
+ });
680
+ }
681
+ };
682
+ })(window.jQuery || window.Zepto, window, document);
assets/front/js/jQuerySharrre.min.js ADDED
@@ -0,0 +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);
assets/front/js/sharrre.php ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ header('content-type: application/json');
3
+ //Sharrre by Julien Hany
4
+ $json = array('url' => '', 'count' => 0);
5
+ $_pre_url = isset($_GET['url']) ? $_GET['url'] : '';
6
+ $_pre_type = isset($_GET['type']) ? $_GET['type'] : '';
7
+ $json['url'] = $_pre_url;
8
+ $url = urlencode($_pre_url);
9
+ $type = urlencode($_pre_type);
10
+ $proxy = null;
11
+ $proxyAuth = array();
12
+ if (filter_var($_pre_url, FILTER_VALIDATE_URL)) {
13
+ if ($type == 'googlePlus') { //source http://www.helmutgranda.com/2011/11/01/get-a-url-google-count-via-php/
14
+ $contents = parse('https://plusone.google.com/u/0/_/+1/fastbutton?url=' . $url . '&count=true');
15
+
16
+ preg_match('/window\.__SSR = {c: ([\d]+)/', $contents, $matches);
17
+
18
+ if (isset($matches[0])) {
19
+ $json['count'] = (int)str_replace('window.__SSR = {c: ', '', $matches[0]);
20
+ }
21
+ } else if ($type == 'stumbleupon') {
22
+ $content = parse("http://www.stumbleupon.com/services/1.01/badge.getinfo?url=$url");
23
+
24
+ $result = json_decode($content);
25
+ if (isset($result->result->views)) {
26
+ $json['count'] = $result->result->views;
27
+ }
28
+
29
+ }
30
+ }
31
+ echo str_replace('\\/', '/', json_encode($json));
32
+
33
+ function parse($encUrl)
34
+ {
35
+ global $proxy;
36
+ global $proxyAuth;
37
+ $options = array(
38
+ CURLOPT_RETURNTRANSFER => true, // return web page
39
+ CURLOPT_HEADER => false, // don't return headers
40
+ CURLOPT_FOLLOWLOCATION => true, // follow redirects
41
+ CURLOPT_ENCODING => "", // handle all encodings
42
+ CURLOPT_USERAGENT => 'sharrre', // who am i
43
+ CURLOPT_AUTOREFERER => true, // set referer on redirect
44
+ CURLOPT_CONNECTTIMEOUT => 5, // timeout on connect
45
+ CURLOPT_TIMEOUT => 10, // timeout on response
46
+ CURLOPT_MAXREDIRS => 3, // stop after 10 redirects
47
+ CURLOPT_SSL_VERIFYHOST => 0,
48
+ CURLOPT_SSL_VERIFYPEER => false,
49
+ );
50
+ $ch = curl_init();
51
+ if ($proxy != null) {
52
+ $options[CURLOPT_PROXY] = $proxy;
53
+ if (isset($proxyAuth['user']) && isset($proxyAuth['pwd'])) {
54
+ $options[CURLOPT_PROXYUSERPWD] = $proxyAuth['user'] . ':' . $proxyAuth['pwd'];
55
+ }
56
+ }
57
+ $options[CURLOPT_URL] = $encUrl;
58
+ curl_setopt_array($ch, $options);
59
+
60
+ $content = curl_exec($ch);
61
+ $err = curl_errno($ch);
62
+ $errmsg = curl_error($ch);
63
+
64
+ curl_close($ch);
65
+
66
+ if ($errmsg != '' || $err != '') {
67
+ /*print_r($errmsg);
68
+ print_r($errmsg);*/
69
+ }
70
+ return $content;
71
+ }
hueman-addons.php ADDED
@@ -0,0 +1,332 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
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
10
+ */
11
+
12
+
13
+ /**
14
+ * Fires the plugin
15
+ * @author Nicolas GUILLAUME
16
+ * @since 1.0
17
+ */
18
+ if ( ! class_exists( 'HU_addons_plugin' ) ) :
19
+ class HU_addons_plugin {
20
+ //Access any method or var of the class with classname::$instance -> var or method():
21
+ static $instance;
22
+
23
+ public static $theme;
24
+ public static $theme_name;
25
+ public $is_customizing;
26
+
27
+
28
+ function __construct() {
29
+ self::$instance =& $this;
30
+
31
+ //checks if is customizing : two context, admin and front (preview frame)
32
+ $this -> is_customizing = $this -> tc_is_customizing();
33
+
34
+ self::$theme = $this -> tc_get_theme();
35
+ self::$theme_name = $this -> tc_get_theme_name();
36
+
37
+ //stop execution if not Hueman
38
+ if ( false === strpos( self::$theme_name, 'hueman' ) ) {
39
+ add_action( 'admin_notices', array( $this , 'hu_admin_notice' ) );
40
+ return;
41
+ }
42
+
43
+ //TEXT DOMAIN
44
+ //adds plugin text domain
45
+ add_action( 'plugins_loaded', array( $this , 'hu_plugin_lang' ) );
46
+
47
+ //SHORTCODES
48
+ // Load custom shortcodes
49
+ // @fromfull => should me moved in a plugin
50
+ add_action( 'wp', array($this, 'hu_shortcodes_actions') );
51
+
52
+
53
+
54
+ //SHARRRE
55
+ add_action( 'wp_enqueue_scripts', array( $this, 'hu_addons_scripts' ) );
56
+ add_filter( 'hu_social_links_sec', array( $this, 'hu_register_sharrre_settings'));
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
+
64
+
65
+
66
+ //hook : hu_social_links_sec
67
+ function hu_register_sharrre_settings( $settings ) {
68
+ $sharrre_settings = array(
69
+ 'sharrre' => array(
70
+ 'default' => 1,
71
+ 'control' => 'HU_controls',
72
+ 'label' => __('Display social sharing buttons in your single posts', 'hueman-addons'),
73
+ 'title' => __('Social Sharring Bar Setttings', 'hueman-addons'),
74
+ 'notice' => __('Display social sharing buttons in each single articles.', 'hueman-addons'),
75
+ 'section' => 'social_links_sec',
76
+ 'type' => 'checkbox',
77
+ 'priority' => 40
78
+ ),
79
+ 'sharrre-scrollable' => array(
80
+ 'default' => 1,
81
+ 'control' => 'HU_controls',
82
+ 'label' => __('Make the Share Bar "sticky"', 'hueman-addons'),
83
+ 'notice' => __('Make the social share bar stick to the browser window when scrolling down a post.', 'hueman-addons'),
84
+ 'section' => 'social_links_sec',
85
+ 'type' => 'checkbox',
86
+ 'priority' => 50
87
+ ),
88
+ 'sharrre-twitter-on' => array(
89
+ 'default' => 1,
90
+ 'control' => 'HU_controls',
91
+ 'label' => __('Enable Twitter Button', 'hueman-addons'),
92
+ 'section' => 'social_links_sec',
93
+ 'type' => 'checkbox',
94
+ 'priority' => 60
95
+ ),
96
+ 'twitter-username' => array(
97
+ 'default' => '',
98
+ 'control' => 'HU_controls',
99
+ 'label' => __('Twitter Username (without "@")', 'hueman-addons'),
100
+ 'notice' => __('Simply enter your username without the "@" prefix. Your username will be added to share-tweets of your posts (optional).', 'hueman-addons'),
101
+ 'section' => 'social_links_sec',
102
+ 'type' => 'text',
103
+ 'transport' => 'postMessage',
104
+ 'priority' => 70
105
+ ),
106
+ 'sharrre-facebook-on' => array(
107
+ 'default' => 1,
108
+ 'control' => 'HU_controls',
109
+ 'label' => __('Enable Facebook Button', 'hueman-addons'),
110
+ 'section' => 'social_links_sec',
111
+ 'type' => 'checkbox',
112
+ 'priority' => 80
113
+ ),
114
+ 'sharrre-google-on' => array(
115
+ 'default' => 1,
116
+ 'control' => 'HU_controls',
117
+ 'label' => __('Enable Google Plus Button', 'hueman-addons'),
118
+ 'section' => 'social_links_sec',
119
+ 'type' => 'checkbox',
120
+ 'priority' => 90
121
+ ),
122
+ 'sharrre-pinterest-on' => array(
123
+ 'default' => 0,
124
+ 'control' => 'HU_controls',
125
+ 'label' => __('Enable Pinterest Button', 'hueman-addons'),
126
+ 'section' => 'social_links_sec',
127
+ 'type' => 'checkbox',
128
+ 'priority' => 100
129
+ ),
130
+ 'sharrre-linkedin-on' => array(
131
+ 'default' => 0,
132
+ 'control' => 'HU_controls',
133
+ 'label' => __('Enable LinkedIn Button', 'hueman-addons'),
134
+ 'section' => 'social_links_sec',
135
+ 'type' => 'checkbox',
136
+ 'priority' => 100
137
+ )
138
+ );
139
+
140
+ return array_merge( $sharrre_settings, $settings );
141
+ }
142
+
143
+ function hu_plugin_lang() {
144
+ load_plugin_textdomain( 'hueman-addons' , false, basename( dirname( __FILE__ ) ) . '/lang' );
145
+ }
146
+
147
+ /**************************************************************
148
+ ** SHORTCODES
149
+ **************************************************************/
150
+ function hu_shortcodes_actions() {
151
+ load_template( dirname( __FILE__ ) . '/inc/shortcodes.php' );
152
+ }
153
+
154
+
155
+
156
+ /**************************************************************
157
+ ** SHARRRE
158
+ **************************************************************/
159
+ function hu_sharrre_front_actions() {
160
+ if ( ! is_single() )
161
+ return;
162
+ //alter the single entry wrapper class
163
+ add_filter( 'hu_single_entry_class', array($this, 'hu_maybe_add_sharrre_class'));
164
+
165
+ //hook the sharrre content to the single post template
166
+ add_action( 'hu_after_single_entry_inner', array($this, 'hu_maybe_print_sharrre_template') );
167
+ }
168
+
169
+
170
+ //@param $classes = array of classes
171
+ //hook : hu_single_entry_class
172
+ function hu_maybe_add_sharrre_class( $classes ) {
173
+ if ( ! hu_are_share_buttons_enabled() )
174
+ return $classes;
175
+ $classes[] = 'share';
176
+ return $classes;
177
+ }
178
+
179
+ //hook : hu_after_single_entry_inner
180
+ function hu_maybe_print_sharrre_template() {
181
+ if ( ! hu_are_share_buttons_enabled() )
182
+ return;
183
+
184
+ load_template( dirname( __FILE__ ) . '/inc/sharrre-template.php' );
185
+ }
186
+
187
+
188
+
189
+
190
+
191
+
192
+ //hook : wp_enqueue_scripts
193
+ function hu_addons_scripts() {
194
+ if ( is_singular() ) {
195
+ wp_enqueue_script(
196
+ 'sharrre',
197
+ sprintf( '%1$s/assets/front/js/jQuerySharrre%2$s', plugins_url( basename( __DIR__ ) ), (defined('TC_DEV') && true === TC_DEV) ? '.js' : '.min.js' ),
198
+ array( 'jquery' ),
199
+ '',
200
+ true
201
+ );
202
+ }
203
+ }
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',
216
+ 'sharrre-twitter-on',
217
+ 'twitter-username',
218
+ 'sharrre-facebook-on',
219
+ 'sharrre-google-on',
220
+ 'sharrre-pinterest-on',
221
+ 'sharrre-linkedin-on'
222
+ ],
223
+ callback : function (to) {
224
+ return '0' !== to && false !== to && 'off' !== to;
225
+ }
226
+ },
227
+ 'sharrre-twitter-on' : {
228
+ controls: [
229
+ 'twitter-username'
230
+ ],
231
+ callback : function (to) {
232
+ return '0' !== to && false !== to && 'off' !== to;
233
+ }
234
+ }
235
+ });
236
+ }) ( wp.customize, jQuery, _);
237
+ </script>
238
+ <?php
239
+ }
240
+
241
+
242
+
243
+ /**
244
+ * @uses wp_get_theme() the optional stylesheet parameter value takes into account the possible preview of a theme different than the one activated
245
+ *
246
+ * @return the (parent) theme object
247
+ */
248
+ function tc_get_theme(){
249
+ // Return the already set theme
250
+ if ( self::$theme )
251
+ return self::$theme;
252
+ // $_REQUEST['theme'] is set both in live preview and when we're customizing a non active theme
253
+ $stylesheet = $this -> is_customizing && isset($_REQUEST['theme']) ? $_REQUEST['theme'] : '';
254
+
255
+ //gets the theme (or parent if child)
256
+ $tc_theme = wp_get_theme($stylesheet);
257
+
258
+ return $tc_theme -> parent() ? $tc_theme -> parent() : $tc_theme;
259
+
260
+ }
261
+
262
+ /**
263
+ *
264
+ * @return the theme name
265
+ *
266
+ */
267
+ function tc_get_theme_name(){
268
+ $tc_theme = $this -> tc_get_theme();
269
+
270
+ return sanitize_file_name( strtolower( $tc_theme -> Name ) );
271
+ }
272
+
273
+
274
+
275
+ function hu_admin_notice() {
276
+ $what = __( 'works only with the Hueman theme', 'hueman-addons' );
277
+
278
+ ?>
279
+ <div class="error">
280
+ <p>
281
+ <?php
282
+ printf( __( 'The <strong>%1$s</strong> plugin %2$s.' ,'hueman-addons' ),
283
+ 'Hueman Addons',
284
+ $what
285
+ );
286
+ ?>
287
+ </p>
288
+ </div>
289
+ <?php
290
+ }
291
+
292
+
293
+ /**
294
+ * Returns a boolean on the customizer's state
295
+ * @since 3.2.9
296
+ */
297
+ function tc_is_customizing() {
298
+ //checks if is customizing : two contexts, admin and front (preview frame)
299
+ global $pagenow;
300
+ $bool = false;
301
+ if ( is_admin() && isset( $pagenow ) && 'customize.php' == $pagenow )
302
+ $bool = true;
303
+ if ( ! is_admin() && isset($_REQUEST['wp_customize']) )
304
+ $bool = true;
305
+ if ( $this -> tc_doing_customizer_ajax() )
306
+ $bool = true;
307
+ return $bool;
308
+ }
309
+
310
+ /**
311
+ * Returns a boolean
312
+ * @since 3.3.2
313
+ */
314
+ function tc_doing_customizer_ajax() {
315
+ return isset( $_POST['customized'] ) && ( defined( 'DOING_AJAX' ) && DOING_AJAX );
316
+ }
317
+
318
+ } //end of class
319
+
320
+ //Creates a new instance of front and admin
321
+ new HU_addons_plugin;
322
+
323
+ endif;
324
+
325
+ //@return bool
326
+ function hu_are_share_buttons_enabled() {
327
+ if ( ! hu_is_checked('sharrre') )
328
+ return;
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
+ }
inc/sharrre-template.php ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="sharrre-container">
2
+ <span><?php _e('Share','hueman-addons'); ?></span>
3
+ <?php if ( hu_is_checked('sharrre-twitter-on') ) : ?>
4
+ <div id="twitter" data-url="<?php echo the_permalink(); ?>" data-text="<?php echo the_title(); ?>" data-title="<?php _e('Tweet', 'hueman-addons'); ?>"><a class="box" href="#"><div class="count" href="#"><i class="fa fa-plus"></i></div><div class="share"><i class="fa fa-twitter"></i></div></a></div>
5
+ <?php endif; ?>
6
+ <?php if ( hu_is_checked('sharrre-facebook-on') ) : ?>
7
+ <div id="facebook" data-url="<?php echo the_permalink(); ?>" data-text="<?php echo the_title(); ?>" data-title="<?php _e('Like', 'hueman-addons'); ?>"></div>
8
+ <?php endif; ?>
9
+ <?php if ( hu_is_checked('sharrre-google-on') ) : ?>
10
+ <div id="googleplus" data-url="<?php echo the_permalink(); ?>" data-text="<?php echo the_title(); ?>" data-title="<?php _e('+1', 'hueman-addons'); ?>"></div>
11
+ <?php endif; ?>
12
+ <?php if ( hu_is_checked('sharrre-pinterest-on') ) : ?>
13
+ <div id="pinterest" data-url="<?php echo the_permalink(); ?>" data-text="<?php echo the_title(); ?>" data-title="<?php _e('Pin It', 'hueman-addons'); ?>"></div>
14
+ <?php endif; ?>
15
+ <?php if ( hu_is_checked('sharrre-linkedin-on') ) : ?>
16
+ <div id="linkedin" data-url="<?php echo the_permalink(); ?>" data-text="<?php echo the_title(); ?>" data-title="<?php _e('Publish on Linked In', 'hueman-addons'); ?>"></div>
17
+ <?php endif; ?>
18
+ </div><!--/.sharrre-container-->
19
+
20
+ <script type="text/javascript">
21
+ // Sharrre
22
+ jQuery(function($){
23
+ <?php if ( hu_is_checked('sharrre-twitter-on') ) : ?>
24
+ $('#twitter').sharrre({
25
+ share: {
26
+ twitter: true
27
+ },
28
+ template: '<a class="box" href="#"><div class="count" href="#">{total}</div><div class="share"><i class="fa fa-twitter"></i></div></a>',
29
+ enableHover: false,
30
+ enableTracking: true,
31
+ buttons: { twitter: {via: '<?php echo esc_attr( hu_get_option("twitter-username") ); ?>'}},
32
+ click: function(api, options){
33
+ api.simulateClick();
34
+ api.openPopup('twitter');
35
+ }
36
+ });
37
+ <?php endif; ?>
38
+ <?php if ( hu_is_checked('sharrre-facebook-on') ) : ?>
39
+ $('#facebook').sharrre({
40
+ share: {
41
+ facebook: true
42
+ },
43
+ template: '<a class="box" href="#"><div class="count" href="#">{total}</div><div class="share"><i class="fa fa-facebook-square"></i></div></a>',
44
+ enableHover: false,
45
+ enableTracking: true,
46
+ buttons:{layout: 'box_count'},
47
+ click: function(api, options){
48
+ api.simulateClick();
49
+ api.openPopup('facebook');
50
+ }
51
+ });
52
+ <?php endif; ?>
53
+ <?php if ( hu_is_checked('sharrre-google-on') ) : ?>
54
+ $('#googleplus').sharrre({
55
+ share: {
56
+ googlePlus: true
57
+ },
58
+ template: '<a class="box" href="#"><div class="count" href="#">{total}</div><div class="share"><i class="fa fa-google-plus-square"></i></div></a>',
59
+ enableHover: false,
60
+ enableTracking: true,
61
+ buttons:{size: 'tall'},
62
+ urlCurl: '<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) ) . "/assets/front/js/sharrre.php"; ?>',
63
+ click: function(api, options){
64
+ api.simulateClick();
65
+ api.openPopup('googlePlus');
66
+ }
67
+ });
68
+ <?php endif; ?>
69
+ <?php if ( hu_is_checked('sharrre-pinterest-on') ) : ?>
70
+ $('#pinterest').sharrre({
71
+ share: {
72
+ pinterest: true
73
+ },
74
+ template: '<a class="box" href="#" rel="nofollow"><div class="count" href="#">{total}</div><div class="share"><i class="fa fa-pinterest"></i></div></a>',
75
+ enableHover: false,
76
+ enableTracking: true,
77
+ buttons: {
78
+ pinterest: {
79
+ description: '<?php echo the_title(); ?>'<?php if( has_post_thumbnail() ){ ?>,media: '<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>'<?php } ?>
80
+ }
81
+ },
82
+ click: function(api, options){
83
+ api.simulateClick();
84
+ api.openPopup('pinterest');
85
+ }
86
+ });
87
+ <?php endif; ?>
88
+ <?php if ( hu_is_checked('sharrre-linkedin-on') ) : ?>
89
+ $('#linkedin').sharrre({
90
+ share: {
91
+ linkedin: true
92
+ },
93
+ template: '<a class="box" href="#" rel="nofollow"><div class="count" href="#">{total}</div><div class="share"><i class="fa fa-linkedin"></i></div></a>',
94
+ enableHover: false,
95
+ enableTracking: true,
96
+ buttons: {
97
+ linkedin: {
98
+ description: '<?php echo the_title(); ?>'<?php if( has_post_thumbnail() ){ ?>,media: '<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>'<?php } ?>
99
+ }
100
+ },
101
+ click: function(api, options){
102
+ api.simulateClick();
103
+ api.openPopup('linkedin');
104
+ }
105
+ });
106
+ <?php endif; ?>
107
+ <?php if ( hu_is_checked( 'sharrre-scrollable' ) ) : ?>
108
+
109
+ // Scrollable sharrre bar, contributed by Erik Frye. Awesome!
110
+ var $_shareContainer = $(".sharrre-container"),
111
+ $_header = $('#header'),
112
+ $_postEntry = $('.entry'),
113
+ $window = $(window),
114
+ startSharePosition = $_shareContainer.offset(),//object
115
+ contentBottom = $_postEntry.offset().top + $_postEntry.outerHeight(),
116
+ topOfTemplate = $_header.offset().top,
117
+ topSpacing = _setTopSpacing();
118
+
119
+ //triggered on scroll
120
+ shareScroll = function(){
121
+ if( ! ( $window.width() > 480) )
122
+ return;
123
+
124
+ var scrollTop = $window.scrollTop() + topOfTemplate,
125
+ stopLocation = contentBottom - ($_shareContainer.outerHeight() + topSpacing);
126
+
127
+ if(scrollTop > stopLocation){
128
+ $_shareContainer.offset({top: contentBottom - $_shareContainer.outerHeight(),left: startSharePosition.left});
129
+ }
130
+ else if(scrollTop >= $_postEntry.offset().top - topSpacing){
131
+ $_shareContainer.offset({top: scrollTop + topSpacing, left: startSharePosition.left});
132
+ }else if(scrollTop < startSharePosition.top+(topSpacing-1)){
133
+ $_shareContainer.offset({top: $_postEntry.offset().top,left:startSharePosition.left});
134
+ }
135
+ },
136
+
137
+ //triggered on resize
138
+ shareMove = function() {
139
+ startSharePosition = $_shareContainer.offset();
140
+ contentBottom = $_postEntry.offset().top + $_postEntry.outerHeight();
141
+ topOfTemplate = $_header.offset().top;
142
+ _setTopSpacing();
143
+ };
144
+
145
+ /* As new images load the page content body gets longer. The bottom of the content area needs to be adjusted in case images are still loading. */
146
+ setTimeout(function() {
147
+ contentBottom = $_postEntry.offset().top + $_postEntry.outerHeight();
148
+ }, 2000);
149
+
150
+ //setup event listeners
151
+ if (window.addEventListener) {
152
+ window.addEventListener('scroll', shareScroll, false);
153
+ window.addEventListener('resize', shareMove, false);
154
+ } else if (window.attachEvent) {
155
+ window.attachEvent('onscroll', shareScroll);
156
+ window.attachEvent('onresize', shareMove);
157
+ }
158
+
159
+ function _setTopSpacing(){
160
+ var distanceFromTop = 20;
161
+
162
+ if($window.width() > 1024)
163
+ topSpacing = distanceFromTop + $('.nav-wrap').outerHeight();
164
+ else
165
+ topSpacing = distanceFromTop;
166
+ return topSpacing;
167
+ }
168
+ <?php endif; ?>
169
+
170
+ });
171
+ </script>
inc/shortcodes.php ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ //@fromfull => should be moved into a plugin
3
+ /* ------------------------------------------------------------------------- *
4
+ * Basic Shortcodes
5
+ /* ------------------------------------------------------------------------- */
6
+
7
+ /* Columns / Grid
8
+ /* ------------------------------------ */
9
+ function hu_column_shortcode($atts,$content=NULL) {
10
+ extract( shortcode_atts( array(
11
+ 'size' => 'one-third',
12
+ 'last' => false
13
+ ), $atts) );
14
+
15
+ $lastclass=$last?' last':'';
16
+ $output='<div class="grid '.strip_tags($size).$lastclass.'">'.do_shortcode($content).'</div>';
17
+ if($last)
18
+ $output.='<div class="clear"></div>';
19
+ return $output;
20
+ }
21
+ add_shortcode('column','hu_column_shortcode');
22
+
23
+ /* Hr
24
+ /* ------------------------------------ */
25
+ function hu_hr_shortcode($atts,$content=NULL) {
26
+ $output = '<div class="hr"></div>';
27
+ return $output;
28
+ }
29
+ add_shortcode('hr','hu_hr_shortcode');
30
+
31
+ /* Highlight
32
+ /* ------------------------------------ */
33
+ function hu_highlight_shortcode($atts,$content=NULL) {
34
+ $output = '<span class="highlight">'.strip_tags($content).'</span>';
35
+ return $output;
36
+ }
37
+ add_shortcode('highlight','hu_highlight_shortcode');
38
+
39
+ /* Dropcap
40
+ /* ------------------------------------ */
41
+ function hu_dropcap_shortcode($atts,$content=NULL) {
42
+ $output = '<span class="dropcap">'.strip_tags($content).'</span>';
43
+ return $output;
44
+ }
45
+ add_shortcode('dropcap','hu_dropcap_shortcode');
46
+
47
+ /* Pullquote Left
48
+ /* ------------------------------------ */
49
+ function hu_pullquote_left_shortcode($atts,$content=NULL) {
50
+ $output = '<span class="pullquote-left">'.strip_tags($content).'</span>';
51
+ return $output;
52
+ }
53
+ add_shortcode('pullquote-left','hu_pullquote_left_shortcode');
54
+
55
+ /* Pullquote Right
56
+ /* ------------------------------------ */
57
+ function hu_pullquote_right_shortcode($atts,$content=NULL) {
58
+ $output = '<span class="pullquote-right">'.strip_tags($content).'</span>';
59
+ return $output;
60
+ }
61
+ add_shortcode('pullquote-right','hu_pullquote_right_shortcode');
lang/en_US.mo ADDED
Binary file
lang/en_US.po ADDED
@@ -0,0 +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 ""
license.txt ADDED
@@ -0,0 +1,343 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Hueman Addons WordPress plugin, copyright (c) 2016 Nicolas Guillaume (nikeo)
2
+ Licensed under the GNU GPL License below
3
+
4
+
5
+ GNU GENERAL PUBLIC LICENSE
6
+ Version 2, June 1991
7
+
8
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
9
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
10
+ Everyone is permitted to copy and distribute verbatim copies
11
+ of this license document, but changing it is not allowed.
12
+
13
+ Preamble
14
+
15
+ The licenses for most software are designed to take away your
16
+ freedom to share and change it. By contrast, the GNU General Public
17
+ License is intended to guarantee your freedom to share and change free
18
+ software--to make sure the software is free for all its users. This
19
+ General Public License applies to most of the Free Software
20
+ Foundation's software and to any other program whose authors commit to
21
+ using it. (Some other Free Software Foundation software is covered by
22
+ the GNU Lesser General Public License instead.) You can apply it to
23
+ your programs, too.
24
+
25
+ When we speak of free software, we are referring to freedom, not
26
+ price. Our General Public Licenses are designed to make sure that you
27
+ have the freedom to distribute copies of free software (and charge for
28
+ this service if you wish), that you receive source code or can get it
29
+ if you want it, that you can change the software or use pieces of it
30
+ in new free programs; and that you know you can do these things.
31
+
32
+ To protect your rights, we need to make restrictions that forbid
33
+ anyone to deny you these rights or to ask you to surrender the rights.
34
+ These restrictions translate to certain responsibilities for you if you
35
+ distribute copies of the software, or if you modify it.
36
+
37
+ For example, if you distribute copies of such a program, whether
38
+ gratis or for a fee, you must give the recipients all the rights that
39
+ you have. You must make sure that they, too, receive or can get the
40
+ source code. And you must show them these terms so they know their
41
+ rights.
42
+
43
+ We protect your rights with two steps: (1) copyright the software, and
44
+ (2) offer you this license which gives you legal permission to copy,
45
+ distribute and/or modify the software.
46
+
47
+ Also, for each author's protection and ours, we want to make certain
48
+ that everyone understands that there is no warranty for this free
49
+ software. If the software is modified by someone else and passed on, we
50
+ want its recipients to know that what they have is not the original, so
51
+ that any problems introduced by others will not reflect on the original
52
+ authors' reputations.
53
+
54
+ Finally, any free program is threatened constantly by software
55
+ patents. We wish to avoid the danger that redistributors of a free
56
+ program will individually obtain patent licenses, in effect making the
57
+ program proprietary. To prevent this, we have made it clear that any
58
+ patent must be licensed for everyone's free use or not licensed at all.
59
+
60
+ The precise terms and conditions for copying, distribution and
61
+ modification follow.
62
+
63
+ GNU GENERAL PUBLIC LICENSE
64
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
65
+
66
+ 0. This License applies to any program or other work which contains
67
+ a notice placed by the copyright holder saying it may be distributed
68
+ under the terms of this General Public License. The "Program", below,
69
+ refers to any such program or work, and a "work based on the Program"
70
+ means either the Program or any derivative work under copyright law:
71
+ that is to say, a work containing the Program or a portion of it,
72
+ either verbatim or with modifications and/or translated into another
73
+ language. (Hereinafter, translation is included without limitation in
74
+ the term "modification".) Each licensee is addressed as "you".
75
+
76
+ Activities other than copying, distribution and modification are not
77
+ covered by this License; they are outside its scope. The act of
78
+ running the Program is not restricted, and the output from the Program
79
+ is covered only if its contents constitute a work based on the
80
+ Program (independent of having been made by running the Program).
81
+ Whether that is true depends on what the Program does.
82
+
83
+ 1. You may copy and distribute verbatim copies of the Program's
84
+ source code as you receive it, in any medium, provided that you
85
+ conspicuously and appropriately publish on each copy an appropriate
86
+ copyright notice and disclaimer of warranty; keep intact all the
87
+ notices that refer to this License and to the absence of any warranty;
88
+ and give any other recipients of the Program a copy of this License
89
+ along with the Program.
90
+
91
+ You may charge a fee for the physical act of transferring a copy, and
92
+ you may at your option offer warranty protection in exchange for a fee.
93
+
94
+ 2. You may modify your copy or copies of the Program or any portion
95
+ of it, thus forming a work based on the Program, and copy and
96
+ distribute such modifications or work under the terms of Section 1
97
+ above, provided that you also meet all of these conditions:
98
+
99
+ a) You must cause the modified files to carry prominent notices
100
+ stating that you changed the files and the date of any change.
101
+
102
+ b) You must cause any work that you distribute or publish, that in
103
+ whole or in part contains or is derived from the Program or any
104
+ part thereof, to be licensed as a whole at no charge to all third
105
+ parties under the terms of this License.
106
+
107
+ c) If the modified program normally reads commands interactively
108
+ when run, you must cause it, when started running for such
109
+ interactive use in the most ordinary way, to print or display an
110
+ announcement including an appropriate copyright notice and a
111
+ notice that there is no warranty (or else, saying that you provide
112
+ a warranty) and that users may redistribute the program under
113
+ these conditions, and telling the user how to view a copy of this
114
+ License. (Exception: if the Program itself is interactive but
115
+ does not normally print such an announcement, your work based on
116
+ the Program is not required to print an announcement.)
117
+
118
+ These requirements apply to the modified work as a whole. If
119
+ identifiable sections of that work are not derived from the Program,
120
+ and can be reasonably considered independent and separate works in
121
+ themselves, then this License, and its terms, do not apply to those
122
+ sections when you distribute them as separate works. But when you
123
+ distribute the same sections as part of a whole which is a work based
124
+ on the Program, the distribution of the whole must be on the terms of
125
+ this License, whose permissions for other licensees extend to the
126
+ entire whole, and thus to each and every part regardless of who wrote it.
127
+
128
+ Thus, it is not the intent of this section to claim rights or contest
129
+ your rights to work written entirely by you; rather, the intent is to
130
+ exercise the right to control the distribution of derivative or
131
+ collective works based on the Program.
132
+
133
+ In addition, mere aggregation of another work not based on the Program
134
+ with the Program (or with a work based on the Program) on a volume of
135
+ a storage or distribution medium does not bring the other work under
136
+ the scope of this License.
137
+
138
+ 3. You may copy and distribute the Program (or a work based on it,
139
+ under Section 2) in object code or executable form under the terms of
140
+ Sections 1 and 2 above provided that you also do one of the following:
141
+
142
+ a) Accompany it with the complete corresponding machine-readable
143
+ source code, which must be distributed under the terms of Sections
144
+ 1 and 2 above on a medium customarily used for software interchange; or,
145
+
146
+ b) Accompany it with a written offer, valid for at least three
147
+ years, to give any third party, for a charge no more than your
148
+ cost of physically performing source distribution, a complete
149
+ machine-readable copy of the corresponding source code, to be
150
+ distributed under the terms of Sections 1 and 2 above on a medium
151
+ customarily used for software interchange; or,
152
+
153
+ c) Accompany it with the information you received as to the offer
154
+ to distribute corresponding source code. (This alternative is
155
+ allowed only for noncommercial distribution and only if you
156
+ received the program in object code or executable form with such
157
+ an offer, in accord with Subsection b above.)
158
+
159
+ The source code for a work means the preferred form of the work for
160
+ making modifications to it. For an executable work, complete source
161
+ code means all the source code for all modules it contains, plus any
162
+ associated interface definition files, plus the scripts used to
163
+ control compilation and installation of the executable. However, as a
164
+ special exception, the source code distributed need not include
165
+ anything that is normally distributed (in either source or binary
166
+ form) with the major components (compiler, kernel, and so on) of the
167
+ operating system on which the executable runs, unless that component
168
+ itself accompanies the executable.
169
+
170
+ If distribution of executable or object code is made by offering
171
+ access to copy from a designated place, then offering equivalent
172
+ access to copy the source code from the same place counts as
173
+ distribution of the source code, even though third parties are not
174
+ compelled to copy the source along with the object code.
175
+
176
+ 4. You may not copy, modify, sublicense, or distribute the Program
177
+ except as expressly provided under this License. Any attempt
178
+ otherwise to copy, modify, sublicense or distribute the Program is
179
+ void, and will automatically terminate your rights under this License.
180
+ However, parties who have received copies, or rights, from you under
181
+ this License will not have their licenses terminated so long as such
182
+ parties remain in full compliance.
183
+
184
+ 5. You are not required to accept this License, since you have not
185
+ signed it. However, nothing else grants you permission to modify or
186
+ distribute the Program or its derivative works. These actions are
187
+ prohibited by law if you do not accept this License. Therefore, by
188
+ modifying or distributing the Program (or any work based on the
189
+ Program), you indicate your acceptance of this License to do so, and
190
+ all its terms and conditions for copying, distributing or modifying
191
+ the Program or works based on it.
192
+
193
+ 6. Each time you redistribute the Program (or any work based on the
194
+ Program), the recipient automatically receives a license from the
195
+ original licensor to copy, distribute or modify the Program subject to
196
+ these terms and conditions. You may not impose any further
197
+ restrictions on the recipients' exercise of the rights granted herein.
198
+ You are not responsible for enforcing compliance by third parties to
199
+ this License.
200
+
201
+ 7. If, as a consequence of a court judgment or allegation of patent
202
+ infringement or for any other reason (not limited to patent issues),
203
+ conditions are imposed on you (whether by court order, agreement or
204
+ otherwise) that contradict the conditions of this License, they do not
205
+ excuse you from the conditions of this License. If you cannot
206
+ distribute so as to satisfy simultaneously your obligations under this
207
+ License and any other pertinent obligations, then as a consequence you
208
+ may not distribute the Program at all. For example, if a patent
209
+ license would not permit royalty-free redistribution of the Program by
210
+ all those who receive copies directly or indirectly through you, then
211
+ the only way you could satisfy both it and this License would be to
212
+ refrain entirely from distribution of the Program.
213
+
214
+ If any portion of this section is held invalid or unenforceable under
215
+ any particular circumstance, the balance of the section is intended to
216
+ apply and the section as a whole is intended to apply in other
217
+ circumstances.
218
+
219
+ It is not the purpose of this section to induce you to infringe any
220
+ patents or other property right claims or to contest validity of any
221
+ such claims; this section has the sole purpose of protecting the
222
+ integrity of the free software distribution system, which is
223
+ implemented by public license practices. Many people have made
224
+ generous contributions to the wide range of software distributed
225
+ through that system in reliance on consistent application of that
226
+ system; it is up to the author/donor to decide if he or she is willing
227
+ to distribute software through any other system and a licensee cannot
228
+ impose that choice.
229
+
230
+ This section is intended to make thoroughly clear what is believed to
231
+ be a consequence of the rest of this License.
232
+
233
+ 8. If the distribution and/or use of the Program is restricted in
234
+ certain countries either by patents or by copyrighted interfaces, the
235
+ original copyright holder who places the Program under this License
236
+ may add an explicit geographical distribution limitation excluding
237
+ those countries, so that distribution is permitted only in or among
238
+ countries not thus excluded. In such case, this License incorporates
239
+ the limitation as if written in the body of this License.
240
+
241
+ 9. The Free Software Foundation may publish revised and/or new versions
242
+ of the General Public License from time to time. Such new versions will
243
+ be similar in spirit to the present version, but may differ in detail to
244
+ address new problems or concerns.
245
+
246
+ Each version is given a distinguishing version number. If the Program
247
+ specifies a version number of this License which applies to it and "any
248
+ later version", you have the option of following the terms and conditions
249
+ either of that version or of any later version published by the Free
250
+ Software Foundation. If the Program does not specify a version number of
251
+ this License, you may choose any version ever published by the Free Software
252
+ Foundation.
253
+
254
+ 10. If you wish to incorporate parts of the Program into other free
255
+ programs whose distribution conditions are different, write to the author
256
+ to ask for permission. For software which is copyrighted by the Free
257
+ Software Foundation, write to the Free Software Foundation; we sometimes
258
+ make exceptions for this. Our decision will be guided by the two goals
259
+ of preserving the free status of all derivatives of our free software and
260
+ of promoting the sharing and reuse of software generally.
261
+
262
+ NO WARRANTY
263
+
264
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
265
+ FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
266
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
267
+ PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
268
+ OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
269
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
270
+ TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
271
+ PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
272
+ REPAIR OR CORRECTION.
273
+
274
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
275
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
276
+ REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
277
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
278
+ OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
279
+ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
280
+ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
281
+ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
282
+ POSSIBILITY OF SUCH DAMAGES.
283
+
284
+ END OF TERMS AND CONDITIONS
285
+
286
+ How to Apply These Terms to Your New Programs
287
+
288
+ If you develop a new program, and you want it to be of the greatest
289
+ possible use to the public, the best way to achieve this is to make it
290
+ free software which everyone can redistribute and change under these terms.
291
+
292
+ To do so, attach the following notices to the program. It is safest
293
+ to attach them to the start of each source file to most effectively
294
+ convey the exclusion of warranty; and each file should have at least
295
+ the "copyright" line and a pointer to where the full notice is found.
296
+
297
+ <one line to give the program's name and a brief idea of what it does.>
298
+ Copyright (C) <year> <name of author>
299
+
300
+ This program is free software; you can redistribute it and/or modify
301
+ it under the terms of the GNU General Public License as published by
302
+ the Free Software Foundation; either version 2 of the License, or
303
+ (at your option) any later version.
304
+
305
+ This program is distributed in the hope that it will be useful,
306
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
307
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
308
+ GNU General Public License for more details.
309
+
310
+ You should have received a copy of the GNU General Public License along
311
+ with this program; if not, write to the Free Software Foundation, Inc.,
312
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
313
+
314
+ Also add information on how to contact you by electronic and paper mail.
315
+
316
+ If the program is interactive, make it output a short notice like this
317
+ when it starts in an interactive mode:
318
+
319
+ Gnomovision version 69, Copyright (C) year name of author
320
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
321
+ This is free software, and you are welcome to redistribute it
322
+ under certain conditions; type `show c' for details.
323
+
324
+ The hypothetical commands `show w' and `show c' should show the appropriate
325
+ parts of the General Public License. Of course, the commands you use may
326
+ be called something other than `show w' and `show c'; they could even be
327
+ mouse-clicks or menu items--whatever suits your program.
328
+
329
+ You should also get your employer (if you work as a programmer) or your
330
+ school, if any, to sign a "copyright disclaimer" for the program, if
331
+ necessary. Here is a sample; alter the names:
332
+
333
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
334
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
335
+
336
+ <signature of Ty Coon>, 1 April 1989
337
+ Ty Coon, President of Vice
338
+
339
+ This General Public License does not permit incorporating your program into
340
+ proprietary programs. If your program is a subroutine library, you may
341
+ consider it more useful to permit linking proprietary applications with the
342
+ library. If this is what you want to do, use the GNU Lesser General
343
+ Public License instead of this License.
readme.txt ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Hueman Addons ===
2
+ Contributors: nikeo
3
+ Author URI: http://presscustomizr.com
4
+ 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
+
48
+ = 1.0.2 : May 5th, 2016 =
49
+ * fixed : Share bar blocking view in mobile
50
+ * fixed : Add Share Class Only When Sharebar Active
51
+ * fixed : when the sticky option is enabled, the bar can be on top of the attachments slideshow
52
+ * fixed : disabled social share buttons : there is still block area stolen from the content
53
+ * added : LinkedIn share button
54
+ * added : options to select which button(s) to activate
55
+ * removed : grunt reload script
56
+
57
+ = 1.0.1 : April 14th, 2016 =
58
+ * updated : sharrre Jquery plugin to the latest version (2.0.1) https://github.com/Julienh/Sharrre
59
+ * fixed : undefined var _gaq in sharre
60
+ * fixed : Google Plus sharing button not showing up
61
+
62
+ = 1.0.0 : April 13th, 2016 =
63
+ * First offical release