Committer: akanashin
LJSUP-12828: Beeline stage 2 branding of main pageU trunk/cgi-bin/LJ/Hooks/Homepage.pm
Modified: trunk/cgi-bin/LJ/Hooks/Homepage.pm =================================================================== --- trunk/cgi-bin/LJ/Hooks/Homepage.pm 2012-07-10 08:46:09 UTC (rev 12252) +++ trunk/cgi-bin/LJ/Hooks/Homepage.pm 2012-07-10 08:50:02 UTC (rev 12253) @@ -58,9 +58,9 @@ my $country = LJ::GeoLocation->get_country_info_by_ip; my $time = time(); - - return unless $country eq 'RU'; + return unless grep {$_ eq $country} qw{BY RU UA}; + ## only Cyr users return unless LJ::SUP->is_remote_sup; @@ -87,10 +87,10 @@ $rnd . '=357906993" width="1" height="1" border="0" class="google-pixel" />'; } - +warn "a"; # beeline # 00.00 11 of July till 23.59 22 0f July - if (LJ::_is_branding_active() && ($time > 1341964800 && $time < 1343001540)) { + if (LJ::_is_branding_active() && ($time > 1341950400 && $time < 1342987140)) { return '<a href="http://ad.adriver.ru/cgi-bin/click.cgi?sid=1&bt=21&ad=342511&pid=864734&bid=1845012&bn=1845012&rnd=911750838" class="beeline-link" target="_blank"> </a> <img src="http://ad.adriver.ru/cgi-bin/rle.cgi?sid=1&bt=21&ad=342511&pid=864734&bid=1845012&bn=1845012&rnd=911750838" width="1" height="1" border="0" class="brandingdragon-pixel" />'; } @@ -106,10 +106,10 @@ if (LJ::_is_branding_active() && ($time > 1341432000 && $time < 1341777540)) { LJ::need_res("stc/reskining/2012/july/google/google.css"); } - +warn "b"; # beeline # 00.00 11 of July till 23.59 22 0f July - if (LJ::_is_branding_active() && ($time > 1341964800 && $time < 1343001540)) { + if (LJ::_is_branding_active() && ($time > 1341950400 && $time < 1342987140)) { LJ::need_res("stc/reskining/2012/july/beeline/beeline.css"); }