Commit 253214d8 authored by lucha's avatar lucha Committed by lechuck

Fixed Facebook button - Privacy Share Buttons

parent 58df8091
.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:before {content : "";}
.social_share_privacy_area li .dummy_btn {float:left; margin-left:10px; cursor:pointer; padding:0;}
.social_share_privacy_area li .dummy_btn img {border: 0px; background: none;}
/* Facebook begin */
.social_share_privacy_area .facebook {width: 180px;}
/* Facebook end */
.social_share_privacy_area .facebook {width: 175px;}
.social_share_privacy_area .facebook .fb_edge_comment_widget {width:400px;}
/* .social_share_privacy_area .facebook div.dummy_btn {width: 150px;}
*//* Facebook end */
/* Identica begin */
.social_share_privacy_area .identica {width:148px;}
......@@ -29,7 +29,7 @@
/* 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 {display: none; 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 */
......
......@@ -46,12 +46,22 @@ var SocialButton = function(elements, options){
'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>';
// return '<iframe src="//www.facebook.com/plugins/like.php?href&amp;send=false&amp;layout=button_count&amp;width=450&amp;show_faces=false&amp;action=recommend&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:auto; width:450px; height:21px;" allowTransparency="true"></iframe>';
return '<div id="fb-root"></div>'
+'<script>(function(d, s, id) {'
+' var js, fjs = d.getElementsByTagName(s)[0];'
+' if (d.getElementById(id)) return;'
+' js = d.createElement(s); js.id = id;'
+' js.src = "//connect.facebook.net/it_IT/all.js#xfbml=1";'
+' fjs.parentNode.insertBefore(js, fjs);'
+'}(document, "script", "facebook-jssdk"));</script>'
+'<div class="fb-like" data-send="false" data-layout="button_count" data-width="400" data-show-faces="false" data-action="recommend"></div>';
// 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' : {
......
......@@ -26,13 +26,12 @@ stable.
1. Activate the plugin through the 'Plugins' menu in WordPress
1. Go to the configuration page of the plugins to choose which buttons to show (and where)
== Changelog ==
The buttons rendering could work very badly depending on your theme's CSS. I'm not very good at this, so if you can come up with a nicer way to show the buttons, I'll be glad to include it. If the buttons looks like half hidden on your theme, try adding these lines to your CSS:
= 0.1 =
* First version
.post {overflow: visible;}
.entry-content {overflow: visible;}
== Arbitrary section ==
== Changelog ==
You may provide arbitrary sections, in the same format as the ones above. This may be of use for extremely complicated
plugins where more information needs to be conveyed that doesn't fit into the categories of "description" or
"installation." Arbitrary sections will be shown below the built-in sections outlined above.
\ No newline at end of file
= 0.1 =
* First version
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment