Committer: gprochaev
[LJSUP-6535] I like button with faces. ONTDU trunk/cgi-bin/LJ/S2.pm
Modified: trunk/cgi-bin/LJ/S2.pm =================================================================== --- trunk/cgi-bin/LJ/S2.pm 2010-09-06 09:56:01 UTC (rev 17288) +++ trunk/cgi-bin/LJ/S2.pm 2010-09-06 09:56:30 UTC (rev 17289) @@ -3692,6 +3692,14 @@ $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 "facebook_faces") { + 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 $link = {}; + $link->{_raw} = qq|<iframe src="http://www.facebook.com/plugins/like.php?href=$entry_url&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>|; + return $link; + } if ($key eq "mem_add") { return $null_link if $LJ::DISABLED{'memories'}; return LJ::S2::Link("$LJ::SITEROOT/tools/memadd.bml?journal=$journal&itemid=$this->{'itemid'}",