wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[ljcom] r10627: LJSUP-9035: Home page branding - Super 8...

Committer: wisest-owl
LJSUP-9035: Home page branding - Super 8 [tags: can3p]
U   trunk/htdocs/index.bml.sup
Modified: trunk/htdocs/index.bml.sup
===================================================================
--- trunk/htdocs/index.bml.sup	2011-06-10 08:12:11 UTC (rev 10626)
+++ trunk/htdocs/index.bml.sup	2011-06-10 08:14:00 UTC (rev 10627)
@@ -17,7 +17,22 @@
     ) or die "Can't open template: $!";
 
     if (LJ::_is_super8_branding_active()) {
-        $result{'super8_branding'} = '<ul class="branding-links"><li class="branding-link branding-link-1"><a href="http://www.super8film.ru"></a></li><li class="branding-link branding-link-2"><a href="http://www.super8film.ru"></a></li><li class="branding-link branding-link-3"><a href="http://www.super8film.ru"></a></li></ul>';
+        $result{'super8_branding'} = <<SUPER8;
+            <script type="text/javascript">
+                var _gaq = _gaq || [];
+                function track_super8( link, event ) {
+                    _gaq.push(["_trackEvent", "super8_branding", "click", link.href]);
+                    setTimeout( 'location="' + link.href + '"', 100);
+                    return false;
+                }
+            </script>
+            <ul class="branding-links">
+                <li class="branding-link branding-link-1"><a href="http://www.super8film.ru" onclick="return track_super8( this, event )"></a></li>
+                <li class="branding-link branding-link-2"><a href="http://www.super8film.ru" onclick="return track_super8( this, event )"></a></li>
+                <li class="branding-link branding-link-3"><a href="http://www.super8film.ru" onclick="return track_super8( this, event )"></a></li>
+            </ul>
+SUPER8
+
     }
 
     $template->param( %result );

Tags: can3p, ljcom, sup, wisest-owl
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