Henry Lyne ([info]henrylyne) wrote in [info]changelog,
@ 2008-12-02 19:17:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
[ljcom] r6849: LJSUP-3186 Add more permanent account sa...
Committer: henrylyne
LJSUP-3186 Add more permanent account sale promotion

U   trunk/htdocs/manage/account/modify.bml
U   trunk/htdocs/manage/payments/modify.bml.text.local
U   trunk/htdocs/shop/view.bml
Modified: trunk/htdocs/manage/account/modify.bml
===================================================================
--- trunk/htdocs/manage/account/modify.bml	2008-12-02 15:30:23 UTC (rev 6848)
+++ trunk/htdocs/manage/account/modify.bml	2008-12-02 19:17:04 UTC (rev 6849)
@@ -630,6 +630,7 @@
     # Show the initial manage form
     if ($mode eq 'select') {
         $body .= "<?p " . BML::ml('.text2', {'aopts'=>"href='$LJ::SITEROOT/shop/view.bml?item=paidaccount'"}) . " p?>";
+        $body .= "<?p " . BML::ml('.permsale.text', { sitename => "$LJ::SITENAMESHORT", 'aopts'=> "href='$LJ::SITEROOT/shop/perm_sale.bml'"}) . " p?>" if (LJ::conf_test($LJ::PERM_SALE));
         $body .= '<br />';
         $body .= '<div class="subform">';
         $body .= "<?h2 $ML{'.selectbilling.header'} h2?>";

Modified: trunk/htdocs/manage/payments/modify.bml.text.local
===================================================================
--- trunk/htdocs/manage/payments/modify.bml.text.local	2008-12-02 15:30:23 UTC (rev 6848)
+++ trunk/htdocs/manage/payments/modify.bml.text.local	2008-12-02 19:17:04 UTC (rev 6849)
@@ -127,6 +127,8 @@
 
 .nextpage=Please proceed to the next page to enter your credit card information.
 
+.permsale.text=<b>Limited time offer</b> - Make one payment and get a [[sitename]] account for life. <a [[aopts]]>Learn more about Permanent Accounts</a>.
+
 .proratedpay.fullamount=The first time you will be charged your full amount of [[price]] is [[date]].
 
 .proratedpay.header=Your Prorated Payment:

Modified: trunk/htdocs/shop/view.bml
===================================================================
--- trunk/htdocs/shop/view.bml	2008-12-02 15:30:23 UTC (rev 6848)
+++ trunk/htdocs/shop/view.bml	2008-12-02 19:17:04 UTC (rev 6849)
@@ -608,6 +608,10 @@
         $promo .= "<p style='white-space: nowrap'><strong>$ML{'.promo.ljpresent.header'}</strong></p><ul>";
         $promo .= "<li><a href='$LJ::SITEROOT/birthdays.bml'>$ML{'.promo.ljpresent.bdays'}</a></li>";
         $promo .= "<li style='white-space: nowrap'><a href='$LJ::SITEROOT/paidaccounts/friends.bml'>$ML{'.promo.ljpresent.paidaccount'}</a></li></ul>";
+        if (LJ::conf_test($LJ::PERM_SALE)) {
+            $promo .= "<hr /><p><strong>$ML{'.promo.permsale.header'}</strong></p>";
+            $promo .= "<p style='white-space: wrap'>" . BML::ml('.promo.permsale.text', { 'aopts' => "href='$LJ::SITEROOT/shop/perm_sale.bml' style='white-space: nowrap'"}) . "</p>";
+        }
 
     } elsif ($class eq "intangible" || $class eq "bonusfeatures") {
         my $salepricerec = LJ::Pay::paid_account_price( interval => 12, rec => 1 );
@@ -686,7 +690,7 @@
   </div>
   </td>
   <td id="PromoBar" valign="top">
-    <div style="width: 100%; margin-left: auto; margin-right: auto; clear: both; padding-left: 1em;">
+    <div style="margin-left: auto; margin-right: auto; clear: both; padding-left: 1em;">
     <?_code return $promo; _code?>
 
     </div>



Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…