vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[ljcom] r9442: LJSUP-6643: New header (contest winner),...

Committer: vsukhanov
LJSUP-6643: New header (contest winner), for September.
U   trunk/cgi-bin/LJ/Hooks/Homepage.pm
Modified: trunk/cgi-bin/LJ/Hooks/Homepage.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/Homepage.pm	2010-08-30 10:17:49 UTC (rev 9441)
+++ trunk/cgi-bin/LJ/Hooks/Homepage.pm	2010-08-30 10:35:40 UTC (rev 9442)
@@ -146,10 +146,6 @@
 sub _is_july2010_reskining_active { 
     my $params = shift;
 
-    # till 2010-07-22 00:00:00
-    #my $time = time();
-    #return 0 if $time > 1279756800;
-
     return 1;
 }
 
@@ -159,10 +155,6 @@
 sub _is_september2010_reskining_active { 
     my $params = shift;
 
-    # till 2010-07-22 00:00:00
-    #my $time = time();
-    #return 0 if $time > 1279756800;
-
     return 1;
 }
 
@@ -170,15 +162,22 @@
 
 LJ::register_hook("service_page_reskining", sub {
     my $params = shift || {};
-    if (_is_july2010_reskining_active($params)) {
+    if(_is_september2010_reskining_active($params)){
+        ## Sep 2010
         LJ::need_res("stc/reskining/september2010/september2010.css");
         my $text = LJ::Lang::ml('reskining.july2010');
         LJ::CleanHTML::clean(\$text); ## to expand <lj-user> tags 
         return qq[<dl class="b-reskining-about"><dt></dt><dd>$text</dd></dl>];
-    }
 
-    return '';
+    } elsif (_is_july2010_reskining_active($params)) {
+        ## Jul 2010
+        LJ::need_res("stc/reskining/july2010/july2010.css");
+        my $text = LJ::Lang::ml('reskining.july2010');
+        LJ::CleanHTML::clean(\$text); ## to expand <lj-user> tags 
+        return qq[<dl class="b-reskining-about"><dt></dt><dd>$text</dd></dl>];
+    } 
 
+    return '';
 });
 
 

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