Only show the links to the shop if payments are enabled in this 
installation.

        Patch by kareila. 

diffs (26 lines):

diff -r aa89589bfd4d -r b6855fd880c4 htdocs/site/index.bml
--- a/htdocs/site/index.bml     Fri Jun 04 13:20:19 2010 +0800
+++ b/htdocs/site/index.bml     Fri Jun 04 13:40:28 2010 +0800
@@ -93,7 +93,11 @@ body<=
 </div>
 <div id='maplinks-right'>
 
- <dl><dt><?_code return BML::ml('.maplinks.shop-title', { sitename => 
$LJ::SITENAMESHORT }); _code?></dt>
+<?_code
+if ( LJ::is_enabled( 'payments' ) ) {
+    my $shop_title = BML::ml('.maplinks.shop-title', { sitename => 
$LJ::SITENAMESHORT } );
+    return qq{
+ <dl><dt>$shop_title</dt>
   <dd><ul>
    <li><a href='/shop'><?_ml .maplinks.buy-points _ml?></a></li>
    <li><a href='/shop/gifts'><?_ml .maplinks.buy-circle _ml?></a></li>
@@ -102,6 +106,9 @@ body<=
    <li><a href='http://www.zazzle.com/dreamwidth*'><?_ml 
.maplinks.buy-merchandise _ml?></a></li>
    <li><a href='/shop/history'><?_ml .maplinks.payment-history _ml?></a></li>
   </ul></dd></dl>
+    };
+}
+_code?>
 
  <dl><dt><?_code return BML::ml('.maplinks.learn-site-title', { sitename => 
$LJ::SITENAMESHORT }); _code?></dt>
   <dd><ul>
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to