perazhog (perazhog) wrote in changelog,
perazhog
perazhog
changelog

[ljcom] r12085: LJSUP-12520: There is no Branding Trava ...

Committer: egeraskin
LJSUP-12520: There is no Branding Trava on main page
U   trunk/cgi-bin/LJ/Hooks/Homepage.pm
Modified: trunk/cgi-bin/LJ/Hooks/Homepage.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/Homepage.pm	2012-06-08 09:56:42 UTC (rev 12084)
+++ trunk/cgi-bin/LJ/Hooks/Homepage.pm	2012-06-08 10:11:25 UTC (rev 12085)
@@ -63,30 +63,52 @@
     return unless LJ::SUP->is_remote_sup; 
 
     ## from 2012-06-11 00:00:00 MSK till 2012-06-17 23:59:00 MSK 
-    my $time = time(); 
-    return if ($time < 1339358400 || $time > 1339963140); ## uncomment this line before commit! 
+    #my $time = time(); 
+    #return if ($time < 1339358400 || $time > 1339963140); ## uncomment this line before commit! 
 
     return 1; 
 }
 
 LJ::register_hook("service_page_branding", sub {
     my $opts = shift || {};
+    my $time = time(); 
 
-    if (LJ::_is_branding_active()) { 
+    # trava
+    # 4 june 00:00 - 11 june 23:59
+    if (LJ::_is_branding_active() && ($time > 1338753600 && $time < 1339444740)) { 
          my $rnd = int(rand(1_000_000)); 
          return 
-             '<a href="http://shopping-digest.ru/?utm_source=LJ_com&utm_medium=homepage&utm_content=branding-statis&utm_campaign=fed_megafon_sup_spec-anons" class="megafon-vc-link" target="_blank">&nbsp;</a>' . 
-             '<img src="http://ad.adriver.ru/cgi-bin/rle.cgi?sid=1&bt=21&ad=341892&pid=843545&bid=1801969&bn=1801969&' .
-             $rnd .
-             '=534093178" width="1" height="1" border="0" class="megafon-vc-pixel" />'; 
+              '<a href="http://ad.adriver.ru/cgi-bin/click.cgi?sid=1&bt=21&ad=341892&pid=843545&bid=1801969&bn=1801969&'. 
+              $rnd . 
+              '=534093178" target="_blank" class="branding-trava-link">&nbsp;</a>' . 
+              '<img src="http://ad.adriver.ru/cgi-bin/rle.cgi?sid=1&bt=21&ad=341892&pid=843545&bid=1801969&bn=1801969&' .
+              $rnd .
+              '=534093178" width="1" height="1" border="0" class="branding-trava-pixel" />';
      }
 
+     # megafon
+     # 12 june 00:00 - 18 june 23:59
+     if (LJ::_is_branding_active() && ($time > 1339444800 && $time < 1340049540)) { 
+         my $rnd = int(rand(1_000_000)); 
+         return 
+             '<a href="http://shopping-digest.ru/?utm_source=LJ_com&utm_medium=homepage&utm_content=branding-statis&utm_campaign=fed_megafon_sup_spec-anons" class="megafon-vc-link" target="_blank">&nbsp;</a>';
+     }
+
 });
 
 LJ::register_hook("service_page_reskining", sub {
     my $params = shift || {};
+    my $time = time(); 
 
-    if (LJ::_is_branding_active()) { 
+    # trava
+    # 4 june 00:00 - 11 june 23:59
+    if (LJ::_is_branding_active() && ($time > 1338753600 && $time < 1339444740)) { 
+        LJ::need_res("stc/reskining/2012/june/trava/trava.css"); 
+    }
+
+    # megafon
+    # 12 june 00:00 - 18 june 23:59
+    if (LJ::_is_branding_active() && ($time > 1339444800 && $time < 1340049540)) {  
         LJ::need_res("stc/reskining/2012/june/megafon/virtual-card.css"); 
     }
 

Tags: egeraskin, ljcom, perazhog, pm
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