ugly facebook button

This commit is contained in:
Sanj 2011-10-24 01:37:50 +01:00
parent 48930f0522
commit ae03cd9373
2 changed files with 14 additions and 1 deletions

View File

@ -18,6 +18,9 @@ $('#listLeft ul li a').live("click", function() {
}, function(data) {
$('#imageInside').css({'backgroundImage': 'url(' + data.main_image.thumb + ')'});
$('#textRight').text(data.title).formatTitle();
var url = location.protocol + "//" + location.hostname + location.pathname + "?tab=" + $('.innerSelected').attr("data-slug") + "&object_id=" + objId;
var fb_url = url.replace("&", "&");
$('#fb_like').attr("data-href", fb_url);
var searchTerm = $('.searchListField').val();
var html = data.html;
if (searchTerm != '') {

View File

@ -15,6 +15,15 @@
{% block content %}
<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/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div id="lightboxPanel">
</div>
@ -164,7 +173,8 @@
<img src="/static/images/noel/tweet.png" width="18" height="18" alt="twitter" class="iconImages">
<!--<a href="http://twitter.com/share" class="twitter-share-button" data-count="none" data-via="http://twitter.com/#!/indtheatreforum">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>-->
<img src="/static/images/noel/facebook.png" width="18" height="18" alt="facebook" class="iconImages">
<div id="fb_like" class="fb-like" data-href="http://theatreforum.in/m/bestpractices/?tab=cases&amp;object_id=16" data-send="true" data-width="450" data-show-faces="true"></div>
<!-- <img src="/static/images/noel/facebook.png" width="18" height="18" alt="facebook" class="iconImages"> -->
<!-- <iframe src="http://www.facebook.com/plugins/like.php?href=www.theatreforum.in&amp;send=false&amp;layout=button_count&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe>-->
<img src="/static/images/noel/download.jpg" width="18" height="18" alt="download" class="iconImages">