Committer: iaskarov
LJSUP-8070 March headerU trunk/cgi-bin/LJ/Hooks/Homepage.pm
Modified: trunk/cgi-bin/LJ/Hooks/Homepage.pm =================================================================== --- trunk/cgi-bin/LJ/Hooks/Homepage.pm 2011-03-09 14:12:28 UTC (rev 10208) +++ trunk/cgi-bin/LJ/Hooks/Homepage.pm 2011-03-10 04:41:20 UTC (rev 10209) @@ -51,7 +51,7 @@ my ($sp_start, $sp_end); - # my $dt = DateTime->new( year => 2011, month => 3, day => 17, hour => 0, minute => 0, second => 0, time_zone => $is_sup ? 'Europe/Moscow' : 'UTC', ); + # my $dt = DateTime->new( year => 2011, month => 4, day => 1, hour => 0, minute => 0, second => 0, time_zone => 'Europe/Moscow'); # my $sp_start = $dt->epoch(); my $sp_end = $sp_start + 86400; # 2011-03-17 till 2011-03-17 in GMT and MSC @@ -70,17 +70,21 @@ return qq[<dl class="b-reskining-about"><dt></dt><dd>$text</dd></dl>]; } - if ($is_sup) { - LJ::need_res("stc/reskining/2011/march/cyr/header.css"); + if(time() < 1301601600) { + if ($is_sup) { + LJ::need_res("stc/reskining/2011/march/cyr/header.css"); + + return ''; + } else { + LJ::need_res("stc/reskining/2011/march/noncyr/header.css"); + my $text = LJ::Lang::ml('reskining.march2011'); + LJ::CleanHTML::clean(\$text); ## to expand <lj-user> tags + + return qq[<dl class="b-reskining-about"><dt></dt><dd>$text</dd></dl>]; + } + } else { return ''; - } else { - LJ::need_res("stc/reskining/2011/march/noncyr/header.css"); - - my $text = LJ::Lang::ml('reskining.march2011'); - LJ::CleanHTML::clean(\$text); ## to expand <lj-user> tags - - return qq[<dl class="b-reskining-about"><dt></dt><dd>$text</dd></dl>]; } });