holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r12171: LJSUP-12681: There should be a separate ...

Committer: akanashin
LJSUP-12681: There should be a separate "Promo" section in the navigation bar
U   trunk/cgi-bin/LJ/Widget/Shop/LeftMenu.pm
U   trunk/htdocs/shop/index.bml.text.local
Modified: trunk/cgi-bin/LJ/Widget/Shop/LeftMenu.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Shop/LeftMenu.pm	2012-06-25 12:02:17 UTC (rev 12170)
+++ trunk/cgi-bin/LJ/Widget/Shop/LeftMenu.pm	2012-06-25 13:06:04 UTC (rev 12171)
@@ -18,6 +18,7 @@
 
     my $is_remote_sup = LJ::SUP->is_remote_sup();
     my $remote = LJ::get_remote();
+    my $promos;
 
     my $paid_services = [
         {
@@ -53,19 +54,19 @@
     ];
 
     if ( $is_remote_sup ) {
-        push @$paid_services, {
+        push @$promos, {
             name => LJ::Lang::ml('/shop/index.bml.storefront.selfpromo'),
             url => '/shop/selfpromo.bml',
             is_selected => $subpage eq 'selfpromo' ? 1 : 0,
         };
-        push @$paid_services, {
+        push @$promos, {
             name => LJ::Lang::ml('/shop/index.bml.storefront.commpromo'),
             url => '/shop/commpromo.bml',
             is_selected => $subpage eq 'commpromo' ? 1 : 0,
         } unless $LJ::DISABLED{'commercial_promo'};
     }
 
-    push @$paid_services, {
+    push @$promos, {
         name => LJ::Lang::ml('/shop/index.bml.storefront.notificationpromo'),
         url => '/shop/notificationpromo.bml',
             is_selected => $subpage eq 'notificationpromo' ? 1 : 0,
@@ -101,6 +102,11 @@
             is_expanded => 1,
         },
         {
+            name => BML::ml('.storefront.promo.name'),
+            level1 => $promos,
+            is_expanded => 1,
+        },
+        {
             name => BML::ml('.storefront.gifts.vgifts'),
             level1 => [],
             is_expanded => 1,
@@ -189,12 +195,12 @@
             }
         }
         next if !$vgifts_cat{$cat_value}[3] && !@subcat;
-        push @{$top_level->[2]{level1}} => {
+        push @{$top_level->[3]{level1}} => {
                                                 url => "/shop/vgift.bml?cat=$cat_value",
                                                 name => BML::ml("vgiftcat.$cat_value"),
                                                 is_selected => $subpage eq $cat_value ? 1 : 0,
                                            };
-        push @{$top_level->[2]{level1}} => $_ foreach @subcat;
+        push @{$top_level->[3]{level1}} => $_ foreach @subcat;
         # Show subcategories only if it is not empty
     }
 

Modified: trunk/htdocs/shop/index.bml.text.local
===================================================================
--- trunk/htdocs/shop/index.bml.text.local	2012-06-25 12:02:17 UTC (rev 12170)
+++ trunk/htdocs/shop/index.bml.text.local	2012-06-25 13:06:04 UTC (rev 12171)
@@ -168,6 +168,9 @@
 .storefront.permaccount.text|staleness=1
 .storefront.permaccount.text=The Permanent Account Sale is happening now! Offer ends 23:59 December 15th, 2008 PST
 
+.storefront.promo.name|staleness=1
+.storefront.promo.name=Promo
+
 .storefront.selfpromo|staleness=1
 .storefront.selfpromo=Self Promo
 

Tags: akanashin, holyandrew, ljcom, local, 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