Снорк (nely_snork) wrote in changelog,
Снорк
nely_snork
changelog

[ljcom] r12408: LJSUP-13151: Sony branding of main page ...

Committer: narefieva
LJSUP-13151: Sony branding of main page (link)
U   trunk/cgi-bin/LJ/Hooks/Homepage.pm
Modified: trunk/cgi-bin/LJ/Hooks/Homepage.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/Homepage.pm	2012-08-03 07:49:20 UTC (rev 12407)
+++ trunk/cgi-bin/LJ/Hooks/Homepage.pm	2012-08-03 08:15:01 UTC (rev 12408)
@@ -54,6 +54,12 @@
         return '<div class="l-sopa"><div class="b-sopa"><div class="b-sopa-in">'.$text.'</div></div></div>';
     }
 
+    # Sony pictures "Totall Recall"
+    # 6 august 00:00 - 12 august 23:59
+    if (LJ::_is_branding_active() && ($time >= 1344196800 && $time < 1344801600)) {
+	    my $rnd = int(rand(1_000_000));
+        return '<a href="http://ad.adriver.ru/cgi-bin/click.cgi?sid=1&bt=21&ad=351561&pid=896467&bid=1923794&bn=1923794&rnd=' . $rnd . '" target="_blank" class="sony-link">&nbsp;</a><img src="http://ad.adriver.ru/cgi-bin/rle.cgi?sid=1&bt=21&ad=351561&pid=896467&bid=1923794&bn=1923794&rnd=' . $rnd . '" width="1" height="1" border="0" class="sony-pixel" />';
+    }
 });
 
 LJ::register_hook("service_page_reskining", sub {

Tags: ljcom, narefieva, nely_snork, pm
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