Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r19204: LJSUP-8952 (<lj like> tag)

Committer: ailyin
LJSUP-8952 (<lj like> tag)
U   trunk/cgi-bin/bml/scheme/lynx.look
U   trunk/cgi-bin/cleanhtml.pl
U   trunk/cgi-bin/weblib.pl
Modified: trunk/cgi-bin/bml/scheme/lynx.look
===================================================================
--- trunk/cgi-bin/bml/scheme/lynx.look	2011-06-02 09:08:19 UTC (rev 19203)
+++ trunk/cgi-bin/bml/scheme/lynx.look	2011-06-02 09:22:25 UTC (rev 19204)
@@ -52,6 +52,7 @@
     my $class = LJ::get_body_class_for_service_pages();
     return "<body class='scheme-lynx $class' %%bodyopts%%>";
 } _code?>
+<?_code LJ::initial_body_html(); _code?>
 
 <?_code return (LJ::Widget::SiteMessages->should_render) ? LJ::Widget::SiteMessages->render : ''; _code?>
 %%BODY%%

Modified: trunk/cgi-bin/cleanhtml.pl
===================================================================
--- trunk/cgi-bin/cleanhtml.pl	2011-06-02 09:08:19 UTC (rev 19203)
+++ trunk/cgi-bin/cleanhtml.pl	2011-06-02 09:22:25 UTC (rev 19204)
@@ -763,7 +763,7 @@
 
                     elsif ( $button eq 'vkontakte' ) {
                         unless ( $LJ::VKONTAKTE_CONF ) {
-                            $newdata .= qq{<div class="lj-like-item lj-like-item-vkontakte"><b>[vkontakte like]</b></div>}
+                            $newdata .= qq{<div class="lj-like-item lj-like-item-vkontakte"><b>[vkontakte like]</b></div>};
                             next;
                         }
 

Modified: trunk/cgi-bin/weblib.pl
===================================================================
--- trunk/cgi-bin/weblib.pl	2011-06-02 09:08:19 UTC (rev 19203)
+++ trunk/cgi-bin/weblib.pl	2011-06-02 09:22:25 UTC (rev 19204)
@@ -2397,6 +2397,12 @@
 </script>
 };
 
+sub initial_body_html {
+    my $after_body_open = '';
+    LJ::run_hooks('insert_html_after_body_open', \$after_body_open);
+    return $after_body_open;
+}
+
 # returns HTML which should appear before </body>
 sub final_body_html {
     my $before_body_close = "";

Tags: andy, livejournal, look, pl
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