Version Description
Replaced broken sharre count by "+" sign. Removed Google Plus share button.
=
Download this release
Release Info
Developer | nikeo |
Plugin | Hueman Addons |
Version | 2.2.6 |
Comparing to | |
See all releases |
Code changes from version 2.2.5 to 2.2.6
- addons/assets/front/js/jQuerySharrre.js +0 -57
- addons/assets/front/js/jQuerySharrre.min.js +1 -1
- addons/czr/ha-czr.php +0 -1
- addons/sharrre/ha-sharrre.php +1 -9
- addons/sharrre/sharrre-template.php +4 -24
- contextualizer/ccat-contextualizer.php +1 -1
- ha-fire.php +1 -1
- inc/czr-base-fmk/assets/js/_0_ccat_czr-base-fmk.js +6 -0
- inc/czr-base-fmk/czr-base-fmk.php +20 -3
- lang/en_US.po +1 -1
- readme.txt +8 -4
addons/assets/front/js/jQuerySharrre.js
CHANGED
@@ -172,63 +172,6 @@ var SharrrePlatform = SharrrePlatform || (function () {
|
|
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
|
172 |
|
173 |
|
174 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
SharrrePlatform.register("pinterest", function (options) {
|
176 |
defaultSettings = { //http://pinterest.com/about/goodies/
|
177 |
url: '', //if you need to personalize url button
|
addons/assets/front/js/jQuerySharrre.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
var SharrrePlatform=SharrrePlatform||function(){var t={};return{register:function(e,n){t[e]=n},get:function(e,n){return t[e]?new t[e](n):(console.error("Sharrre - No platform found for "+e),!1)}}}();!function(t,e){void 0!==t&&(e.register("linkedin",function(e){return defaultSettings={url:"",urlCount:!1,counter:"",count:!0,popup:{width:550,height:550}},defaultSettings=t.extend(!0,{},defaultSettings,e),{settings:defaultSettings,url:function(t){return"https://www.linkedin.com/countserv/count/share?format=jsonp&url={url}&callback=?"},trackingAction:{site:"linkedin",action:"share"},load:function(e){var n=this.settings;t(e.element).find(".buttons").append('<div class="button linkedin"><script type="IN/share" data-url="'+(""!==n.url?n.url:e.options.url)+'" data-counter="'+n.counter+'"><\/script></div>');var i=0;void 0===window.IN&&0===i?(i=1,function(){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://platform.linkedin.com/in.js";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}()):void 0!==window.IN&&window.IN.parse&&IN.parse(document)},tracking:function(){},popup:function(t){window.open("https://www.linkedin.com/cws/share?url="+encodeURIComponent(""!==this.settings.url?this.settings.url:t.url)+"&token=&isFramed=true","linkedin","toolbar=no, width="+this.settings.popup.width+", height="+this.settings.popup.height)}}}),e.register("facebook",function(e){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=t.extend(!0,{},defaultSettings,e),{settings:defaultSettings,url:function(t){return"https://graph.facebook.com/?id={url}&callback=?"},trackingAction:{site:"facebook",action:"like"},load:function(e){var n=this.settings;t(e.element).find(".buttons").append('<div class="button facebook"><div id="fb-root"></div><div class="fb-like" data-href="'+(""!==n.url?n.url:e.options.url)+'" data-send="'+n.send+'" data-layout="'+n.layout+'" data-width="'+n.width+'" data-show-faces="'+n.faces+'" data-action="'+n.action+'" data-colorscheme="'+n.colorscheme+'" data-font="'+n.font+'" data-via="'+n.via+'" data-share="'+n.share+'"></div></div>');var i,o,s,a,r=0;"undefined"==typeof FB&&0===r?(r=1,i=document,o="facebook-jssdk",a=i.getElementsByTagName("script")[0],i.getElementById(o)||((s=i.createElement("script")).id=o,s.src="https://connect.facebook.net/"+n.lang+"/all.js#xfbml=1",n.appId&&(s.src+="&appId="+n.appId),a.parentNode.insertBefore(s,a))):FB.XFBML.parse()},tracking:function(){fb=window.setInterval(function(){"undefined"!=typeof FB&&"undefined"!=typeof _gaq&&(FB.Event.subscribe("edge.create",function(t){_gaq.push(["_trackSocial","facebook","like",t])}),FB.Event.subscribe("edge.remove",function(t){_gaq.push(["_trackSocial","facebook","unlike",t])}),FB.Event.subscribe("message.send",function(t){_gaq.push(["_trackSocial","facebook","send",t])}),clearInterval(fb))},1e3)},popup:function(t){window.open("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(""!==this.settings.url?this.settings.url:t.url)+"&t="+t.text,"","toolbar=0, status=0, width="+this.settings.popup.width+", height="+this.settings.popup.height)}}}),e.register("googlePlus",function(e){return defaultSettings={url:"",urlCount:!1,size:"medium",lang:"en-US",annotation:"",count:!0,popup:{width:900,height:500}},defaultSettings=t.extend(!0,{},defaultSettings,e),{settings:defaultSettings,url:function(t){return t+"?url={url}&type=googlePlus"},trackingAction:{site:"Google",action:"+1"},load:function(e){var n=this.settings;t(e.element).find(".buttons").append('<div class="button googleplus"><div class="g-plusone" data-size="'+n.size+'" data-href="'+(""!==n.url?n.url:e.options.url)+'" data-annotation="'+n.annotation+'"></div></div>'),window.___gcfg={lang:n.lang};var i=0;"undefined"!=typeof gapi&&void 0!==gapi.plusone||0!==i?gapi.plusone.go():(i=1,function(){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://apis.google.com/js/plusone.js";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}())},tracking:function(){},popup:function(t){window.open("https://plus.google.com/share?hl="+this.settings.lang+"&url="+encodeURIComponent(""!==this.settings.url?this.settings.url:t.url),"","toolbar=0, status=0, width="+this.settings.popup.width+", height="+this.settings.popup.height)}}}),e.register("pinterest",function(e){return defaultSettings={url:"",media:"",description:"",layout:"horizontal",popup:{width:700,height:300}},defaultSettings=t.extend(!0,{},defaultSettings,e),{settings:defaultSettings,url:function(t){return"https://api.pinterest.com/v1/urls/count.json?url={url}&callback=?"},trackingAction:{site:"pinterest",action:"pin"},load:function(e){var n=this.settings;t(e.element).find(".buttons").append('<div class="button pinterest"><a href="https://www.pinterest.com/pin/create/button/?url='+(""!==n.url?n.url:e.options.url)+"&media="+n.media+"&description="+n.description+'" data-pin-do="buttonBookmark" count-layout="'+n.layout+'">Pin It</a></div>'),function(){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://assets.pinterest.com/js/pinit.js",t.setAttribute("data-pin-build","parsePinBtns");var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}(),window.parsePinBtns&&window.parsePinBtns(),t(e.element).find(".pinterest").on("click",function(){e.openPopup("pinterest")})},tracking:function(){},popup:function(t){window.open("https://pinterest.com/pin/create/button/?url="+encodeURIComponent(""!==this.settings.url?this.settings.url:t.url)+"&media="+encodeURIComponent(this.settings.media)+"&description="+this.settings.description,"pinterest","toolbar=no,width="+this.settings.popup.width+", height="+this.settings.popup.height)}}}),e.register("twitter",function(e){return defaultSettings={url:"",urlCount:!1,count:!1,hashtags:"",via:"",related:"",lang:"en",popup:{width:650,height:360}},defaultSettings=t.extend(!0,{},defaultSettings,e),{settings:defaultSettings,trackingAction:{site:"twitter",action:"tweet"},url:function(t){return"http://opensharecount.com/count.json?url={url}"},load:function(e){var n=this.settings;t(e.element).find(".buttons").append('<div class="button twitter"><a href="https://twitter.com/share" class="twitter-share-button" data-url="'+(""!==n.url?n.url:e.options.url)+'" data-count="'+n.count+'" data-text="'+e.options.text+'" data-via="'+n.via+'" data-hashtags="'+n.hashtags+'" data-related="'+n.related+'" data-lang="'+n.lang+'">Tweet</a></div>');var i=0;"undefined"==typeof twttr&&0===i?(i=1,function(){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://platform.twitter.com/widgets.js";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}()):t.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(t){t&&"undefined"!=typeof _gaq&&_gaq.push(["_trackSocial","twitter","tweet"])}),clearInterval(tw))},1e3)},popup:function(t){window.open("https://twitter.com/intent/tweet?text="+encodeURIComponent(t.text)+"&url="+encodeURIComponent(""!==this.settings.url?this.setting.url:t.url)+(""!==this.settings.via?"&via="+this.settings.via:""),"","toolbar=0, status=0,width="+this.settings.popup.width+", height="+this.settings.popup.height)}}}),e.register("twitterFollow",function(e){return defaultSettings={url:"",urlCount:!1,count:!0,display:"horizontal",lang:"en",popup:{width:650,height:360},user:"",size:"default",showCount:"false"},defaultSettings=t.extend(!0,{},defaultSettings,e),{settings:defaultSettings,trackingAction:{site:"twitter",action:"follow"},url:function(t){return""},load:function(e){var n=this.settings;t(e.element).find(".buttons").append('<div class="button twitterFollow"><a href="https://twitter.com/'+n.user+'" class="twitter-follow-button"" data-size="'+n.size+'" data-show-count="'+n.showCount+'" data-lang="'+n.lang+'">Follow @'+n.user+"</a></div>");var i=0;"undefined"==typeof twttr&&0===i?(i=1,function(){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://platform.twitter.com/widgets.js";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}()):t.ajax({url:"https://platform.twitter.com/widgets.js",dataType:"script",cache:!0})},tracking:function(){},popup:function(t){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(t,e,n,i){var o="sharrre",s={className:"sharrre",share:{},shareTotal:0,template:"",title:"",url:n.location.href,text:n.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(){}};function a(e,n){this.element=e,this.options=t.extend(!0,{},s,n),this.options.share=n.share,this._defaults=s,this._name=o,this.platforms={},this.init()}a.prototype.init=function(){var e=this;t.each(e.options.share,function(t,n){!0===n&&(e.platforms[t]=SharrrePlatform.get(t,e.options.buttons[t]))}),t(this.element).addClass(this.options.className),void 0!==t(this.element).data("title")&&(this.options.title=t(this.element).attr("data-title")),void 0!==t(this.element).data("url")&&(this.options.url=t(this.element).data("url")),void 0!==t(this.element).data("text")&&(this.options.text=t(this.element).data("text")),t.each(this.options.share,function(t,n){!0===n&&e.options.shareTotal++}),!0===e.options.enableCounter?t.each(this.options.share,function(t,n){if(!0===n)try{e.getSocialJson(t)}catch(t){}}):""!==e.options.template&&(e.renderer(),e.options.count[name]=0,e.rendererPerso()),""!==e.options.template?this.options.render(this,this.options):this.loadButtons(),t(this.element).on("mouseenter",function(){0===t(this).find(".buttons").length&&!0===e.options.enableHover&&e.loadButtons(),e.options.hover(e,e.options)}).on("mouseleave",function(){e.options.hide(e,e.options)}),t(this.element).click(function(t){return t.preventDefault(),e.options.click(e,e.options),!1})},a.prototype.loadButtons=function(){var e=this;t(this.element).append('<div class="buttons"></div>'),t.each(e.options.share,function(t,n){!0===n&&(e.platforms[t].load(e),!0===e.options.enableTracking&&e.platforms[t].tracking())})},a.prototype.getSocialJson=function(e){var n=this,i=0,o=n.platforms[e].settings,s=n.platforms[e].url(this.options.urlCurl),a=encodeURIComponent(this.options.url);o.url.length&&(s=o.url),!0===o.urlCount&&""!==s&&(a=s),!1===o.count&&(s=""),url=s.replace("{url}",a),"twitter"==e&&(s=n.platforms[e].url()),""!==url?t.getJSON(url,function(t){if(void 0!==t.count){var o=t.count+"";o=o.replace("Â ",""),i+=parseInt(o,10)}else void 0!==t.share&&void 0!==t.share.share_count?i+=parseInt(t.share.share_count,10):void 0!==t[0]?i+=parseInt(t[0].total_posts,10):t[0];n.options.count[e]=i,n.options.total+=i,n.renderer(),n.rendererPerso()}).error(function(){n.options.count[e]=0,n.rendererPerso()}):(n.renderer(),n.options.count[e]=0,n.rendererPerso())},a.prototype.rendererPerso=function(){var t=0;for(var e in this.options.count)t++;t===this.options.shareTotal&&this.options.render(this,this.options)},a.prototype.renderer=function(){var e=this.options.total,n=this.options.template;!0===this.options.shorterTotal&&(e=this.shorterTotal(e)),""!==n?(n=n.replace("{total}",e),t(this.element).html(n)):t(this.element).html('<div class="box"><a class="count" href="'+this.options.defaultUrl+'">'+e+"</a>"+(""!==this.options.title?'<a class="share" href="'+this.options.defaultUrl+'">'+this.options.title+"</a>":"")+"</div>")},a.prototype.shorterTotal=function(t){return t>=1e6?t=(t/1e6).toFixed(2)+"M":t>=1e3&&(t=(t/1e3).toFixed(1)+"k"),t},a.prototype.openPopup=function(t){this.platforms[t].popup(this.options),!0===this.options.enableTracking&&"undefined"!=typeof _gaq&&(infos=this.platforms[t].trackingAction,_gaq.push(["_trackSocial",infos.site,infos.action]))},a.prototype.simulateClick=function(){var e=t(this.element).html();t(this.element).html(e.replace(this.options.total,this.options.total+1))},a.prototype.update=function(t,e){""!==t&&(this.options.url=t),""!==e&&(this.options.text=e)},t.fn[o]=function(e){var n=arguments;return void 0===e||"object"==typeof e?this.each(function(){t(this).data("plugin_"+o)||t(this).data("plugin_"+o,new a(this,e))}):"string"==typeof e&&"_"!==e[0]&&"init"!==e?this.each(function(){var i=t(this).data("plugin_"+o);i instanceof a&&"function"==typeof i[e]&&i[e].apply(i,Array.prototype.slice.call(n,1))}):void 0}}(window.jQuery||window.Zepto,window,document);
|
1 |
+
var SharrrePlatform=SharrrePlatform||function(){var t={};return{register:function(e,n){t[e]=n},get:function(e,n){return t[e]?new t[e](n):(console.error("Sharrre - No platform found for "+e),!1)}}}();!function(t,e){void 0!==t&&(e.register("linkedin",function(e){return defaultSettings={url:"",urlCount:!1,counter:"",count:!0,popup:{width:550,height:550}},defaultSettings=t.extend(!0,{},defaultSettings,e),{settings:defaultSettings,url:function(t){return"https://www.linkedin.com/countserv/count/share?format=jsonp&url={url}&callback=?"},trackingAction:{site:"linkedin",action:"share"},load:function(e){var n=this.settings;t(e.element).find(".buttons").append('<div class="button linkedin"><script type="IN/share" data-url="'+(""!==n.url?n.url:e.options.url)+'" data-counter="'+n.counter+'"><\/script></div>');var i=0;void 0===window.IN&&0===i?(i=1,function(){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://platform.linkedin.com/in.js";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}()):void 0!==window.IN&&window.IN.parse&&IN.parse(document)},tracking:function(){},popup:function(t){window.open("https://www.linkedin.com/cws/share?url="+encodeURIComponent(""!==this.settings.url?this.settings.url:t.url)+"&token=&isFramed=true","linkedin","toolbar=no, width="+this.settings.popup.width+", height="+this.settings.popup.height)}}}),e.register("facebook",function(e){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=t.extend(!0,{},defaultSettings,e),{settings:defaultSettings,url:function(t){return"https://graph.facebook.com/?id={url}&callback=?"},trackingAction:{site:"facebook",action:"like"},load:function(e){var n=this.settings;t(e.element).find(".buttons").append('<div class="button facebook"><div id="fb-root"></div><div class="fb-like" data-href="'+(""!==n.url?n.url:e.options.url)+'" data-send="'+n.send+'" data-layout="'+n.layout+'" data-width="'+n.width+'" data-show-faces="'+n.faces+'" data-action="'+n.action+'" data-colorscheme="'+n.colorscheme+'" data-font="'+n.font+'" data-via="'+n.via+'" data-share="'+n.share+'"></div></div>');var i,o,s,r,a=0;"undefined"==typeof FB&&0===a?(a=1,i=document,o="facebook-jssdk",r=i.getElementsByTagName("script")[0],i.getElementById(o)||((s=i.createElement("script")).id=o,s.src="https://connect.facebook.net/"+n.lang+"/all.js#xfbml=1",n.appId&&(s.src+="&appId="+n.appId),r.parentNode.insertBefore(s,r))):FB.XFBML.parse()},tracking:function(){fb=window.setInterval(function(){"undefined"!=typeof FB&&"undefined"!=typeof _gaq&&(FB.Event.subscribe("edge.create",function(t){_gaq.push(["_trackSocial","facebook","like",t])}),FB.Event.subscribe("edge.remove",function(t){_gaq.push(["_trackSocial","facebook","unlike",t])}),FB.Event.subscribe("message.send",function(t){_gaq.push(["_trackSocial","facebook","send",t])}),clearInterval(fb))},1e3)},popup:function(t){window.open("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(""!==this.settings.url?this.settings.url:t.url)+"&t="+t.text,"","toolbar=0, status=0, width="+this.settings.popup.width+", height="+this.settings.popup.height)}}}),e.register("pinterest",function(e){return defaultSettings={url:"",media:"",description:"",layout:"horizontal",popup:{width:700,height:300}},defaultSettings=t.extend(!0,{},defaultSettings,e),{settings:defaultSettings,url:function(t){return"https://api.pinterest.com/v1/urls/count.json?url={url}&callback=?"},trackingAction:{site:"pinterest",action:"pin"},load:function(e){var n=this.settings;t(e.element).find(".buttons").append('<div class="button pinterest"><a href="https://www.pinterest.com/pin/create/button/?url='+(""!==n.url?n.url:e.options.url)+"&media="+n.media+"&description="+n.description+'" data-pin-do="buttonBookmark" count-layout="'+n.layout+'">Pin It</a></div>'),function(){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://assets.pinterest.com/js/pinit.js",t.setAttribute("data-pin-build","parsePinBtns");var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}(),window.parsePinBtns&&window.parsePinBtns(),t(e.element).find(".pinterest").on("click",function(){e.openPopup("pinterest")})},tracking:function(){},popup:function(t){window.open("https://pinterest.com/pin/create/button/?url="+encodeURIComponent(""!==this.settings.url?this.settings.url:t.url)+"&media="+encodeURIComponent(this.settings.media)+"&description="+this.settings.description,"pinterest","toolbar=no,width="+this.settings.popup.width+", height="+this.settings.popup.height)}}}),e.register("twitter",function(e){return defaultSettings={url:"",urlCount:!1,count:!1,hashtags:"",via:"",related:"",lang:"en",popup:{width:650,height:360}},defaultSettings=t.extend(!0,{},defaultSettings,e),{settings:defaultSettings,trackingAction:{site:"twitter",action:"tweet"},url:function(t){return"http://opensharecount.com/count.json?url={url}"},load:function(e){var n=this.settings;t(e.element).find(".buttons").append('<div class="button twitter"><a href="https://twitter.com/share" class="twitter-share-button" data-url="'+(""!==n.url?n.url:e.options.url)+'" data-count="'+n.count+'" data-text="'+e.options.text+'" data-via="'+n.via+'" data-hashtags="'+n.hashtags+'" data-related="'+n.related+'" data-lang="'+n.lang+'">Tweet</a></div>');var i=0;"undefined"==typeof twttr&&0===i?(i=1,function(){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://platform.twitter.com/widgets.js";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}()):t.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(t){t&&"undefined"!=typeof _gaq&&_gaq.push(["_trackSocial","twitter","tweet"])}),clearInterval(tw))},1e3)},popup:function(t){window.open("https://twitter.com/intent/tweet?text="+encodeURIComponent(t.text)+"&url="+encodeURIComponent(""!==this.settings.url?this.setting.url:t.url)+(""!==this.settings.via?"&via="+this.settings.via:""),"","toolbar=0, status=0,width="+this.settings.popup.width+", height="+this.settings.popup.height)}}}),e.register("twitterFollow",function(e){return defaultSettings={url:"",urlCount:!1,count:!0,display:"horizontal",lang:"en",popup:{width:650,height:360},user:"",size:"default",showCount:"false"},defaultSettings=t.extend(!0,{},defaultSettings,e),{settings:defaultSettings,trackingAction:{site:"twitter",action:"follow"},url:function(t){return""},load:function(e){var n=this.settings;t(e.element).find(".buttons").append('<div class="button twitterFollow"><a href="https://twitter.com/'+n.user+'" class="twitter-follow-button"" data-size="'+n.size+'" data-show-count="'+n.showCount+'" data-lang="'+n.lang+'">Follow @'+n.user+"</a></div>");var i=0;"undefined"==typeof twttr&&0===i?(i=1,function(){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://platform.twitter.com/widgets.js";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}()):t.ajax({url:"https://platform.twitter.com/widgets.js",dataType:"script",cache:!0})},tracking:function(){},popup:function(t){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(t,e,n,i){var o="sharrre",s={className:"sharrre",share:{},shareTotal:0,template:"",title:"",url:n.location.href,text:n.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(){}};function r(e,n){this.element=e,this.options=t.extend(!0,{},s,n),this.options.share=n.share,this._defaults=s,this._name=o,this.platforms={},this.init()}r.prototype.init=function(){var e=this;t.each(e.options.share,function(t,n){!0===n&&(e.platforms[t]=SharrrePlatform.get(t,e.options.buttons[t]))}),t(this.element).addClass(this.options.className),void 0!==t(this.element).data("title")&&(this.options.title=t(this.element).attr("data-title")),void 0!==t(this.element).data("url")&&(this.options.url=t(this.element).data("url")),void 0!==t(this.element).data("text")&&(this.options.text=t(this.element).data("text")),t.each(this.options.share,function(t,n){!0===n&&e.options.shareTotal++}),!0===e.options.enableCounter?t.each(this.options.share,function(t,n){if(!0===n)try{e.getSocialJson(t)}catch(t){}}):""!==e.options.template&&(e.renderer(),e.options.count[name]=0,e.rendererPerso()),""!==e.options.template?this.options.render(this,this.options):this.loadButtons(),t(this.element).on("mouseenter",function(){0===t(this).find(".buttons").length&&!0===e.options.enableHover&&e.loadButtons(),e.options.hover(e,e.options)}).on("mouseleave",function(){e.options.hide(e,e.options)}),t(this.element).click(function(t){return t.preventDefault(),e.options.click(e,e.options),!1})},r.prototype.loadButtons=function(){var e=this;t(this.element).append('<div class="buttons"></div>'),t.each(e.options.share,function(t,n){!0===n&&(e.platforms[t].load(e),!0===e.options.enableTracking&&e.platforms[t].tracking())})},r.prototype.getSocialJson=function(e){var n=this,i=0,o=n.platforms[e].settings,s=n.platforms[e].url(this.options.urlCurl),r=encodeURIComponent(this.options.url);o.url.length&&(s=o.url),!0===o.urlCount&&""!==s&&(r=s),!1===o.count&&(s=""),url=s.replace("{url}",r),"twitter"==e&&(s=n.platforms[e].url()),""!==url?t.getJSON(url,function(t){if(void 0!==t.count){var o=t.count+"";o=o.replace("Â ",""),i+=parseInt(o,10)}else void 0!==t.share&&void 0!==t.share.share_count?i+=parseInt(t.share.share_count,10):void 0!==t[0]?i+=parseInt(t[0].total_posts,10):t[0];n.options.count[e]=i,n.options.total+=i,n.renderer(),n.rendererPerso()}).error(function(){n.options.count[e]=0,n.rendererPerso()}):(n.renderer(),n.options.count[e]=0,n.rendererPerso())},r.prototype.rendererPerso=function(){var t=0;for(var e in this.options.count)t++;t===this.options.shareTotal&&this.options.render(this,this.options)},r.prototype.renderer=function(){var e=this.options.total,n=this.options.template;!0===this.options.shorterTotal&&(e=this.shorterTotal(e)),""!==n?(n=n.replace("{total}",e),t(this.element).html(n)):t(this.element).html('<div class="box"><a class="count" href="'+this.options.defaultUrl+'">'+e+"</a>"+(""!==this.options.title?'<a class="share" href="'+this.options.defaultUrl+'">'+this.options.title+"</a>":"")+"</div>")},r.prototype.shorterTotal=function(t){return t>=1e6?t=(t/1e6).toFixed(2)+"M":t>=1e3&&(t=(t/1e3).toFixed(1)+"k"),t},r.prototype.openPopup=function(t){this.platforms[t].popup(this.options),!0===this.options.enableTracking&&"undefined"!=typeof _gaq&&(infos=this.platforms[t].trackingAction,_gaq.push(["_trackSocial",infos.site,infos.action]))},r.prototype.simulateClick=function(){var e=t(this.element).html();t(this.element).html(e.replace(this.options.total,this.options.total+1))},r.prototype.update=function(t,e){""!==t&&(this.options.url=t),""!==e&&(this.options.text=e)},t.fn[o]=function(e){var n=arguments;return void 0===e||"object"==typeof e?this.each(function(){t(this).data("plugin_"+o)||t(this).data("plugin_"+o,new r(this,e))}):"string"==typeof e&&"_"!==e[0]&&"init"!==e?this.each(function(){var i=t(this).data("plugin_"+o);i instanceof r&&"function"==typeof i[e]&&i[e].apply(i,Array.prototype.slice.call(n,1))}):void 0}}(window.jQuery||window.Zepto,window,document);
|
addons/czr/ha-czr.php
CHANGED
@@ -116,7 +116,6 @@ class HA_Czr {
|
|
116 |
'sharrre-twitter-on',
|
117 |
'twitter-username',
|
118 |
'sharrre-facebook-on',
|
119 |
-
'sharrre-google-on',
|
120 |
'sharrre-pinterest-on',
|
121 |
'sharrre-linkedin-on'
|
122 |
],
|
116 |
'sharrre-twitter-on',
|
117 |
'twitter-username',
|
118 |
'sharrre-facebook-on',
|
|
|
119 |
'sharrre-pinterest-on',
|
120 |
'sharrre-linkedin-on'
|
121 |
],
|
addons/sharrre/ha-sharrre.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
function ha_are_share_buttons_enabled() {
|
7 |
if ( ! hu_is_checked('sharrre') )
|
8 |
return;
|
9 |
-
if ( ! hu_is_checked('sharrre-twitter-on') && ! hu_is_checked('sharrre-facebook-on') && ! hu_is_checked('sharrre-
|
10 |
return;
|
11 |
return true;
|
12 |
}
|
@@ -144,14 +144,6 @@ class HA_Sharrre {
|
|
144 |
'type' => 'nimblecheck',
|
145 |
'priority' => 80
|
146 |
),
|
147 |
-
'sharrre-google-on' => array(
|
148 |
-
'default' => 1,
|
149 |
-
'control' => 'HU_controls',
|
150 |
-
'label' => __('Enable Google Plus Button', 'hueman-addons'),
|
151 |
-
'section' => 'content_single_sec',
|
152 |
-
'type' => 'nimblecheck',
|
153 |
-
'priority' => 90
|
154 |
-
),
|
155 |
'sharrre-pinterest-on' => array(
|
156 |
'default' => 0,
|
157 |
'control' => 'HU_controls',
|
6 |
function ha_are_share_buttons_enabled() {
|
7 |
if ( ! hu_is_checked('sharrre') )
|
8 |
return;
|
9 |
+
if ( ! hu_is_checked('sharrre-twitter-on') && ! hu_is_checked('sharrre-facebook-on') && ! hu_is_checked('sharrre-pinterest-on') && ! hu_is_checked('sharrre-linkedin-on') )
|
10 |
return;
|
11 |
return true;
|
12 |
}
|
144 |
'type' => 'nimblecheck',
|
145 |
'priority' => 80
|
146 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
'sharrre-pinterest-on' => array(
|
148 |
'default' => 0,
|
149 |
'control' => 'HU_controls',
|
addons/sharrre/sharrre-template.php
CHANGED
@@ -6,9 +6,6 @@
|
|
6 |
<?php if ( hu_is_checked('sharrre-facebook-on') ) : ?>
|
7 |
<div id="facebook" data-url="<?php echo the_permalink(); ?>" data-text="<?php the_title_attribute(); ?>" 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 the_title_attribute(); ?>" 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 the_title_attribute(); ?>" data-title="<?php _e('Pin It', 'hueman-addons'); ?>"></div>
|
14 |
<?php endif; ?>
|
@@ -28,7 +25,7 @@
|
|
28 |
share: {
|
29 |
twitter: true
|
30 |
},
|
31 |
-
template: '<a class="box" href="#"><div class="count" href="#"
|
32 |
enableHover: false,
|
33 |
enableTracking: true,
|
34 |
buttons: { twitter: {via: '<?php echo esc_attr( hu_get_option("twitter-username") ); ?>'}},
|
@@ -43,7 +40,7 @@
|
|
43 |
share: {
|
44 |
facebook: true
|
45 |
},
|
46 |
-
template: '<a class="box" href="#"><div class="count" href="#"
|
47 |
enableHover: false,
|
48 |
enableTracking: true,
|
49 |
buttons:{layout: 'box_count'},
|
@@ -53,29 +50,12 @@
|
|
53 |
}
|
54 |
});
|
55 |
<?php endif; ?>
|
56 |
-
<?php if ( hu_is_checked('sharrre-google-on') ) : ?>
|
57 |
-
<?php $path = HU_AD() -> ha_get_base_url(); ?>
|
58 |
-
$('#googleplus').sharrre({
|
59 |
-
share: {
|
60 |
-
googlePlus: true
|
61 |
-
},
|
62 |
-
template: '<a class="box" href="#"><div class="count" href="#">{total}</div><div class="share"><i class="fab fa-google-plus-square"></i></div></a>',
|
63 |
-
enableHover: false,
|
64 |
-
enableTracking: true,
|
65 |
-
buttons:{size: 'tall'},
|
66 |
-
urlCurl: '<?php echo $path . "addons/assets/front/js/sharrre.php"; ?>',
|
67 |
-
click: function(api, options){
|
68 |
-
api.simulateClick();
|
69 |
-
api.openPopup('googlePlus');
|
70 |
-
}
|
71 |
-
});
|
72 |
-
<?php endif; ?>
|
73 |
<?php if ( hu_is_checked('sharrre-pinterest-on') ) : ?>
|
74 |
$('#pinterest').sharrre({
|
75 |
share: {
|
76 |
pinterest: true
|
77 |
},
|
78 |
-
template: '<a class="box" href="#" rel="nofollow"><div class="count" href="#"
|
79 |
enableHover: false,
|
80 |
enableTracking: true,
|
81 |
buttons: {
|
@@ -94,7 +74,7 @@
|
|
94 |
share: {
|
95 |
linkedin: true
|
96 |
},
|
97 |
-
template: '<a class="box" href="#" rel="nofollow"><div class="count" href="#"
|
98 |
enableHover: false,
|
99 |
enableTracking: true,
|
100 |
buttons: {
|
6 |
<?php if ( hu_is_checked('sharrre-facebook-on') ) : ?>
|
7 |
<div id="facebook" data-url="<?php echo the_permalink(); ?>" data-text="<?php the_title_attribute(); ?>" data-title="<?php _e('Like', 'hueman-addons'); ?>"></div>
|
8 |
<?php endif; ?>
|
|
|
|
|
|
|
9 |
<?php if ( hu_is_checked('sharrre-pinterest-on') ) : ?>
|
10 |
<div id="pinterest" data-url="<?php echo the_permalink(); ?>" data-text="<?php the_title_attribute(); ?>" data-title="<?php _e('Pin It', 'hueman-addons'); ?>"></div>
|
11 |
<?php endif; ?>
|
25 |
share: {
|
26 |
twitter: true
|
27 |
},
|
28 |
+
template: '<a class="box" href="#"><div class="count" href="#"><i class="fa fa-plus"></i></div><div class="share"><i class="fab fa-twitter"></i></div></a>',
|
29 |
enableHover: false,
|
30 |
enableTracking: true,
|
31 |
buttons: { twitter: {via: '<?php echo esc_attr( hu_get_option("twitter-username") ); ?>'}},
|
40 |
share: {
|
41 |
facebook: true
|
42 |
},
|
43 |
+
template: '<a class="box" href="#"><div class="count" href="#"><i class="fa fa-plus"></i></div><div class="share"><i class="fab fa-facebook-square"></i></div></a>',
|
44 |
enableHover: false,
|
45 |
enableTracking: true,
|
46 |
buttons:{layout: 'box_count'},
|
50 |
}
|
51 |
});
|
52 |
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
<?php if ( hu_is_checked('sharrre-pinterest-on') ) : ?>
|
54 |
$('#pinterest').sharrre({
|
55 |
share: {
|
56 |
pinterest: true
|
57 |
},
|
58 |
+
template: '<a class="box" href="#" rel="nofollow"><div class="count" href="#"><i class="fa fa-plus"></i></div><div class="share"><i class="fab fa-pinterest"></i></div></a>',
|
59 |
enableHover: false,
|
60 |
enableTracking: true,
|
61 |
buttons: {
|
74 |
share: {
|
75 |
linkedin: true
|
76 |
},
|
77 |
+
template: '<a class="box" href="#" rel="nofollow"><div class="count" href="#"><i class="fa fa-plus"></i></div><div class="share"><i class="fab fa-linkedin"></i></div></a>',
|
78 |
enableHover: false,
|
79 |
enableTracking: true,
|
80 |
buttons: {
|
contextualizer/ccat-contextualizer.php
CHANGED
@@ -710,7 +710,7 @@ if ( ! class_exists( 'CZR_Contx_Construct' ) ) :
|
|
710 |
// Is used when the theme_mod "ctx_filtrable_candidates" is not set yet
|
711 |
// invoked in ctx_cache_filtrable_candidates()
|
712 |
private function _get_default_filtrable_candidate_json() {
|
713 |
-
return '{"options":["blogname","blogdescription"],"multidim_options":{"hu_theme_options":["display-header-title","display-header-logo","logo-max-height","font","body-font-size","container-width","boxed","sidebar-padding","color-1","color-2","image-border-radius","ext_link_style","ext_link_target","post-comments","page-comments","smoothscroll","responsive","fittext","sharrre","sharrre-counter","sharrre-scrollable","sharrre-twitter-on","twitter-username","sharrre-facebook-on","sharrre-
|
714 |
}
|
715 |
}//class
|
716 |
endif;
|
710 |
// Is used when the theme_mod "ctx_filtrable_candidates" is not set yet
|
711 |
// invoked in ctx_cache_filtrable_candidates()
|
712 |
private function _get_default_filtrable_candidate_json() {
|
713 |
+
return '{"options":["blogname","blogdescription"],"multidim_options":{"hu_theme_options":["display-header-title","display-header-logo","logo-max-height","font","body-font-size","container-width","boxed","sidebar-padding","color-1","color-2","image-border-radius","ext_link_style","ext_link_target","post-comments","page-comments","smoothscroll","responsive","fittext","sharrre","sharrre-counter","sharrre-scrollable","sharrre-twitter-on","twitter-username","sharrre-facebook-on","sharrre-pinterest-on","sharrre-linkedin-on","minified-css","structured-data","smart_load_img","js-mobile-detect","site-description","color-topbar","color-header","color-header-menu","color-mobile-menu","transparent-fixed-topnav","use-header-image","logo-title-on-header-image","header-ads","header-ads-desktop","header-ads-mobile","default-menu-header","header-desktop-sticky","desktop-search","header_mobile_menu_layout","header-mobile-sticky","header_mobile_btn","mobile-search","infinite-scroll","load_on_scroll_desktop","load_on_scroll_mobile","pro_post_list_design","pro_grid_columns","blog-heading-enabled","blog-heading","blog-subheading","excerpt-length","featured-posts-enabled","featured-category","featured-posts-count","featured-posts-full-content","featured-slideshow","featured-slideshow-speed","author-bio","related-posts","post-nav","placeholder","comment-count","sidebar-top","desktop-sticky-sb","mobile-sticky-sb","mobile-sidebar-hide","footer-ads","default-menu-footer","color-footer","copyright","credit"]},"multidim_theme_mods":[],"simple_theme_mods":["header_text","custom_logo","header_textcolor","background_color","header_image","background_preset","background_size","background_repeat","background_attachment","nav_menu_locations"]}';
|
714 |
}
|
715 |
}//class
|
716 |
endif;
|
ha-fire.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Hueman Addons
|
4 |
* Plugin URI: https://presscustomizr.com
|
5 |
* Description: Hueman Theme Addons
|
6 |
-
* Version: 2.2.
|
7 |
* Text Domain: hueman-addons
|
8 |
* Author: Press Customizr
|
9 |
* Author URI: https://presscustomizr.com
|
3 |
* Plugin Name: Hueman Addons
|
4 |
* Plugin URI: https://presscustomizr.com
|
5 |
* Description: Hueman Theme Addons
|
6 |
+
* Version: 2.2.6
|
7 |
* Text Domain: hueman-addons
|
8 |
* Author: Press Customizr
|
9 |
* Author URI: https://presscustomizr.com
|
inc/czr-base-fmk/assets/js/_0_ccat_czr-base-fmk.js
CHANGED
@@ -1864,6 +1864,12 @@ $.extend( CZRInputMths , {
|
|
1864 |
// _do_();
|
1865 |
// },
|
1866 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1867 |
setupNimbleCheck : function( params ) {
|
1868 |
var input = this;
|
1869 |
var $input = input.container.find('input[type=checkbox]'),
|
1864 |
// _do_();
|
1865 |
// },
|
1866 |
|
1867 |
+
// when input and label are tied by an id - for relationship
|
1868 |
+
// clicking on any of them changes the input
|
1869 |
+
// => We need a unique ID here so that input and label are tied by a unique link
|
1870 |
+
// The unique ID is generated server side as a GUID
|
1871 |
+
// @see https://www.w3.org/TR/html401/interact/forms.html#h-17.9.1
|
1872 |
+
// @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input/checkbox
|
1873 |
setupNimbleCheck : function( params ) {
|
1874 |
var input = this;
|
1875 |
var $input = input.container.find('input[type=checkbox]'),
|
inc/czr-base-fmk/czr-base-fmk.php
CHANGED
@@ -27,6 +27,8 @@ if ( ! class_exists( 'CZR_Fmk_Base_Construct' ) ) :
|
|
27 |
|
28 |
public $czr_css_attr = array();
|
29 |
|
|
|
|
|
30 |
public static function czr_fmk_get_instance( $params ) {
|
31 |
if ( ! isset( self::$instance ) && ! ( self::$instance instanceof CZR_Fmk_Base ) ) {
|
32 |
self::$instance = new CZR_Fmk_Base( $params );
|
@@ -586,7 +588,11 @@ if ( ! class_exists( 'CZR_Fmk_Base_Tmpl_Builder' ) ) :
|
|
586 |
|
587 |
'scope' => 'local',// <= used when resetting the sections
|
588 |
// introduced for https://github.com/presscustomizr/nimble-builder/issues/403
|
589 |
-
'editor_params' => array()
|
|
|
|
|
|
|
|
|
590 |
);
|
591 |
foreach( $tmpl_map as $input_id => $input_data ) {
|
592 |
if ( ! is_string( $input_id ) || empty( $input_id ) ) {
|
@@ -814,9 +820,17 @@ if ( ! class_exists( 'CZR_Fmk_Base_Tmpl_Builder' ) ) :
|
|
814 |
<#
|
815 |
var _checked = ( false != data['<?php echo $input_id; ?>'] ) ? "checked=checked" : '';
|
816 |
#>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
817 |
<div class="nimblecheck-wrap">
|
818 |
-
<input id="nimblecheck-<?php echo $
|
819 |
-
<label for="nimblecheck-<?php echo $
|
820 |
</div>
|
821 |
<?php
|
822 |
break;
|
@@ -1454,6 +1468,9 @@ if ( ! class_exists( 'CZR_Fmk_Dyn_Module_Registration' ) ) :
|
|
1454 |
}
|
1455 |
|
1456 |
$module_params = $registered_modules[ $module_type ];
|
|
|
|
|
|
|
1457 |
$tmpl_params = $module_params[ 'tmpl' ];
|
1458 |
// Enqueue the list of registered scripts
|
1459 |
if ( empty( $tmpl_params ) ) {
|
27 |
|
28 |
public $czr_css_attr = array();
|
29 |
|
30 |
+
public $current_module_params_when_ajaxing;// store the params when ajaxing and allows us to access the currently requested module params at any point of the ajax action
|
31 |
+
|
32 |
public static function czr_fmk_get_instance( $params ) {
|
33 |
if ( ! isset( self::$instance ) && ! ( self::$instance instanceof CZR_Fmk_Base ) ) {
|
34 |
self::$instance = new CZR_Fmk_Base( $params );
|
588 |
|
589 |
'scope' => 'local',// <= used when resetting the sections
|
590 |
// introduced for https://github.com/presscustomizr/nimble-builder/issues/403
|
591 |
+
'editor_params' => array(),
|
592 |
+
|
593 |
+
// introduced for https://github.com/presscustomizr/nimble-builder/issues/431
|
594 |
+
'section_collection' => array(),
|
595 |
+
'section_type' => 'content'
|
596 |
);
|
597 |
foreach( $tmpl_map as $input_id => $input_data ) {
|
598 |
if ( ! is_string( $input_id ) || empty( $input_id ) ) {
|
820 |
<#
|
821 |
var _checked = ( false != data['<?php echo $input_id; ?>'] ) ? "checked=checked" : '';
|
822 |
#>
|
823 |
+
<?php
|
824 |
+
// when input and label are tied by an id - for relationship
|
825 |
+
// clicking on any of them changes the input
|
826 |
+
// => We need a unique ID here so that input and label are tied by a unique link
|
827 |
+
// @see https://www.w3.org/TR/html401/interact/forms.html#h-17.9.1
|
828 |
+
// @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input/checkbox
|
829 |
+
$unique_id = sprintf('%04X%04X', mt_rand(0, 65535), mt_rand(0, 65535));
|
830 |
+
?>
|
831 |
<div class="nimblecheck-wrap">
|
832 |
+
<input id="nimblecheck-<?php echo $unique_id; ?>" data-czrtype="<?php echo $input_id; ?>" type="checkbox" {{ _checked }} class="nimblecheck-input">
|
833 |
+
<label for="nimblecheck-<?php echo $unique_id; ?>" class="nimblecheck-label">Switch</label>
|
834 |
</div>
|
835 |
<?php
|
836 |
break;
|
1468 |
}
|
1469 |
|
1470 |
$module_params = $registered_modules[ $module_type ];
|
1471 |
+
// Store the params now, so we can access them when rendering the input templates
|
1472 |
+
$this->current_module_params_when_ajaxing = $module_params;
|
1473 |
+
|
1474 |
$tmpl_params = $module_params[ 'tmpl' ];
|
1475 |
// Enqueue the list of registered scripts
|
1476 |
if ( empty( $tmpl_params ) ) {
|
lang/en_US.po
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
-
"Project-Id-Version: Hueman Addons v2.2.
|
4 |
"POT-Creation-Date: 2016-12-19 18:13+0100\n"
|
5 |
"PO-Revision-Date: 2016-12-19 18:14+0100\n"
|
6 |
"Last-Translator: \n"
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
+
"Project-Id-Version: Hueman Addons v2.2.6\n"
|
4 |
"POT-Creation-Date: 2016-12-19 18:13+0100\n"
|
5 |
"PO-Revision-Date: 2016-12-19 18:14+0100\n"
|
6 |
"Last-Translator: \n"
|
readme.txt
CHANGED
@@ -5,8 +5,8 @@ Plugin URI: https://wordpress.org/plugins/hueman-addons/
|
|
5 |
Tags: hueman theme, hueman, customizer, contextualizer
|
6 |
Requires at least: 4.7
|
7 |
Requires PHP: 5.4
|
8 |
-
Tested up to: 5.
|
9 |
-
Stable tag: 2.2.
|
10 |
License: GPLv3
|
11 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
12 |
|
@@ -37,10 +37,14 @@ The plugin has been designed specifically for the Hueman WordPress theme. Lightw
|
|
37 |
[Documentation here](http://docs.presscustomizr.com/article/242-hueman-addons-how-to-set-the-share-bar-options)
|
38 |
|
39 |
== Upgrade Notice ==
|
40 |
-
= 2.2.
|
41 |
-
|
42 |
|
43 |
== Changelog ==
|
|
|
|
|
|
|
|
|
44 |
= 2.2.5 April 5th, 2019 =
|
45 |
* added : a new checkbox style in the customizer
|
46 |
|
5 |
Tags: hueman theme, hueman, customizer, contextualizer
|
6 |
Requires at least: 4.7
|
7 |
Requires PHP: 5.4
|
8 |
+
Tested up to: 5.2
|
9 |
+
Stable tag: 2.2.6
|
10 |
License: GPLv3
|
11 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
12 |
|
37 |
[Documentation here](http://docs.presscustomizr.com/article/242-hueman-addons-how-to-set-the-share-bar-options)
|
38 |
|
39 |
== Upgrade Notice ==
|
40 |
+
= 2.2.6 =
|
41 |
+
Replaced broken sharre count by "+" sign. Removed Google Plus share button.
|
42 |
|
43 |
== Changelog ==
|
44 |
+
= 2.2.6 May 8th, 2019 =
|
45 |
+
* replaced broken sharre count by "+" sign
|
46 |
+
* removed deprecated Google Plus
|
47 |
+
|
48 |
= 2.2.5 April 5th, 2019 =
|
49 |
* added : a new checkbox style in the customizer
|
50 |
|