Committer: egeraskin
LJSUP-12741: Google 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-06-29 12:30:04 UTC (rev 12203) +++ trunk/cgi-bin/LJ/Hooks/Homepage.pm 2012-07-02 08:15:42 UTC (rev 12204) @@ -81,22 +81,22 @@ my $opts = shift || {}; my $time = time(); - # euro 2012 - # 21 june 00:00 - 27 june 23:59 - if (LJ::_is_branding_active() && ($time > 1340222400 && $time < 1340827140)) { + # google + # 5 july 00:00 - 8 july 23:59 + if (LJ::_is_branding_active() && ($time > 1341432000 && $time < 1341777540)) { my $rnd = int(rand(1_000_000)); return - '<a href="http://ad.adriver.ru/cgi-bin/click.cgi?sid=1&bt=21&ad=343113&pid=850216&bid=1821051&bn=1821051&'. + '<a href="http://ad.adriver.ru/cgi-bin/click.cgi?sid=1&bt=21&ad=347389&pid=872898&bid=1865800&bn=1865800&'. $rnd . - '=897125631" target="_blank" class="branding-euro-link"> </a>' . - '<img src="http://ad.adriver.ru/cgi-bin/rle.cgi?sid=1&bt=21&ad=343113&pid=850216&bid=1821051&bn=1821051&' . + '=357906993" target="_blank" class="google-link"> </a>' . + '<img src="http://ad.adriver.ru/cgi-bin/rle.cgi?sid=1&bt=21&ad=347389&pid=872898&bid=1865800&bn=1865800&' . $rnd . - '=897125631" width="1" height="1" border="0" class="branding-euro-pixel" />'; + '=357906993" width="1" height="1" border="0" class="google-pixel" />'; } # beeline - # 00.00 28 of June till 23.59 19 0f July - if (LJ::_is_branding_active() && ($time > 1340827200 && $time < 1342727940)) { + # 00.00 28 of June till 23.59 4 0f July + if (LJ::_is_branding_active() && ($time > 1340827200 && $time < 1341431940)) { 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" />'; } @@ -107,15 +107,15 @@ my $params = shift || {}; my $time = time(); - # euro 2012 - # 21 june 00:00 - 27 june 23:59 - if (LJ::_is_branding_active() && ($time > 1340222400 && $time < 1340827140)) { - LJ::need_res("stc/reskining/2012/june/megafon/euro.css"); + # google + # 5 july 00:00 - 8 july 23:59 + if (LJ::_is_branding_active() && ($time > 1341432000 && $time < 1341777540)) { + LJ::need_res("stc/reskining/2012/july/google/google.css"); } # beeline - # 00.00 28 of June till 23.59 19 0f July - if (LJ::_is_branding_active() && ($time > 1340827200 && $time < 1342727940)) { + # 00.00 28 of June till 23.59 4 0f July + if (LJ::_is_branding_active() && ($time > 1340827200 && $time < 1341431940)) { LJ::need_res("stc/reskining/2012/july/beeline/beeline.css"); }