Commit 5c85d331 authored by lucha's avatar lucha Committed by samba

Removed privacy-share-buttons plugin

parent 9ba2327b
/*!
* jQuery Cookie Plugin
* https://github.com/carhartl/jquery-cookie
*
* Copyright 2011, Klaus Hartl
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/GPL-2.0
*/
(function($) {
$.cookie = function(key, value, options) {
// key and at least value given, set cookie...
if (arguments.length > 1 && (!/Object/.test(Object.prototype.toString.call(value)) || value === null || value === undefined)) {
options = $.extend({}, options);
if (value === null || value === undefined) {
options.expires = -1;
}
if (typeof options.expires === 'number') {
var days = options.expires, t = options.expires = new Date();
t.setDate(t.getDate() + days);
}
value = String(value);
return (document.cookie = [
encodeURIComponent(key), '=', options.raw ? value : encodeURIComponent(value),
options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
options.path ? '; path=' + options.path : '',
options.domain ? '; domain=' + options.domain : '',
options.secure ? '; secure' : ''
].join(''));
}
// key and possibly options given, get cookie...
options = value || {};
var decode = options.raw ? function(s) { return s; } : decodeURIComponent;
var pairs = document.cookie.split('; ');
for (var i = 0, pair; pair = pairs[i] && pairs[i].split('='); i++) {
if (decode(pair[0]) === key) return decode(pair[1] || ''); // IE saves cookies with empty string as "c; ", e.g. without "=" as opposed to EOMB, thus pair[1] may be undefined
}
return null;
};
})(jQuery);
/*!
* jQuery Cookie Plugin
* https://github.com/carhartl/jquery-cookie
*
* Copyright 2011, Klaus Hartl
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/GPL-2.0
*/
(function(a){a.cookie=function(g,f,k){if(arguments.length>1&&(!/Object/.test(Object.prototype.toString.call(f))||f===null||f===undefined)){k=a.extend({},k);if(f===null||f===undefined){k.expires=-1}if(typeof k.expires==="number"){var h=k.expires,j=k.expires=new Date();j.setDate(j.getDate()+h)}f=String(f);return(document.cookie=[encodeURIComponent(g),"=",k.raw?f:encodeURIComponent(f),k.expires?"; expires="+k.expires.toUTCString():"",k.path?"; path="+k.path:"",k.domain?"; domain="+k.domain:"",k.secure?"; secure":""].join(""))}k=f||{};var b=k.raw?function(i){return i}:decodeURIComponent;var c=document.cookie.split("; ");for(var e=0,d;d=c[e]&&c[e].split("=");e++){if(b(d[0])===g){return b(d[1]||"")}}return null}})(jQuery);
\ No newline at end of file
(function(a){a.widget("psb.baseButton",{options:{name:"",display_name:"",txt_info:"Click here to enable the button",dummy_img:"",javascript:"",js_loaded:false},_create:function(){var b=this;a('<span class="info">'+this.options.txt_info+"</span>").hide().addClass("dropdown").appendTo(this.element);a('<div class="dummy_btn off"></div>').append(this._dummy_image()).appendTo(this.element);this.element.click(function(c){b.switch_button()});this.element.hover(function(){var c=a(".info",b.element);if(!c.hasClass("info_off")){c.show()}},function(){a(".info",b.element).hide()})},_dummy_image:function(){return a("<img/>",{src:this.options.dummy_img,alt:this.options.display_name+" Dummy Image","class":"dummy_img"})},_javascript_is_loaded:function(){var d=Object.getPrototypeOf(this);var b=d.widgetBaseClass;var c=d.widgetName;this._trigger("javacript",b);if(a(":"+b).filter(function(e){return a(this)[c]("option","js_loaded")}).length>0){return true}return false},_append_javascript:function(){if(!this.options.javascript||this._javascript_is_loaded()){return}this.options.js_loaded=true;a.getScript(this.options.javascript)},_get_uri:function(){var b=this.element.parents(".post").find(".entry-title").find("a").attr("href");if(b){return b}var b=this.element.parents(".post").find(".title").find("a").attr("href");if(b){return b}else{return document.URL}},switch_button:function(){var b=this.element;var d=a(".info",b);var c=a(".dummy_btn",b);if(c.hasClass("off")){this._trigger("switch-on",b);d.addClass("info_off").hide();c.addClass("on").removeClass("off").html(this._real_btn());this._append_javascript()}}});a.widget("psb.twitterButton",a.psb.baseButton,{options:{name:"twitter",display_name:"Twitter",javascript:"//platform.twitter.com/widgets.js",reply_to:"",language:"",},_real_btn:function(){return a('<a href="https://twitter.com/share" class="twitter-share-button">Tweet</a>').attr("data-url",this._get_uri()).attr("counturl",this._get_uri()).attr("data-via",this.options.reply_to).attr("data-lang",this.options.language).attr("data-related",this.options.reply_to).attr("data-dnt",true)},});a.widget("psb.identicaButton",a.psb.baseButton,{options:{name:"identica",display_name:"Identi.ca",img:"",javascript:"",reply_to:"",language:"",result_limit:100,count:0,},countPost:function(){var b=this;a.get("https://identi.ca/api/search.json?q="+b._get_uri()+"&rpp=100",function(d){var c;if(d.results.length>=b.options.result_limit){c=b.options.result_limit+"+"}else{c=d.results.length}b.option("count",c)})},_button:function(c){var d=this.options.count;var b=c?"ui-icon-identica-dummy":"ui-icon-identica";return a('<button">identi.ca</button>').button({icons:{primary:b,},text:true,label:"identi.ca",disabled:false,})},_dummy_image:function(){var b=this;return this._button(true)},_real_btn:function(){var c=this;this.countPost();var b=a("<div></div>");b.append(this._button(false).click(function(d){c.share()}));a('<div class="count-o"><div>').append("<i></i><u></u>").append('<a id="count">...</a>').appendTo(b);return b.width(110)},share:function(){var i=document,h=window.getSelection,f=i.getSelection,m=i.selection,n=(h?h():(f)?f():(m?m.createRange().text:0)),c=i.location,h=encodeURIComponent,j=((h(n))?h(n):h(i.title));var b="";if(this.options.reply_to){b=" via @"+this.options.reply_to}var g="http://identi.ca/index.php?action=newnotice&status_textarea="+j+" "+this._get_uri()+b;window.open(g,"t","toolbar=0, resizable=0, scrollbars=0, status=0, width=785, height=480")},_setOption:function(b,c){switch(b){case"count":this.element.find("#count").attr("href","https://identi.ca/search/notice?q="+this._get_uri()).html(c);break}a.Widget.prototype._setOption.apply(this,arguments)},});a.widget("psb.facebookButton",a.psb.baseButton,{options:{name:"facebook",display_name:"Facebook",javascript:"//connect.facebook.net/en_US/all.js#xfbml=1",action:"recommend",js_id:"facebook-jssdk"},_real_btn:function(){return a('<div class="fb-like" data-send="false" data-layout="button_count" data-width="250" data-show-faces="false" data-action="recommend"></div>')},_append_javascript:function(){if(!this._javascript_is_loaded()){a("body").append('<div id="fb-root"></div>');this.options.js_loaded=true;a.getScript(this.options.javascript,function(){FB.init();FB.XFBML.parse()})}else{FB.XFBML.parse()}},});a.widget("psb.gplusButton",a.psb.baseButton,{options:{name:"gplus",display_name:"Google+",javascript:"//apis.google.com/js/plusone.js",},_real_btn:function(){return a('<div class="g-plusone" data-size="medium"></div>')}});a.widget("psb.socialShareButtons",{options:{info_link:"https://github.com/controesempio/Privacy-Share-Buttons",txt_help:'When you activate these buttons by clicking on them, some of your personal data will be transferred to third parties and can be stored by them. More informationf <em> <a href="https://github.com/controesempio/Privacy-Share-Buttons"> here </a></em>.',perma:"on",settings_perma:"Permanently enable data transfer for:",css_path:"",cookie_options:{path:"/",expires:365},services:{},},_create:function(){if(!this.options.services){return}this._append_css();this._attach()},_attach:function(){var e=a('<ul class="social_share_privacy_area" style="font-size: 0.6em"></ul>').appendTo(this.element);for(var d in this.options.services){if(!a.psb[d+"Button"]){continue}var b=a('<li class="'+d+'"><li');b[d+"Button"](a.extend(this.options,this.options.services[d])).appendTo(e)}var c=a("<li></li>");c.prependTo(e);this._info_area(c);this._options_area(c);c.buttonset()},_options_submenu:function(b){var c=this;var e=a("<div id='option-dropdown'></div>").addClass("dropdown").html(this.options.settings_perma+"<br/>");var h=function(k){var j=k.target.id;var i=j.substr(j.lastIndexOf("_")+1,j.length);var m="privacyShareButtons_"+i;var l=e.find("#"+k.target.id);if(l.is(":checked")){a.cookie(m,"perma_on",c.options.cookie_options);e.find("label[for="+j+"]").addClass("checked")}else{a.cookie(m,null,c.options.cookie_options);e.find("label[for="+j+"]").removeClass("checked")}};for(var d in this.options.services){var g=this.options.services[d];var f=a("<input type='checkbox' />").attr("id","perma_status_"+d).click(h);if(a.cookie("privacyShareButtons_"+d)=="perma_on"){f.attr("checked",true);this.element.find("."+d).click()}f.appendTo(e);a("<label></label><br/>").attr("for","perma_status_"+d).html(g.display_name).appendTo(e)}e.hide().appendTo(b.parent())},_options_area:function(b){if(this.options.perma){a("<button>option</button>").button({icons:{primary:"ui-icon-wrench",secondary:"ui-icon-triangle-1-s"},text:false}).click(function(){b.parent().find("#option-dropdown").toggle(100)}).appendTo(b);this._options_submenu(b)}},_info_area:function(b){var c=a("<div></div>").addClass("psb_info").addClass("dropdown").html("<p>"+this.options.txt_help+"</p>").hide().mouseleave(function(){a(this).hide()}).appendTo(b.parent());a("<button>info</button>").button({icons:{primary:"ui-icon-info"},text:false}).click(function(){c.toggle()}).appendTo(b)},_append_css:function(){if(this.options.css_path){if(document.createStyleSheet){document.createStyleSheet(options.css_path)}else{a("head").append('<link rel="stylesheet" type="text/css" href="'+options.css_path+'" />')}}},});a(document).ready(a(".social_share_privacy").each(function(){a(this).socialShareButtons(socialshareprivacy_settings)}))})(jQuery);
\ No newline at end of file
jQuery.extend(!0,jQuery.fn.socialSharePrivacy.settings,{services:{buffer:{txt_info:"Zwei Klicks f&uuml;r mehr Datenschutz: Erst wenn Sie hier klicken, wird der Button aktiv und Sie k&ouml;nnen Ihre Empfehlung an Buffer senden. Schon beim Aktivieren werden Daten an Dritte &uuml;bertragen &ndash; siehe <em>i</em>.",txt_off:"nicht mit Buffer verbunden",txt_on:"mit Buffer verbunden"},disqus:{txt_info:"Zwei Klicks f&uuml;r mehr Datenschutz: Erst wenn Sie hier klicken, wird der Button aktiv und Sie k&ouml;nnen Ihre Empfehlung an Disqus senden. Schon beim Aktivieren werden Daten an Dritte &uuml;bertragen &ndash; siehe <em>i</em>.",txt_off:"nicht mit Disqus verbunden",txt_on:"mit Disqus verbunden"},facebook:{dummy_line_img:"images/de/dummy_facebook.png",dummy_box_img:"images/de/dummy_box_facebook.png",txt_info:"Zwei Klicks f&uuml;r mehr Datenschutz: Erst wenn Sie hier klicken, wird der Button aktiv und Sie k&ouml;nnen Ihre Empfehlung an Facebook senden. Schon beim Aktivieren werden Daten an Dritte &uuml;bertragen &ndash; siehe <em>i</em>.",txt_off:"nicht mit Facebook verbunden",txt_on:"mit Facebook verbunden"},fbshare:{txt_info:"Auf Facebook mit anderen Leuten teilen."},gplus:{txt_info:"Zwei Klicks f&uuml;r mehr Datenschutz: Erst wenn Sie hier klicken, wird der Button aktiv und Sie k&ouml;nnen Ihre Empfehlung an Google+ senden. Schon beim Aktivieren werden Daten an Dritte &uuml;bertragen &ndash; siehe <em>i</em>.",txt_off:"nicht mit Google+ verbunden",txt_on:"mit Google+ verbunden"},mail:{txt_info:"Per E-Mail an einen Freund senden.",txt_button:"Sende E-Mail"},pinterest:{txt_info:"Zwei Klicks f&uuml;r mehr Datenschutz: Erst wenn Sie hier klicken, wird der Button aktiv und Sie k&ouml;nnen Ihre Empfehlung an Pinterest senden. Schon beim Aktivieren werden Daten an Dritte &uuml;bertragen &ndash; siehe <em>i</em>.",txt_off:"nicht mit Pinterest verbunden",txt_on:"mit Pinterest verbunden"},twitter:{txt_info:"Zwei Klicks f&uuml;r mehr Datenschutz: Erst wenn Sie hier klicken, wird der Button aktiv und Sie k&ouml;nnen Ihre Empfehlung an Twitter senden. Schon beim Aktivieren werden Daten an Dritte &uuml;bertragen &ndash; siehe <em>i</em>.",txt_off:"nicht mit Twitter verbunden",txt_on:"mit Twitter verbunden"}},info_link:"http://panzi.github.io/SocialSharePrivacy/index.de.html",txt_settings:"Einstellungen",txt_help:"Wenn Sie diese Felder durch einen Klick aktivieren, werden Informationen an Facebook, Twitter oder Google etc. in die USA &uuml;bertragen und unter Umst&auml;nden auch dort gespeichert. N&auml;heres erfahren Sie durch einen Klick auf das <em>i</em>.",settings_perma:"Dauerhaft aktivieren und Daten&uuml;ber&shy;tragung zustimmen:",language:"de"});
\ No newline at end of file
jQuery.extend(!0,jQuery.fn.socialSharePrivacy.settings,{services:{buffer:{txt_info:"Dos Clics para mayor privacidad: Al dar clic, se activar&aacute; el bot&oacute;n y podr&aacute; hacer su recomendaci&oacute;n. Una vez activado, datos ser&aacute;n enviados a Buffer. Para mayor informaci&oacute;n ver el icono <em>i</em>",txt_off:"sin conexi&oacute;n a Buffer",txt_on:"conectado a Buffer"},disqus:{txt_info:"Dos Clics para mayor privacidad: Al dar clic, se activar&aacute; el bot&oacute;n. Una vez activado, datos ser&aacute;n enviados a Disqus. Para mayor informaci&oacute;n ver el icono <em>i</em>",txt_off:"sin conexi&oacute;n a Disqus",txt_on:"conectado a Disqus"},facebook:{dummy_line_img:"images/es/dummy_facebook.png",dummy_box_img:"images/es/dummy_box_facebook.png",txt_info:"Dos Clics para mayor privacidad: Al dar clic, se activar&aacute; el bot&oacute;n de Facebook. Una vez activado, datos ser&aacute;n enviados a Facebook. Para mayor informaci&oacute;n ver el icono <em>i</em>",txt_off:"sin conexi&oacute;n a Facebook",txt_on:"conectado a Facebook"},gplus:{txt_info:"Dos Clics para mayor privacidad: Al dar clic, se activar&aacute; el bot&oacute;n de Google+. Una vez activado, datos ser&aacute;n enviados a Google+. Para mayor informaci&oacute;n ver el icono <em>i</em>",txt_off:"sin conexi&oacute;n a Google+",txt_on:"conectado a Google+"},mail:{txt_info:"Enviar por Email a un amigo",txt_button:"Enviar E-Mail"},pinterest:{txt_info:"Dos Clics para mayor privacidad: Al dar clic, se activar&aacute; el bot&oacute;n de Pinterest. Una vez activado, datos ser&aacute;n enviados a Pinterest. Para mayor informaci&oacute;n ver el icono <em>i</em>",txt_off:"sin conexi&oacute;n a Pinterest",txt_on:"conectado a Pinterest"},twitter:{txt_info:"Dos Clics para mayor privacidad: Al dar clic, se activar&aacute; el bot&oacute;n de Twitter. Una vez activado, datos ser&aacute;n enviados a Twitter. Para mayor informaci&oacute;n ver el icono <em>i</em>",txt_off:"sin conexi&oacute;n a Twitter",txt_on:"conectado a Twitter"}},info_link:"http://panzi.github.io/SocialSharePrivacy/index.html",txt_settings:"Ajustes",txt_help:"Al dar Clic en alguno de estos campos o al activar algún bot&oacute;n, informaci&oacute;n ser&aacute; enviada a Facebook, Twitter, Google+, etc y probablemente ser&aacute; guardada en alg&uacute;n servidor en estados unidos. Para mayor informaci&oacute;n (en Ingl&eacute;s) haga clic en el bot&oacute;n <em>i</em>.",settings_perma:"Activar permanentemente y aceptar el envio de datos a terceros:",language:"es"});
\ No newline at end of file
jQuery.extend(!0,jQuery.fn.socialSharePrivacy.settings,{services:{buffer:{txt_info:"Deux clics pour une protection de donn&eacute;es am&eacute;lior&eacute;e: Ce n'est qu'apr&egrave;s avoir cliqu&eacute; ici que le bouton sera actif et vous pourrez envoyer votre recommandation &agrave; Buffer. D&eacute;j&agrave; lors de l'activation des donn&eacute;es seront transmis &agrave; des tiers &ndash; voir <em>i</em>.",txt_off:"pas connect&eacute; &agrave; Buffer",txt_on:"connect&eacute; &agrave; Buffer"},disqus:{txt_info:"Deux clics pour une protection de donn&eacute;es am&eacute;lior&eacute;e: Ce n'est qu'apr&egrave;s avoir cliqu&eacute; ici que le bouton sera actif et vous pourrez envoyer votre recommandation &agrave; Disqus. D&eacute;j&agrave; lors de l'activation des donn&eacute;es seront transmis &agrave; des tiers &ndash; voir <em>i</em>.",txt_off:"pas connect&eacute; &agrave; Disqus",txt_on:"connect&eacute; &agrave; Disqus"},facebook:{dummy_line_img:"images/fr/dummy_facebook.png",dummy_box_img:"images/fr/dummy_box_facebook.png",txt_info:"Deux clics pour une protection de donn&eacute;es am&eacute;lior&eacute;e: Ce n'est qu'apr&egrave;s avoir cliqu&eacute; ici que le bouton sera actif et vous pourrez envoyer votre recommandation &agrave; Facebook. D&eacute;j&agrave; lors de l'activation des donn&eacute;es seront transmis &agrave; des tiers &ndash; voir <em>i</em>.",txt_off:"pas connect&eacute; &agrave; Facebook",txt_on:"connect&eacute; &agrave; Facebook"},gplus:{txt_info:"Deux clics pour une protection de donn&eacute;es am&eacute;lior&eacute;e: Ce n'est qu'apr&egrave;s avoir cliqu&eacute; ici que le bouton sera actif et vous pourrez envoyer votre recommandation &agrave; Google+. D&eacute;j&agrave; lors de l'activation des donn&eacute;es seront transmis &agrave; des tiers &ndash; voir <em>i</em>.",txt_off:"pas connect&eacute; &agrave; Google+",txt_on:"connect&eacute; &agrave; Google+"},mail:{txt_info:"Envoyer par courrier &eacute;lectronique &agrave; un ami.",txt_button:"Envoyer courriel"},pinterest:{txt_info:"Deux clics pour une protection de donn&eacute;es am&eacute;lior&eacute;e: Ce n'est qu'apr&egrave;s avoir cliqu&eacute; ici que le bouton sera actif et vous pourrez envoyer votre recommandation &agrave; Pinterest. D&eacute;j&agrave; lors de l'activation des donn&eacute;es seront transmis &agrave; des tiers &ndash; voir <em>i</em>.",txt_off:"pas connect&eacute; &agrave; Pinterest",txt_on:"connect&eacute; &agrave; Pinterest"},twitter:{dummy_line_img:"images/fr/dummy_twitter.png",txt_info:"Deux clics pour une protection de donn&eacute;es am&eacute;lior&eacute;e: Ce n'est qu'apr&egrave;s avoir cliqu&eacute; ici que le bouton sera actif et vous pourrez envoyer votre recommandation &agrave; Twitter. D&eacute;j&agrave; lors de l'activation des donn&eacute;es seront transmis &agrave; des tiers &ndash; voir <em>i</em>.",txt_off:"pas connect&eacute; &agrave; Twitter",txt_on:"connect&eacute; &agrave; Twitter"}},txt_settings:"Param&eacute;tres",txt_help:"D&eacute;s que vous activez ces champs en cliquant dessus, des informations seront transf&eacute;r&eacute;s &agrave; Facebook, Twitter, Google, etc aux &Eacute;tats-Unis et peuvent y &ecirc;tre stock&eacute;s. Pour plus de d&eacute;tails, cliquez sur le <em>i</em>.",settings_perma:"Activer en permanence et accepter la transmission de donn&eacute;es:",language:"fr"});
\ No newline at end of file
jQuery.extend(!0,jQuery.fn.socialSharePrivacy.settings,{services:{buffer:{txt_info:"Ter verduidelijking: De Buffer knop wordt hiermee geactiveerd. Hiermee wordt data naar Buffer verzonden – Klik voor meer informatie op <em>i</em>.",txt_off:"niet verbonden met Buffer",txt_on:"verbonden met Buffer"},disqus:{txt_info:"Ter verduidelijking: De Disqus knop wordt hiermee geactiveerd. Hiermee wordt data naar Disqus verzonden – Klik voor meer informatie op <em>i</em>.",txt_off:"niet verbonden met Disqus",txt_on:"verbonden met Disqus"},facebook:{dummy_line_img:"images/nl/dummy_facebook.png",txt_info:"Ter verduidelijking: De Facebook knop wordt hiermee geactiveerd. Hiermee wordt data naar Facebook verzonden – Klik voor meer informatie op <em>i</em>.",txt_off:"niet verbonden met Facebook",txt_on:"verbonden met Facebook"},gplus:{txt_info:"Ter verduidelijking: De Google+ knop wordt hiermee geactiveerd. Hiermee wordt data naar Google+ verzonden – Klik voor meer informatie op <em>i</em>.",txt_off:"niet verbonden met Google+",txt_on:"verbonden met Google+"},mail:{txt_info:"Mail dit naar een vriend",txt_button:"Verzend e-mail"},pinterest:{txt_info:"Ter verduidelijking: De Pinterest knop wordt hiermee geactiveerd. Hiermee wordt data naar Pinterest verzonden – Klik voor meer informatie op <em>i</em>.",txt_off:"niet verbonden met Pinterest",txt_on:"verbonden met Pinterest"},twitter:{dummy_line_img:"images/nl/dummy_twitter.png",txt_info:"Ter verduidelijking: De Twitter knop wordt hiermee geactiveerd. Hiermee wordt data naar Twitter verzonden – Klik voor meer informatie op <em>i</em>.",txt_off:"niet verbonden met Twitter",txt_on:"verbonden met Twitter"}},txt_settings:"Instellingen",txt_help:"Als je een optie selecteert, wordt er data naar een derde partij (Facebook, Twitter, Google, ...) verzonden en daar opgeslagen. Klik voor meer informatie op <em>i</em>.",settings_perma:"Activeer al je social media accounts:",language:"nl"});
\ No newline at end of file
jQuery.extend(!0,jQuery.fn.socialSharePrivacy.settings,{services:{buffer:{txt_info:"Dwa kliknięcia &ndash; więcej prywatności: Kliknięcie tutaj uruchomi przycisk Buffera. Samo uchuchomienie przycisku powoduje wysłanie Twoich danych do Buffera. Kliknij w <em>i</em>, aby dowiedzieć się więcej.",txt_off:"brak połączenia z Bufferem",txt_on:"połączono z Bufferem"},disqus:{txt_info:"Dwa kliknięcia &ndash; więcej prywatności: Kliknięcie tutaj uruchomi przycisk Disqus. Samo uchuchomienie przycisku powoduje wysłanie Twoich danych do Disqusa. Kliknij w <em>i</em>, aby dowiedzieć się więcej.",txt_off:"brak połączenia z Disqusem",txt_on:"połączono z Disqusem"},facebook:{txt_info:'Dwa kliknięcia &ndash; więcej prywatności: Kliknięcie tutaj uruchomi przycisk "Lubię to". Samo uchuchomienie przycisku powoduje wysłanie Twoich danych do Facebooka. Kliknij w <em>i</em>, aby dowiedzieć się więcej.',txt_off:"brak połączenia z Facebookiem",txt_on:"połączono z Facebookiem"},gplus:{txt_info:"Dwa kliknięcia &ndash; więcej prywatności: Kliknięcie tutaj uruchomi przycisk Google+. Samo uchuchomienie przycisku powoduje wysłanie Twoich danych do Google+. Kliknij w <em>i</em>, aby dowiedzieć się więcej.",txt_off:"brak połączenia z Google+",txt_on:"połączono z Google+"},mail:{txt_info:"Wyślij tę stronę znajomemu przez e-mail.",txt_button:"Wyślij e-mail"},pinterest:{txt_info:'Dwa kliknięcia &ndash; więcej prywatności: Kliknięcie tutaj uruchomi przycisk "Pin it!". Samo uchuchomienie przycisku powoduje wysłanie Twoich danych do Pinterestu. Kliknij w <em>i</em>, aby dowiedzieć się więcej.',txt_off:"brak połączenia z Pinterestem",txt_on:"połączono z Pinterestem"},twitter:{txt_info:'Dwa kliknięcia &ndash; więcej prywatności: Kliknięcie tutaj uruchomi przycisk "Tweetnij". Samo uchuchomienie przycisku powoduje wysłanie Twoich danych do Twittera. Kliknij w <em>i</em>, aby dowiedzieć się więcej.',txt_off:"brak połączenia z Twitterem",txt_on:"połączono z Twitterem"}},info_link:"http://panzi.github.io/SocialSharePrivacy/",txt_settings:"Ustawienia",txt_help:"Klinięcie w poszczególne przyciski aktywuje daną usługę. Oznacza to wysłanie Twoich danych na serwery Facebooka, Google'a, Twittera, itp., oraz ich archiwizację. Kliknij <em>i</em>, aby dowiedzieć się więcej.",settings_perma:"Aktywuj na stałe następujące przyciski:",language:"pl"});
\ No newline at end of file
jQuery.extend(!0,jQuery.fn.socialSharePrivacy.settings,{services:{buffer:{txt_info:"Dois cliques para mais privacidade: o bot&atilde;o do Buffer ser&aacute; ativado quando voc&ecirc; clicar aqui. Ativar este bot&atilde;o enviar&aacute; dados ao Buffer &ndash; veja <em>i</em>.",txt_off:"n&atilde;o conectado ao Buffer",txt_on:"conectado ao Buffer"},disqus:{txt_info:"Dois cliques para mais privacidade: o bot&atilde;o do Disqus ser&aacute; ativado quando voc&ecirc; clicar aqui. Ativar este bot&atilde;o enviar&aacute; dados ao Disqus &ndash; veja <em>i</em>.",txt_off:"n&atilde;o conectado ao Disqus",txt_on:"conectado ao Disqus"},facebook:{dummy_line_img:"images/pt/dummy_facebook.png",dummy_box_img:"images/pt/dummy_box_facebook.png",txt_info:"Dois cliques para mais privacidade: o bot&atilde;o do Facebook ser&aacute; ativado quando voc&ecirc; clicar aqui. Ativar este bot&atilde;o enviar&aacute; dados ao Facebook &ndash; veja <em>i</em>.",txt_off:"n&atilde;o conectado ao Facebook",txt_on:"conectado ao Facebook"},gplus:{txt_info:"Dois cliques para mais privacidade: o bot&atilde;o do Google+ ser&aacute; ativado quando voc&ecirc; clicar aqui. Ativar este bot&atilde;o enviar&aacute; dados ao Google &ndash; veja <em>i</em>.",txt_off:"n&atilde;o conectado ao Google+",txt_on:"conectado ao Google+"},mail:{txt_info:"Enviar a um amigo por e-mail.",txt_button:"Enviar e-mail"},pinterest:{txt_info:"Dois cliques para mais privacidade: o bot&atilde;o do Pinterest ser&aacute; ativado quando voc&ecirc; clicar aqui. Ativar este bot&atilde;o enviar&aacute; dados ao Pinterest &ndash; veja <em>i</em>.",txt_off:"n&atilde;o conectado ao Pinterest",txt_on:"conectado ao Pinterest"},twitter:{dummy_line_img:"images/pt/dummy_twitter.png",dummy_box_img:"images/pt/dummy_box_twitter.png",txt_info:"Dois cliques para mais privacidade: o bot&atilde;o do Twitter ser&aacute; ativado quando voc&ecirc; clicar aqui. Ativar este bot&atilde;o enviar&aacute; dados ao Twitter &ndash; veja <em>i</em>.",txt_off:"n&atilde;o conectado ao Twitter",txt_on:"conectado ao Twitter"}},txt_settings:"Configura&ccedil;&otilde;es",txt_help:"Se voc&ecirc; ativar algum destes campos atrav&eacute;s de um clique, dados ser&atilde;o enviados a terceiros (Facebook, Twitter, Google, etc.) e armazenados por eles. Para mais detalhes, clique em <em>i</em>.",settings_perma:"Habilitar os seguintes bot&otilde;es permanentemente:",language:"pt"});
\ No newline at end of file
jQuery.extend(!0,jQuery.fn.socialSharePrivacy.settings,{services:{buffer:{txt_info:"Два клика для большей конфедициальности: Кнопка Buffer активируется если клините по ней мышкой. Активация кнопки отправляет и хранит данные на серверах Buffer &ndash; для подробной информации нажмите <em>i</em>.",txt_off:"Не соединяться с Buffer",txt_on:"Соединиться с Buffer"},disqus:{txt_info:"Два клика для большей конфедициальности: Кнопка Disqus активируется если клините по ней мышкой. Активация кнопки отправляет и хранит данные на серверах Disqus &ndash; для подробной информации нажмите <em>i</em>.",txt_off:"Не соединяться с Disqus",txt_on:"Соединиться с Disqus"},facebook:{dummy_line_img:"images/ru/dummy_facebook.png",dummy_box_img:"images/ru/dummy_box_facebook.png",txt_info:"Два клика для большей конфедициальности: Кнопка Facebook активируется если клините по ней мышкой. Активация кнопки отправляет и хранит данные на серверах Facebook &ndash; для подробной информации нажмите <em>i</em>.",txt_off:"Не соединяться с Facebook",txt_on:"Соединиться с Facebook"},gplus:{txt_info:"Два клика для большей конфедициальности: Кнопка Google+ активируется если клините по ней мышкой. Активация кнопки отправляет и хранит данные на серверах Google &ndash; для подробной информации нажмите <em>i</em>.",txt_off:"Не соединяться с Google+",txt_on:"Соединиться с Google+"},mail:{txt_info:"Отправить по электронной почте другу.",txt_button:"Отправить E-Mail"},pinterest:{txt_info:"Два клика для большей конфедициальности: Кнопка Pinterest активируется если клините по ней мышкой. Активация кнопки отправляет и хранит данные на серверах Pinterest &ndash; для подробной информации нажмите <em>i</em>.",txt_off:"Не соединяться с Pinterest",txt_on:"Соединиться с Pinterest"},twitter:{txt_info:"Два клика для большей конфедициальности: Кнопка Tweet активируется если клините по ней мышкой. Активация кнопки отправляет и хранит данные на серверах Twitter &ndash; для подробной информации нажмите <em>i</em>.",txt_off:"Не соединяться с Twitter",txt_on:"Соединиться с Twitter"}},info_link:"http://www.m0fx64.name/socialshareprivacy",txt_settings:"Настройки",txt_help:"Если вы активируете этих поля с помощью мыши, данные будут передаваться третьей стороне (Facebook, Twitter, Google, ...) и хранится там. Для более подробной информации нажмите <em>i</em>.",settings_perma:"Включить постоянно:",language:"ru"});
\ No newline at end of file
jQuery(document).ready(function () {
jQuery('.share').socialSharePrivacy();
});
msgid ""
msgstr ""
"Project-Id-Version: Privacy Share Buttons\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-02-24 14:31+0100\n"
"PO-Revision-Date: 2012-02-24 14:53+0100\n"
"Last-Translator: lucha <lucha@paranoici.org>\n"
"Language-Team: Autistici/Inventati <lucha@paranoici.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Poedit-KeywordsList: __;gettext;gettext_noop;_e\n"
"X-Poedit-Basepath: /Applications/MAMP/htdocs/wordpress/wp-content/plugins/privacy-share-buttons/\n"
"X-Poedit-Language: English\n"
"X-Poedit-SearchPath-0: .\n"
#: privacy-share-buttons.php:47
#: privacy-share-buttons.php:56
#: privacy-share-buttons.php:65
#: privacy-share-buttons.php:71
msgid "Click here to enable the button"
msgstr "Premi qui per attivare il bottone"
#: privacy-share-buttons.php:86
msgid "When you activate these buttons by clicking on them, some of your personal data will be transferred to third parties and can be stored by them. For more information click on the <em> i </em>"
msgstr "Quando attivi i bottoni cliccandoci sopra, alcune tue informazioni personali verranno inviate a terze parti, che potrebbero conservale. Per più informazioni clicca sulla <em> i </em>"
#: privacy-share-buttons.php:89
msgid "Permanently enable data transfer for:"
msgstr "Abilita permanentemente i bottoni per:"
#: privacy-share-buttons.php:195
#: privacy-share-buttons.php:196
msgid "Privacy Share Buttons"
msgstr "Privacy Share Buttons"
#: privacy-share-buttons.php:207
msgid "Enable Social Share Buttons"
msgstr "Abilita i bottoni"
#: privacy-share-buttons.php:214
msgid "Display settings"
msgstr "Impostazioni di visualizzazione"
#: privacy-share-buttons.php:219
msgid "Display on the Index page"
msgstr "Mostra sulla pagina principale"
#: privacy-share-buttons.php:226
msgid "Display on Pages"
msgstr "Mostra sulla pagine statiche"
#: privacy-share-buttons.php:232
msgid "Position"
msgstr "Posizionamento"
#: privacy-share-buttons.php:239
msgid "Specific Service settings"
msgstr "Impostazioni specifiche"
#: privacy-share-buttons.php:255
#, php-format
msgid "%s username"
msgstr "Nome utente %s"
#: privacy-share-buttons.php:268
#: privacy-share-buttons.php:293
msgid "Enable"
msgstr "Abilita"
#: privacy-share-buttons.php:274
msgid "Settings specific to some Social Share services."
msgstr "Impostazioni specifiche di alcuni servizi di condivisione"
#: privacy-share-buttons.php:278
msgid "By default buttons will be showed on single Posts"
msgstr "Di default, i bottoni verranno mostrati sui singoli post"
#: privacy-share-buttons.php:304
msgid "After the post"
msgstr "Dopo il post"
#: privacy-share-buttons.php:305
msgid "Before the post"
msgstr "Prima del post"
#: privacy-share-buttons.php:306
msgid "Manual (shortcode)"
msgstr "Manuale (shortcode)"
#: privacy-share-buttons.php:313
msgid "If you choose \"Manual (Shortcode)\", you can use the shortcode <strong>[share_buttons]</strong> inside your articles"
msgstr "Se scegli \"Manuale (shortcode)\", potrai usare lo shortcode <strong>[share_buttons]</strong> dentro i tuoi articoli/post/pagine per posizionare i bottoni"
#: privacy-share-buttons.php:329
msgid "Settings saved."
msgstr "Impostazioni salvate"
<?php
/*
Plugin Name: Privacy Share Buttons
Plugin URI: https://github.com/controesempio/Privacy-Share-Buttons
Description: Enables the well-known "Share this" buttons for different social networks, but with respect toward's your user privacy and data.
Version: 0.3
Author: lucha <lucha@paranoici.org>
Author URI: https://github.com/controesempio/
Tags: privacy, social, twitter, facebook, googleplus
License: GPL2
Copyright (C) 2012 lucha <lucha@paranoici.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class ShareButton {
function ShareButton() {
$this->__construct(func_get_args());
}
function __construct() {
$this->url = plugins_url(basename(dirname(__FILE__)));
$this->css = 'css/jquery.socialshareprivacy.min.css';
$this->js = $this->url .'/js/jquery.socialshareprivacy.min.js';
$this->jquery_cookie = $this->url .'/js/jquery.cookie.min.js';
$this->global_options = array(
'path_prefix' => $this->url . '/',
'css_path' => $this->css,
);
$this->_all_services = array('buffer',
'disqus','mail',
'facebook', 'fbshare',
'gplus','pinterest',
'twitter');
$this->_services_options = array(
'buffer' => array('username' => 'via'),
'delicious' => array('username' => 'shortname'),
'flattr' => array('username' => 'uid'),
'twitter' => array('username' => 'via'),
);
$this->settings = new ShareButtonSettings($this->_all_services, $this->_services_options);
$this->settings = $this->settings->settings;
$this->content_class = 'privacy_share_buttons_post';
add_action( 'init', array( &$this, 'init' ) );
}
function init() {
$activate = false;
foreach ($this->_all_services as $service)
if (array_key_exists($service.'-status',$this->settings) and $this->settings[$service.'-status']){
$activate = true;
break;
}
if (!$activate)
return;
add_action('wp_enqueue_scripts',array(&$this, 'enqueue_scripts'));
add_shortcode('share_buttons',array(&$this,'short_code'));
add_filter('the_content', array(&$this, 'filter_content'), 8);
}
function enqueue_scripts() {
wp_register_script('jquery-cookie',$this->jquery_cookie,array('jquery'),false,true);
wp_enqueue_script('social-share-privacy',$this->js,array('jquery','jquery-cookie'),false,true);
wp_enqueue_script('ssp', $this->url . '/js/ssp-onload.js',null,false,true);
}
function short_code($atts) {
if ($this->settings['position'] == 'manual')
return $this->generate_html();
return '';
}
function filter_content($content){
if (array_key_exists('index',$this->settings) and !$this->settings['index'] and is_home())
return $content;
if (array_key_exists('pages',$this->settings) and !$this->settings['pages'] and is_page())
return $content;
$newcontent = $this->generate_html();
$position = $this->settings['position'];
if ($position == 'before'){
return $newcontent . $content;
} else if ($position == 'after') {
return $content . $newcontent;
}
return $content;
}
function generate_html() {
global $post;
return "<div class='share' data-options='" . $this->jsconf() . "'></div>";
}
function jsconf(){
$conf = $this->global_options;
foreach ($this->_all_services as $service)
if (array_key_exists($service.'-status',$this->settings) and ($this->settings[$service.'-status'] == 1)){
$conf['services'][$service]['status'] = true;
if (array_key_exists($service,$this->_services_options))
foreach ($this->_services_options[$service] as $option => $name)
$conf['services'][$service][$name] = $this->settings[$service.'-'.$option];
}
else
$conf['services'][$service]['status'] = false;
return json_encode($conf);
}
}
class ShareButtonSettings {
function ShareButtonSettings() {
$this->__construct(func_get_args());
}
function __construct($services, $options) {
$this->services = $services;
$this->services_options = $options;
$this->settings_section = 'share-button-settings';
$this->display_section = $this->settings_section . '-display';
$this->services_section = $this->settings_section . '-services';
$this->settings = get_option($this->settings_section);
add_action('admin_init', array( &$this, 'admin_init'));
add_action('admin_menu', array( &$this, 'admin_menu'));
}
function admin_menu() {
add_options_page(
__('Privacy Share Buttons','privacy-share-buttons'),
__('Privacy Share Buttons','privacy-share-buttons'),
'manage_options',
$this->settings_section,
array( &$this, 'submenu_page')
);
}
function admin_init() {
register_setting($this->settings_section, $this->settings_section, array(&$this, 'settings_validate'));
add_settings_section($this->settings_section,
__('Enable Social Share Buttons','privacy-share-buttons'), array(&$this, 'settings_section'), $this->settings_section);
foreach ($this->services as $service){
$this->add_default_fields($service);
if (array_key_exists($service,$this->services_options))
if (array_key_exists('username',$this->services_options[$service]))
$this->username_settings($service);
}
add_settings_section($this->display_section,
__('Display settings','privacy-share-buttons'),
array(&$this, 'display_section'),
$this->settings_section);
add_settings_field($this->display_section."[index]",
__('Display on the Index page','privacy-share-buttons'),
array(&$this, 'checkbox'),
$this->settings_section, $this->display_section,
array('id' => 'index'));
add_settings_field($this->display_section."[pages]",
__('Display on Pages','privacy-share-buttons'),
array(&$this, 'checkbox'),
$this->settings_section, $this->display_section,
array('id' => 'pages'));
add_settings_field($this->display_section."[position]",
__('Position','privacy-share-buttons'),
array(&$this, 'position_field'),
$this->settings_section, $this->display_section);
}
function add_default_fields($serviceid) {
$display_id = "{$serviceid}-status";
$info['id'] = $display_id;
$info['label'] = __('Enable','privacy-share-buttons');
$info['name'] = $serviceid;
add_settings_field($this->settings_section."[$display_id]" , $info['name'], array(&$this, 'checkbox'), $this->settings_section, $this->settings_section, $info);
}
function username_settings($service) {
$userfield = $this->services_section."[$service-username]";
add_settings_field($userfield, sprintf(__("%s username",'privacy-share-buttons'),$service),
array(&$this, 'username_field'), $this->settings_section, $this->settings_section,$service.'-username');
}
function username_field($id) {
$field = $this->settings_section."[$id]";
$value = '';
if (array_key_exists($id,$this->settings))
$value = $this->settings[$id];
echo "@<input type='text' name='{$field}' value='{$value}' size='20' />";
}
function display_section() {
_e("By default buttons will be showed on single Posts",'privacy-share-buttons');
}
function settings_section() {
_e("Do not enable too many of them. They will look ugly all together.");
}
function checkbox($info) {
$id = $info['id'];
$field = $this->settings_section."[$id]";
$value = '0';
if (array_key_exists($id, $this->settings))
$value = $this->settings[$id];
$checked = checked( '1', $value, false);
echo "<input type='checkbox' name='{$field}' value='1' $checked />";
echo "<label for='{$field}'>";
echo __('Enable','privacy-share-buttons');
echo "</label>";
}
function position_field() {
$field = "{$this->settings_section}[position]";
$value = $this->settings['position'];
echo "<div><select name='{$field}'>";
$options = array(
'after' => __("After the post",'privacy-share-buttons'),
'before' => __("Before the post",'privacy-share-buttons'),
'manual' => __("Manual (shortcode)",'privacy-share-buttons')
);
foreach ($options as $key => $label) {
$selected = selected($value, $key, false);
echo "<option value='{$key}' $selected>$label</option>";
}
echo "</select></div>";
echo "<div> <p>"._e('If you choose "Manual (Shortcode)", you can use the shortcode <strong>[share_buttons]</strong> inside your articles','privacy-share-buttons')."</p></div>";
}
function settings_validate($input) {
return $input;
}
function submenu_page() {
?>
<div class="wrap">
<div id="icon-themes" class="icon32"><br></div>
<h2>Privacy Share Button Settings</h2>
<?php
if ( !empty( $_POST['action'] ) && 'update' == $_POST['action'] ) {
update_option( $this->settings_section, $_POST[$this->settings_section] );
$this->settings = get_option( $this->settings_section );
echo '<div id="message" class="updated fade"><p><strong>'.__('Settings saved.','privacy-share-buttons').'</strong></p></div>';
}
?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING']; ?>">
<?php settings_fields( $this->settings_section ); ?>
<?php do_settings_sections( $this->settings_section ); ?>
<p class="submit">
<input type="submit" class="button-primary" value="Save Changes" />
</p>
</form>
<?php