vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[ljcom] r10728: LJSUP-9228: Kiss day header

Committer: vsukhanov
LJSUP-9228: Kiss day header
U   trunk/cgi-bin/LJ/Hooks/Homepage.pm
Modified: trunk/cgi-bin/LJ/Hooks/Homepage.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/Homepage.pm	2011-07-04 06:14:59 UTC (rev 10727)
+++ trunk/cgi-bin/LJ/Hooks/Homepage.pm	2011-07-05 06:11:44 UTC (rev 10728)
@@ -82,6 +82,18 @@
         LJ::CleanHTML::clean(\$text, { allow => [ 'a' ] }); ## to expand <lj-user> tags and to add <a> tags
         return qq[<dl class="b-reskining-about"><dt></dt><dd>$text</dd></dl>]; 
     } else {
+
+        ## LJSUP-9228: Kiss day header
+        ##   Only for cyr users 
+        ##   Start  06.07.2011 00:00 Moscow time
+        ##   End    09.07.2011 00:00 Moscow time
+        if ($time > 1309896000 and $time < 1310155200){
+            LJ::need_res("stc/reskining/2011/july/kiss/header.css");
+            my $text = LJ::Lang::ml('reskining.july2011.kiss');
+            LJ::CleanHTML::clean(\$text, { allow => [ 'a' ] }); ## to add <a> tags
+            return qq[<dl class="b-reskining-about"><dt></dt><dd>$text</dd></dl>]; 
+        }
+
         ## LJSUP-8948: June 2011 header for cyr users
         LJ::need_res("stc/reskining/2011/june/cyr/header.css");
         my $text = LJ::Lang::ml('reskining.june2011.cyr');

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