Commit 68187f26 authored by lucha's avatar lucha Committed by agata

added Privacy Share Buttons plugin

parent a718d2e7
.social_share_privacy {clear:both; margin:0 auto; width:100%; margin-bottom:15px;}
.social_share_privacy_area {clear:both; margin:20px 0 !important; padding:0; height:25px; width:100%;}
.social_share_privacy_area li {margin:0 !important; padding:0; height:20px; float:left; list-style-type:none !important; list-style:none !important; background:none !important;}
.social_share_privacy_area li .dummy_btn {float:left; margin-left:10px; cursor:pointer; padding:0;}
/* Facebook begin */
.social_share_privacy_area .facebook {width: 180px;}
/* Facebook end */
/* Identica begin */
.social_share_privacy_area .identica {width:148px;}
/* identica end */
/* Twitter begin */
.social_share_privacy_area .twitter {width:148px;}
.social_share_privacy_area li div.tweet {width:115px;}
/* Twitter end */
/* Google+ begin */
.social_share_privacy_area .gplus {width:123px;}
.social_share_privacy_area li div.gplusone {width:90px;}
/* Google+ end */
/* Flattr begin */
.social_share_privacy_area .flattr {width:148px;}
.social_share_privacy_area li div.flattrbtn {width:115px;}
/* Flattr end */
/* Switch begin */
.social_share_privacy_area li .switch {display: inline-block; text-indent:-9999em; background:transparent url(../images/socialshareprivacy_on_off.png) no-repeat 0 0 scroll; width:23px; height:12px; overflow:hidden; float:left; margin:4px 0 0; cursor:pointer;}
.social_share_privacy_area li .switch.on {background-position:0 -12px;}
/* Switch end */
/* Tooltips begin */
.social_share_privacy_area li.help_info {position:relative; padding:0 !important; margin:10px 0 !important;}
.social_share_privacy_area li.help_info .info, .social_share_privacy_area li .help_info.icon .info {display:none; position:absolute; bottom:40px; left:-10px; width:290px; padding:10px 15px; font-size:12px; line-height:16px; font-weight:bold; border:1px solid #ccc; -moz-border-radius:4px; -webkit-border-radius:4px; border-radius:4px; -moz-box-shadow:0 3px 4px #999; -webkit-box-shadow:0 3px 4px #999; box-shadow:0 3px 4px #999; background-color:#fdfbec; color:#000; z-index:500;}
.social_share_privacy_area li .help_info.icon .info {left:-150px; width:350px;}
.social_share_privacy_area li.help_info.display .info, .social_share_privacy_area li .help_info.icon.display .info {display:block;}
.social_share_privacy_area li.help_info.info_off.display .info {display:none;}
.social_share_privacy_area li .help_info.icon {background:#fff url(../images/socialshareprivacy_info.png) no-repeat center center scroll; width:25px; height:20px; position:relative; display:inline-block; vertical-align:top; border:2px solid #e7e3e3; border-right-width:0; -moz-border-radius:5px 0 0 5px; -webkit-border-radius:5px 0 0 5px; border-radius:5px 0 0 5px;}
.social_share_privacy_area li.settings_info .settings_info_menu.on .help_info.icon {border-top-width:0; border-left-width:0;}
.social_share_privacy_area li.settings_info .settings_info_menu.perma_option_off .help_info.icon {border-right-width:2px; -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px;}
/* Tooltips end */
/* Settings/Info begin */
.social_share_privacy_area li.settings_info {position:relative; top:8px; width:135px;}
.social_share_privacy_area li.settings_info a {text-decoration:none; margin:0 !important;}
.social_share_privacy_area li.settings_info .settings_info_menu {background-color:#f3f4f5; border:2px solid #e7e3e3; -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; -moz-box-shadow:2px 2px 3px #c1c1c1; -webkit-box-shadow:2px 2px 3px #c1c1c1; box-shadow:3px 3px 3px #c1c1c1; left:0; position:absolute; top:0; width:135px; z-index:10;}
.social_share_privacy_area li.settings_info .settings_info_menu.off {border-width:0; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; background-color:transparent; }
.social_share_privacy_area li.settings_info .settings_info_menu.off form {display:none;}
.social_share_privacy_area li.settings_info .settings_info_menu .settings {text-indent:-9999em; display:inline-block; background: #fff url(../images/settings.png) no-repeat center center scroll; width:25px; height:20px; border:2px solid #e7e3e3; -moz-border-radius:0 5px 5px 0; -webkit-border-radius:0 5px 5px 0; border-radius:0 5px 5px 0; border-left:1px solid #ddd;}
.social_share_privacy_area li.settings_info .settings_info_menu.on .settings {border-top-width:0;}
.social_share_privacy_area li.settings_info .settings_info_menu form fieldset {border-width: 0; margin:0; padding:0 10px 10px; }
.social_share_privacy_area li.settings_info .settings_info_menu form fieldset legend {font-size:11px; font-weight:bold; line-height:14px; margin:0; padding:10px 0; width:115px; color:#151515;}
.social_share_privacy_area li.settings_info .settings_info_menu form fieldset input {clear:both; float:left; margin:4px 10px 4px 0; width:auto;}
.social_share_privacy_area li.settings_info .settings_info_menu form fieldset label {display:inline-block; float:left; font-size:12px; font-weight:bold; line-height:24px; -moz-transition:color .5s ease-in; -webkit-transition:color .5s ease-in; transition:color .5s ease-in; color:#151515;}
.social_share_privacy_area li.settings_info .settings_info_menu form fieldset label.checked {color:#090;}
@media (max-width: 800px) {
.social_share_privacy_area .settings_info {clear: left;}
}
/* Clearfix (as it will come in WP 3.4)
----------------------------------------------- */
.clearfix:after {content:"."; display:block; clear:both; visibility:hidden; line-height:0; height:0;}
.clearfix {display:inline-block;}
html[xmlns] .clearfix {display:block;}
* html .clearfix {height:1%;}
\ No newline at end of file
/*!
* 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
/*
* jQuery Privacy Share Buttons plugin
*
* ideas, original code and images taken from:
* http://www.heise.de/extras/socialshareprivacy/
* Copyright (c) 2011 Hilko Holweg, Sebastian Hilbig, Nicolas Heiringhoff, Juergen Schmidt,
* Heise Zeitschriften Verlag GmbH & Co. KG, http://www.heise.de
*
* Copyright (c) 2012 lucha <lucha@paranoici.org>
*
* released under the terms of either the MIT License or the GNU General Public License (GPL) Version 2
*/
;(function($) {
var SocialButton = function(elements, options){
this.elements = elements;
this.options = $.extend(true, {}, this.defaults, options);
if (!this.is_on())
return;
this.append_css();
this.attach();
}; SocialButton.prototype = {
// defalt values for options
defaults : {
'info_link' : 'http://www.heise.de/ct/artikel/2-Klicks-fuer-mehr-Datenschutz-1333879.html',
'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. For more information click on the <em> i </em>',
'settings_perma' : 'Permanently enable data transfer for:',
'css_path' : '',
'uri' : '',
'cookie_options' : {
'path' : '/',
'expires' : 365
},
'services' : {
'facebook' : {
'display_name' : 'Facebook',
'status' : 'off',
'perma' : 'on',
'txt_info' : '2 click for more privacy: only if you click here, the button will activate and you will be able to send your recommendation to Facebook. When enabled, data will be transferred to third parties - see <em> i </em>.',
'txt_off' : 'not connected with Facebook',
'txt_on' : 'connected with Facebook',
'dummy_img' : '',
'action' : 'recommend',
'iframe_src' : function (options){
return '<iframe src="//www.facebook.com/plugins/like.php?href='
+ options.uri
+ '&amp;send=false&amp;layout=button_count&amp;width=100&amp;show_faces=false'
+ '&amp;action=' + options.services.facebook.action
+ '&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" '
+ 'style="border:none; overflow:hidden; width:130px; height:25px;" allowTransparency="true"></iframe>';
}
},
'twitter' : {
'display_name' : 'Twitter',
'status' : 'off',
'perma' : 'on',
'txt_info' : '2 click for more privacy: only if you click here, the button will activate and you will be able to send your recommendation to Twitter. When enabled, data will be transferred to third parties - see <em> i </em>.',
'txt_off' : 'not connected with Twitter',
'txt_on' : 'connected with Twitter',
'dummy_img' : '',
'reply_to' : '',
'text' : encodeURIComponent(document.title),
'iframe_src' : function(options){
var reply_to = (options.services.twitter.reply_to != '') ? '&amp;via=' + options.services.twitter.reply_to : '';
return '<iframe allowtransparency="true" frameborder="0" scrolling="no" '
+ 'src="http://platform.twitter.com/widgets/tweet_button.html?'
+ 'url=' + options.uri + '&amp;counturl=' + options.uri
+ '&amp;text=' + options.services.twitter.text
+ reply_to
+ '&amp;count=horizontal'
+ '&amp;lang=' + options.services.twitter.language
+ '" style="width:100px; height:25px;"></iframe>';
}
},
'identica' : {
'display_name' : 'Identi.ca',
'status' : 'off',
'perma' : 'on',
'txt_info' : '2 click for more privacy: only if you click here, the button will activate and you will be able to send your recommendation to Identi.ca. When enabled, data will be transferred to third parties - see <em> i </em>.',
'txt_off' : 'not connected with Identi.ca',
'txt_on' : 'connected with Identi.ca',
'dummy_img' : '',
'text' : encodeURIComponent(document.title),
'identica_lib' : '',
'iframe_src' : function(options){
return '<iframe scrolling="no" frameborder="0" src="'
+ options.services.identica.identica_lib
+ '?noscript&style2'
+ '&amp;title=' + options.services.identica.text
+ '" allowtransparency="true" style="width:130px; height:25px; position: absolute;"></iframe>';
}
},
'gplus' : {
'display_name' : 'Google+',
'status' : 'off',
'perma' : 'on',
'txt_info' : '2 click for more privacy: only if you click here, the button will activate and you will be able to send your recommendation to Google+. When enabled, data will be transferred to third parties - see <em> i </em>.',
'txt_off' : 'not connected with Google+',
'txt_on' : 'connected with Google+',
'dummy_img' : '',
'language' : 'en',
'iframe_src' : function(options){
var gplusdiv = $('<div class="g-plusone" data-size="medium"></div>');
var gplusjs = '<script type="text/javascript">window.___gcfg = {lang: "' + options.services.gplus.language
+ '"}; (function() { var po = document.createElement("script"); po.type = "text/javascript";'
+ 'po.async = true; po.src = "https://apis.google.com/js/plusone.js";'
+ ' var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(po, s); })(); </script>';
return gplusdiv.append(gplusjs);
}
},
'flattr' : {
'display_name' : 'Flattr',
'status' : 'off',
'perma' : 'on',
'txt_info' : '2 click for more privacy: only if you click here, the button will activate and you will be able to send yout recommendation to Flattr. When enabled, data will be transferred to third parties - see <em> i </em>.',
'txt_flattr_off' : 'not connected with Flattr',
'txt_flattr_on' : 'connected with Flattr',
'dummy_img' : '',
'iframe_src' : function(){return '';}
},
'xing' : {
'display_name' : 'Xing',
'status' : 'off',
'perma' : 'on',
'txt_info' : '2 click for more privacy: only if you click here, the button will activate and you will be able to send your recommendation to Xing. When enabled, data will be transferred to third parties - see <em> i </em>.',
'txt_gplus_off' : 'not connected with Xing',
'txt_plus_on' : 'connected with Xing',
'dummy_img' : '',
'xing_lib' : '',
'iframe_src' : function(){return '';}
}
}
},
// let's check if at least one service is active
is_on : function(){
var is_on = false;
for (var name in this.options.services){
var serv = this.options.services[name];
if (serv.status == 'on'){
is_on = true;
break;
}
}
return is_on;
},
// let's check if we have to show the settings area
perma_is_on : function(){
var perma_is_on = false;
for (var name in this.options.services){
var serv = this.options.services[name];
if (serv.status == 'on' && serv.perma == 'on'){
perma_is_on = true;
break;
}
}
// IE7 has problems with cookies and JSON, so we don't show them the settings area
return perma_is_on && (!$.browser.msie || ($.browser.msie && ($.browser.version > 7.0)));
},
// adds CSS to head if we have to do so
append_css : function(){
// insert stylesheet into document and prepend target element
if (this.options.css_path.length > 0) {
// IE fix (needed for IE < 9 - but this is done for all IE versions)
if (document.createStyleSheet) {
document.createStyleSheet(options.css_path);
} else {
$('head').append('<link rel="stylesheet" type="text/css" href="' + options.css_path + '" />');
}
}
},
dummy_image : function(service){
return $('<img/>', {
src : service.dummy_img,
alt : service.display_name + ' Dummy Image',
"class" : 'dummy_img'
});
},
switch_button : function(service, element){
var c_switch = $('.switch',$(element));
var dummy_div = $('div.dummy_btn',$(element));
if (c_switch.hasClass('off')){
$(element).addClass('info_off');
c_switch.addClass('on').removeClass('off').html(service.txt_on);
dummy_div.html(service.iframe_src(this.options));
} else {
$(element).removeClass('info_off');
c_switch.addClass('off').removeClass('on').html(service.txt_off);
dummy_div.html(this.dummy_image(service));
}
},
attach : function(){
var self = this;
this.elements.each( function(){
// contex will hold all the button, whether active or not, and the info and setting area
var context = $('<ul class="social_share_privacy_area"></ul>').appendTo(this);
// let's add the single buttons
for (var name in self.options.services){
var serv = self.options.services[name];
if (serv.status != 'on')
continue;
var iframe = serv.iframe_src(self.options);
var container = $('<li class="help_info '+name +'"><span class="info">' + serv.txt_info + '</span></li>').appendTo(context);
$('<span class="switch off">' + serv.txt_off + '</span>').appendTo(container);
var dummy_div = $('<div class="dummy_btn"></div>').appendTo(container);
dummy_div.append(self.dummy_image(serv));
container.click( {serv:serv, element:container}, function(event){
self.switch_button(event.data.serv,event.data.element);
});
}
// now it's time for the info area
var container = $('<li class="settings_info">'
+'<div class="settings_info_menu off perma_option_off">'
+ '<a href="'+ self.options.info_link +'">'
+ '<span class="help_info icon">'
+ '<span class="info">' + self.options.txt_help + '</span>'
+ '</span></a>'
+ '</div></li>'
).appendTo(context);
// show the overlays of the buttons and info area
$('.help_info').each(function(){
$(this).mouseenter(function() {
if(!$(this).hasClass('info_off'))
$('.info',this).show();
});
$(this).mouseleave(function() { $('.info',this).hide();});
});
// and finally it's time for the settings area (i.e. permanent activation)
if (self.perma_is_on()){
var info_menu = container.find('.settings_info_menu').removeClass('perma_option_off');
$('<span class="settings">Settings</span><form><fieldset><legend>' + self.options.settings_perma + '</legend></fieldset></form>').appendTo(info_menu);
for (var name in self.options.services){
var serv = self.options.services[name];
// first let's check if we have the perma option activated
if (!(serv.status == 'on' && serv.perma=='on'))
continue;
// let's get the cookie and check if we have to activate the button
var checked = ($.cookie('privacyShareButtons_'+name) == 'perma_on') ? 'checked="checked"' : '';
info_menu.find('form fieldset').append(
'<input type="checkbox" name="perma_status_'+name+'" id="perma_status_' + name + '" '
+ checked +' />'
+ '<label for="perma_status_'+name+'">'
+ serv.display_name + '</label>');
// if it's need, let's click the button so it gets activated
if (checked != '')
$('li.'+name+' span.switch',context).click();
}
info_menu.find('span.settings').css('cursor', 'pointer');
// show the overlay of the setting area
info_menu.find('span.settings').mouseenter(function(){
info_menu.removeClass('off').addClass('on');
});
container.mouseleave(function(){
info_menu.removeClass('on').addClass('off');
});
// let's handle changes in the settings
$(info_menu.find('fieldset input')).click( function (event) {
var click = event.target.id;
var service = click.substr(click.lastIndexOf('_') + 1, click.length);
var cookie_name = 'privacyShareButtons_' + service;
if ($('#' + event.target.id + ':checked').length) {
$.cookie(cookie_name,'perma_on',self.options.cookie_options);
$('form fieldset label[for=' + click + ']', context).addClass('checked');
} else {
$.cookie(cookie_name,null,self.options.cookie_options);
$('form fieldset label[for=' + click + ']', context).removeClass('checked');
}
});
}
});
}
}
$.fn.socialShareButtons = function(options){
new SocialButton(this, options);
return this;
}
$(document).ready($(".social_share_privacy").socialShareButtons(socialshareprivacy_settings));
})(jQuery);
(function(b){var a=function(d,c){this.elements=d;this.options=b.extend(true,{},this.defaults,c);if(!this.is_on()){return}this.append_css();this.attach()};a.prototype={defaults:{info_link:"http://www.heise.de/ct/artikel/2-Klicks-fuer-mehr-Datenschutz-1333879.html",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. For more information click on the <em> i </em>",settings_perma:"Permanently enable data transfer for:",css_path:"",uri:"",cookie_options:{path:"/",expires:365},services:{facebook:{display_name:"Facebook",status:"off",perma:"on",txt_info:"2 click for more privacy: only if you click here, the button will activate and you will be able to send your recommendation to Facebook. When enabled, data will be transferred to third parties - see <em> i </em>.",txt_off:"not connected with Facebook",txt_on:"connected with Facebook",dummy_img:"",action:"recommend",iframe_src:function(c){return'<iframe src="//www.facebook.com/plugins/like.php?href='+c.uri+"&amp;send=false&amp;layout=button_count&amp;width=100&amp;show_faces=false&amp;action="+c.services.facebook.action+'&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:130px; height:25px;" allowTransparency="true"></iframe>'}},twitter:{display_name:"Twitter",status:"off",perma:"on",txt_info:"2 click for more privacy: only if you click here, the button will activate and you will be able to send your recommendation to Twitter. When enabled, data will be transferred to third parties - see <em> i </em>.",txt_off:"not connected with Twitter",txt_on:"connected with Twitter",dummy_img:"",reply_to:"",text:encodeURIComponent(document.title),iframe_src:function(d){var c=(d.services.twitter.reply_to!="")?"&amp;via="+d.services.twitter.reply_to:"";return'<iframe allowtransparency="true" frameborder="0" scrolling="no" src="http://platform.twitter.com/widgets/tweet_button.html?url='+d.uri+"&amp;counturl="+d.uri+"&amp;text="+d.services.twitter.text+c+"&amp;count=horizontal&amp;lang="+d.services.twitter.language+'" style="width:100px; height:25px;"></iframe>'}},identica:{display_name:"Identi.ca",status:"off",perma:"on",txt_info:"2 click for more privacy: only if you click here, the button will activate and you will be able to send your recommendation to Identi.ca. When enabled, data will be transferred to third parties - see <em> i </em>.",txt_off:"not connected with Identi.ca",txt_on:"connected with Identi.ca",dummy_img:"",text:encodeURIComponent(document.title),identica_lib:"",iframe_src:function(c){return'<iframe scrolling="no" frameborder="0" src="'+c.services.identica.identica_lib+"?noscript&style2&amp;title="+c.services.identica.text+'" allowtransparency="true" style="width:130px; height:25px; position: absolute;"></iframe>'}},gplus:{display_name:"Google+",status:"off",perma:"on",txt_info:"2 click for more privacy: only if you click here, the button will activate and you will be able to send your recommendation to Google+. When enabled, data will be transferred to third parties - see <em> i </em>.",txt_off:"not connected with Google+",txt_on:"connected with Google+",dummy_img:"",language:"en",iframe_src:function(d){var c=b('<div class="g-plusone" data-size="medium"></div>');var e='<script type="text/javascript">window.___gcfg = {lang: "'+d.services.gplus.language+'"}; (function() { var po = document.createElement("script"); po.type = "text/javascript";po.async = true; po.src = "https://apis.google.com/js/plusone.js"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(po, s); })(); <\/script>';return c.append(e)}},flattr:{display_name:"Flattr",status:"off",perma:"on",txt_info:"2 click for more privacy: only if you click here, the button will activate and you will be able to send yout recommendation to Flattr. When enabled, data will be transferred to third parties - see <em> i </em>.",txt_flattr_off:"not connected with Flattr",txt_flattr_on:"connected with Flattr",dummy_img:"",iframe_src:function(){return""}},xing:{display_name:"Xing",status:"off",perma:"on",txt_info:"2 click for more privacy: only if you click here, the button will activate and you will be able to send your recommendation to Xing. When enabled, data will be transferred to third parties - see <em> i </em>.",txt_gplus_off:"not connected with Xing",txt_plus_on:"connected with Xing",dummy_img:"",xing_lib:"",iframe_src:function(){return""}}}},is_on:function(){var d=false;for(var c in this.options.services){var e=this.options.services[c];if(e.status=="on"){d=true;break}}return d},perma_is_on:function(){var d=false;for(var c in this.options.services){var e=this.options.services[c];if(e.status=="on"&&e.perma=="on"){d=true;break}}return d&&(!b.browser.msie||(b.browser.msie&&(b.browser.version>7)))},append_css:function(){if(this.options.css_path.length>0){if(document.createStyleSheet){document.createStyleSheet(options.css_path)}else{b("head").append('<link rel="stylesheet" type="text/css" href="'+options.css_path+'" />')}}},dummy_image:function(c){return b("<img/>",{src:c.dummy_img,alt:c.display_name+" Dummy Image","class":"dummy_img"})},switch_button:function(c,f){var e=b(".switch",b(f));var d=b("div.dummy_btn",b(f));if(e.hasClass("off")){b(f).addClass("info_off");e.addClass("on").removeClass("off").html(c.txt_on);d.html(c.iframe_src(this.options))}else{b(f).removeClass("info_off");e.addClass("off").removeClass("on").html(c.txt_off);d.html(this.dummy_image(c))}},attach:function(){var c=this;this.elements.each(function(){var g=b('<ul class="social_share_privacy_area"></ul>').appendTo(this);for(var f in c.options.services){var k=c.options.services[f];if(k.status!="on"){continue}var h=k.iframe_src(c.options);var e=b('<li class="help_info '+f+'"><span class="info">'+k.txt_info+"</span></li>").appendTo(g);b('<span class="switch off">'+k.txt_off+"</span>").appendTo(e);var d=b('<div class="dummy_btn"></div>').appendTo(e);d.append(c.dummy_image(k));e.click({serv:k,element:e},function(l){c.switch_button(l.data.serv,l.data.element)})}var e=b('<li class="settings_info"><div class="settings_info_menu off perma_option_off"><a href="'+c.options.info_link+'"><span class="help_info icon"><span class="info">'+c.options.txt_help+"</span></span></a></div></li>").appendTo(g);b(".help_info").each(function(){b(this).mouseenter(function(){if(!b(this).hasClass("info_off")){b(".info",this).show()}});b(this).mouseleave(function(){b(".info",this).hide()})});if(c.perma_is_on()){var j=e.find(".settings_info_menu").removeClass("perma_option_off");b('<span class="settings">Settings</span><form><fieldset><legend>'+c.options.settings_perma+"</legend></fieldset></form>").appendTo(j);for(var f in c.options.services){var k=c.options.services[f];if(!(k.status=="on"&&k.perma=="on")){continue}var i=(b.cookie("privacyShareButtons_"+f)=="perma_on")?'checked="checked"':"";j.find("form fieldset").append('<input type="checkbox" name="perma_status_'+f+'" id="perma_status_'+f+'" '+i+' /><label for="perma_status_'+f+'">'+k.display_name+"</label>");if(i!=""){b("li."+f+" span.switch",g).click()}}j.find("span.settings").css("cursor","pointer");j.find("span.settings").mouseenter(function(){j.removeClass("off").addClass("on")});e.mouseleave(function(){j.removeClass("on").addClass("off")});b(j.find("fieldset input")).click(function(n){var m=n.target.id;var l=m.substr(m.lastIndexOf("_")+1,m.length);var o="privacyShareButtons_"+l;if(b("#"+n.target.id+":checked").length){b.cookie(o,"perma_on",c.options.cookie_options);b("form fieldset label[for="+m+"]",g).addClass("checked")}else{b.cookie(o,null,c.options.cookie_options);b("form fieldset label[for="+m+"]",g).removeClass("checked")}})}})}};b.fn.socialShareButtons=function(c){new a(this,c);return this};b(document).ready(b(".social_share_privacy").socialShareButtons(socialshareprivacy_settings))})(jQuery);
\ No newline at end of file
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"