vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[ljcom] r10909: LJSUP-9541: Desert header

Committer: vsukhanov
LJSUP-9541: Desert 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-08-24 03:42:50 UTC (rev 10908)
+++ trunk/cgi-bin/LJ/Hooks/Homepage.pm	2011-08-24 03:44:04 UTC (rev 10909)
@@ -74,17 +74,18 @@
  
     my $is_sup = LJ::SUP->is_remote_sup();
     my $time = time(); 
+
+    ## LJSUP-9541: Desert header
+    ## enable it for sup users right now
+    ## Non sup - start at '01.09.2011 00:00 GMT'
+    if ($is_sup){
+        LJ::need_res("stc/reskining/2011/desert/header.css");
+        return;
+    } elsif ($time >= 1314835200){
+        LJ::need_res("stc/reskining/2011/desert/header.css");
+        return;
+    }
    
-    ## 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-9245: August 2011 header for non cyr users
         LJ::need_res("stc/reskining/2011/august/noncyr/header.css");

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