Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[ljcom] r10747: LJSUP-9260: Create Chocolate Day 2011 He...

Committer: gariev
LJSUP-9260: Create Chocolate Day 2011 Header (for all users)

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-11 06:32:44 UTC (rev 10746)
+++ trunk/cgi-bin/LJ/Hooks/Homepage.pm	2011-07-11 07:11:02 UTC (rev 10747)
@@ -74,7 +74,17 @@
  
     my $is_sup = LJ::SUP->is_remote_sup();
     my $time = time(); 
-    
+   
+    ## LJSUP-9260: Create Chocolate Day 2011 Header (for all users)
+    ## Start: 12.07.2011 00:00 Moscow time 
+    ## End: 16.07.2011 00:00 Moscow time 
+    if ($time>1310414400 && $time<1310760000) {
+        LJ::need_res("stc/reskining/2011/july/choco/header.css");
+        my $text = LJ::Lang::ml('reskining.july2011.choco');
+        LJ::CleanHTML::clean(\$text, { allow => [ 'a' ] }); ## to add <a> tags
+        return qq[<dl class="b-reskining-about"><dt></dt><dd>$text</dd></dl>];
+    }
+ 
     if (!$is_sup) {
         ## LJSUP-8949: June 2011 header for non cyr users
         LJ::need_res("stc/reskining/2011/june/noncyr/header.css");

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