Committer: esavintcev
LJSUP-9843: Need branding for livejournal.comU trunk/htdocs/index.bml.sup
Modified: trunk/htdocs/index.bml.sup =================================================================== --- trunk/htdocs/index.bml.sup 2011-09-20 06:09:49 UTC (rev 11021) +++ trunk/htdocs/index.bml.sup 2011-09-20 10:12:56 UTC (rev 11022) @@ -16,35 +16,9 @@ case_sensitive => 1, ) or die "Can't open template: $!"; - if (LJ::_is_super8_branding_active()) { - $result{'super8_branding'} = <<SUPER8; - <script type="text/javascript"> - var _gaq = _gaq || []; - _gaq.push(['_setAccount', 'UA-21183958-7']); - _gaq.push(['_setDomainName', 'www.livejournal.com']); - _gaq.push(['_trackPageview']); - function track_super8( link, e ) { - _gaq.push(["_trackEvent", "super8", "click", link.href]); - - // if no new tab - if ( link.target !== '_blank' && !(e.metaKey || e.altKey || e.shiftKey || e.ctrlKey) && e.which === 1 ) { - setTimeout('location="' + link.href + '"', 100); - e.preventDefault(); - } - } - </script> - - <ul class="branding-links"> - <li class="branding-link branding-link-1"><a href="http://www.super8film.ru" target="_blank"></a></li> - <li class="branding-link branding-link-2"><a href="http://www.super8film.ru" target="_blank"></a></li> - <li class="branding-link branding-link-3"><a href="http://www.super8film.ru" target="_blank"></a></li> - </ul> - - <script type="text/javascript"> - jQuery( '.branding-link a' ).click( function( e ) { track_super8( this, e ); } ); - </script> -SUPER8 - + if (LJ::_is_branding_active()) { + my $rnd = int(rand(1_000_000)); + $result{'branding'} = '<a href="http://sup.adfox.ru/7386/goLink?p1=bdptx&p2=v&p5=xyai&pr=' . $rnd . '&puid1=&puid2=&puid3=&puid4=&puid5=" target="_blank" class="brandinglove-link"> </a><img src="http://sup.adfox.ru/7386/getCode?p1=bdptx&p2=v&pe=b&pfc=jere&pfb=xyai&puid1=&puid2=&puid3=&puid4=&puid5=&pr=' . $rnd . '" width="1" height="1" border="0" class="brandinglove-pixel" />'; } $template->param( %result );