Савинцев Егор 🚶 (savintsev_egor) wrote in changelog,
Савинцев Егор 🚶
savintsev_egor
changelog

[livejournal] r17183: LJSUP-6400: Facebook Like Button

Committer: esavintcev
LJSUP-6400: Facebook Like Button
U   trunk/cgi-bin/LJ/S2.pm
Modified: trunk/cgi-bin/LJ/S2.pm
===================================================================
--- trunk/cgi-bin/LJ/S2.pm	2010-08-23 10:43:59 UTC (rev 17182)
+++ trunk/cgi-bin/LJ/S2.pm	2010-08-24 03:45:21 UTC (rev 17183)
@@ -3687,8 +3687,9 @@
         my $entry = LJ::Entry->new($journalu->{'userid'}, ditemid => $this->{'itemid'});
         return $null_link unless $entry->security eq 'public';
         my $entry_url = LJ::eurl($entry->url);
-        my $url = "http://www.facebook.com/plugins/like.php?href=$entry_url&layout=button_count&show_faces=false&width=450&action=like&colorscheme=light&height=35";
+        my $url = "http://www.facebook.com/plugins/like.php?href=$entry_url&layout=button_count&show_faces=false&width=150&action=like&colorscheme=dark&height=21";
         my $link = LJ::S2::Link($url, 'caption unused', LJ::S2::Image("$LJ::IMGPREFIX/btn_facebook.gif", 24, 24));
+        $link->{_raw} = qq|<iframe src="$url" scrolling="no" frameborder="0" style="border:none;overflow:hidden;width:150px;height:21px;" allowTransparency="true"></iframe>|;
         return $link;
     }
     if ($key eq "mem_add") {

Tags: livejournal, pm, savintsev_egor
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments