ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[ljcom] r9727: LJSUP-7373: Put promo block for give mor...

Committer: ssafronova
LJSUP-7373: Put promo block for give more to the shop
U   trunk/cgi-bin/LJ/Widget/Shop/MainPage.pm
U   trunk/cgi-bin/LJ/Widget/Shop/PaidAccount.pm
Modified: trunk/cgi-bin/LJ/Widget/Shop/MainPage.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Shop/MainPage.pm	2010-11-17 09:39:32 UTC (rev 9726)
+++ trunk/cgi-bin/LJ/Widget/Shop/MainPage.pm	2010-11-17 10:18:33 UTC (rev 9727)
@@ -23,8 +23,11 @@
         };
     }
 
+    my $now = time;
+
     return {
         'promoblocks' => \@promoblocks_display,
+        'show_givemore' => ($now >= $LJ::PAID_ACCOUNT_PROMO_TOKENS_START and $now < $LJ::PAID_ACCOUNT_PROMO_TOKENS_END),
     };
 }
 

Modified: trunk/cgi-bin/LJ/Widget/Shop/PaidAccount.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Shop/PaidAccount.pm	2010-11-17 09:39:32 UTC (rev 9726)
+++ trunk/cgi-bin/LJ/Widget/Shop/PaidAccount.pm	2010-11-17 10:18:33 UTC (rev 9727)
@@ -658,6 +658,8 @@
         map { $_->user } ($u->people_friends) : ();
     my $js_complete = LJ::JSUtil::autocomplete(list => \@flist);
 
+    my $now = time;
+
     return {
         siteroot            => $LJ::SITEROOT,
         promo_block         => $promo_block,
@@ -714,6 +716,8 @@
         mday                => $mday,
 
         only_gift           => $self->only_gift,
+
+        show_givemore       => ($now >= $LJ::PAID_ACCOUNT_PROMO_TOKENS_START and $now < $LJ::PAID_ACCOUNT_PROMO_TOKENS_END),
     };
 }
 

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