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

[ljcom] r11024: LJSUP-9846: Now.ru, branding home page f...

Committer: narefieva
LJSUP-9846: Now.ru, branding home page for livejournal.com
U   trunk/cgi-bin/LJ/Hooks/Homepage.pm
Modified: trunk/cgi-bin/LJ/Hooks/Homepage.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/Homepage.pm	2011-09-21 02:55:24 UTC (rev 11023)
+++ trunk/cgi-bin/LJ/Hooks/Homepage.pm	2011-09-21 03:09:13 UTC (rev 11024)
@@ -45,9 +45,9 @@
     return 1;
 }
 
-sub LJ::_is_super8_branding_active {
+sub LJ::_is_branding_active {
 
-    ## Only homepage must be reskined
+    ## Only homepage must be branded
     my $uri = BML::get_uri();
     return unless $uri eq '/index.bml' or $uri eq '/';
 
@@ -58,9 +58,9 @@
     ## only Cyr users
     return unless LJ::SUP->is_remote_sup;
 
-    ## from 14.06.11 at 00:00 MSK till 22.06.11 MSK   
+    ## from 2011-09-22 00:00 MSK till 2011-09-29 23:59 MSK   
     my $time = time();
-    return if $time < 1307998800 || $time > 1308690000;
+    ## return if ($time < 1316635200 || $time > 1317326340); ## uncomment this line before commit!
 
     return 1;    
 }
@@ -68,6 +68,10 @@
 LJ::register_hook("service_page_reskining", sub {
     my $params = shift || {};
 
+    if (LJ::_is_branding_active()) {
+        LJ::need_res('stc/reskining/2011/september/love/homepage.css');
+        return '';
+    }
     ##
     ## experimental ServicePageReskinning part 
     ##

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