Committer: egeraskin
LJSUP-13813: Megafon Express 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-11-12 09:56:15 UTC (rev 12877) +++ trunk/cgi-bin/LJ/Hooks/Homepage.pm 2012-11-12 11:24:52 UTC (rev 12878) @@ -80,6 +80,13 @@ my $rnd = int(rand(1_000_000)); return '<a href="http://sup.adfox.ru/7386/goLink?p1=bjatj&p2=v&p5=bmiru&pr=' . $rnd . '&puid1=&puid2=&puid3=&puid4=&puid5=" target="_blank" class="branding-link"> </a><img src="http://sup.adfox.ru/7386/getCode?p1=bjatj&p2=v&pe=b&pfc=myzt&pfb=bmiru&puid1=&puid2=&puid3=&puid4=&puid5=&pr=ejstmcl" width="1" height="1" border="0" class="pixel" />'; } + + # Megafon Express + # 19 november 00:01 - 25 november 23:59 + if (LJ::_is_branding_active( countries => ['RU'] ) && ($time >= 1353268800 && $time < 1353873540)) { + my $rnd = int(rand(1_000_000)); + return '<a href="http://ad.adriver.ru/cgi-bin/click.cgi?sid=1&bt=21&ad=356107&pid=919418&bid=1993964&bn=1993964&' . $rnd . '=702922252" target="_blank" class="branding-link"> </a><img src="http://ad.adriver.ru/cgi-bin/rle.cgi?sid=1&bt=21&ad=356107&pid=919418&bid=1993964&bn=1993964&"' . $rnd . '=702922252" width="1" height="1" border="0" class="pixel" />'; + } }); @@ -103,6 +110,12 @@ LJ::need_res("stc/reskining/2012/november/atlas.css"); } + # Megafon Express + # 19 november 00:01 - 25 november 23:59 + if (LJ::_is_branding_active( countries => ['RU'] ) && ($time >= 1353268800 && $time < 1353873540)) { + LJ::need_res("stc/reskining/2012/october/megafon-express.css"); + } + ## ## experimental ServicePageReskinning part ##