slartyblartfast (slartyblartfast) wrote in changelog,
slartyblartfast
slartyblartfast
changelog

[livejournal] r16414: LJGI-64: Video in friend posts in iGoogl...

Committer: mchernyshev
LJGI-64: Video in friend posts in iGoogle
- added option to LJ::expand_embedded();
- removed second call of LJ::cleanHTML().
U   trunk/cgi-bin/LJ/EmbedModule.pm
Modified: trunk/cgi-bin/LJ/EmbedModule.pm
===================================================================
--- trunk/cgi-bin/LJ/EmbedModule.pm	2010-03-22 08:59:32 UTC (rev 16413)
+++ trunk/cgi-bin/LJ/EmbedModule.pm	2010-03-22 09:15:42 UTC (rev 16414)
@@ -119,6 +119,12 @@
         return '<lj-embed ' . join(' ', map {"$_=\"$attrs{$_}\""} keys %attrs) . ">\n" .
                  $class->module_content(moduleid  => $attrs{id}, journalid => $journal->id) .
                  "\n<\/lj-embed>";
+    } elsif ($opts{expand_to_link}) {
+        return "<a href=\"".$opts{expand_to_link}->{link} . "\"" .
+            ($opts{expand_to_link}->{target} ?
+                (" target=\"" . $opts{expand_to_link}->{target} . "\"") : ''
+            ) .
+            ">" . $opts{expand_to_link}->{caption} . "</a>";
     } else {
         @opts{qw /width height/} = @attrs{qw/width height/};
         return $class->module_iframe_tag($journal, $attrs{id}, %opts)

Tags: livejournal, pm, slartyblartfast
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