Савинцев Егор 🚶 (savintsev_egor) wrote in changelog,
Савинцев Егор 🚶
savintsev_egor
changelog

[ljcom] r11022: LJSUP-9843: Need branding for livejourna...

Committer: esavintcev
LJSUP-9843: Need branding for livejournal.com
U   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">&nbsp;</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 );

Tags: ljcom, savintsev_egor, sup
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments