juks (juks) wrote in changelog,
juks
juks
changelog

[ljcom] r10048: LJSUP-7445 Try & buy

Committer: iaskarov
LJSUP-7445 Try & buy
U   trunk/htdocs/community/account.bml
U   trunk/htdocs/community/account.bml.text.local
Modified: trunk/htdocs/community/account.bml
===================================================================
--- trunk/htdocs/community/account.bml	2011-02-16 04:09:00 UTC (rev 10047)
+++ trunk/htdocs/community/account.bml	2011-02-16 05:06:20 UTC (rev 10048)
@@ -77,6 +77,9 @@
         my $switchto_paid_text = BML::ml('.switchto.paid.text', {
             'aopts' => qq{ href="$LJ::HELPURL{'paid_benefits'}"},
         });
+        my $switchto_trynbuy_text = BML::ml('.switchto.trynbuy.text', {
+            'aopts' => qq{ href="$LJ::HELPURL{'trynbuy_benefits'}"},
+        });
         my $hidden_fields = LJ::html_hidden(
             'item' => 'paidaccount',
             'gift' => 1,
@@ -92,17 +95,30 @@
                 <button type="submit">$ML{'.btn.topaid'}</button>
             </form>
         };
+        my $switchto_trynbuy_block .= qq{
+            <?p
+                <span class="hilite">$ML{'.switchto.trynbuy.header'}</span><br>
+                $switchto_trynbuy_text
+            p?>
+            <form action="$LJ::SITEROOT/free-trial/" method="get">
+                <button type="submit">$ML{'.btn.totrynbuy'}</button>
+            </form>
+        };
+        
+        $body .= "<table cellpadding='0' cellspacing='0' border='0'>";
+        $body .= "<tr><td valign='top' width='50%' style='padding-right: 10px'>";
 
         # If Try&Buy account
         if(LJ::TryNBuy->active($u)) {
-            $body .= BML::ml('.title.days.left', {
-            'num' => LJ::TryNBuy->days_left($u),
-        }); }
+            $body .= "<?p $ML{'.main.switch'} p?>\n";
+            $body .= "<?p <span style='font-size: 1.1em; font-weight: bold'>$ML{'.trynbuy.header'}</span> p?>\n";
+            $body .= "<?p " . BML::ml('.title.days.left', {'num' => LJ::TryNBuy->days_left($u)}) . " p?>\n";
+            $body .= "<?p <b>$ML{'.main.change'}</b> p?>\n";
+            $body .= $switchto_paid_block;
+        }
  
         # Free without ads
-        if ($u->in_class("plus")) {
-            $body .= "<table cellpadding='0' cellspacing='0' border='0'>";
-            $body .= "<tr><td valign='top' width='50%' style='padding-right: 10px'>";
+        elsif ($u->in_class("plus")) {
             if ($POST{areyousure}) {
                 $title = $ML{'.confirm.title'};
                 $body .= "<?p $ML{'.confirm.text'} p?>";
@@ -134,13 +150,13 @@
                 $body .= LJ::html_submit("areyousure", $ML{'.btn.tobasic'});
                 $body .= "</form> p?>\n";
 
+                $body .= $switchto_trynbuy_block;
+                
                 $body .= $switchto_paid_block;
             }
 
             $body .= "</td><td valign='top' width='50%'>\n";
         } else {
-            $body .= "<table cellpadding='0' cellspacing='0' border='0'>";
-            $body .= "<tr><td valign='top' width='50%' style='padding-right: 10px'>";
             $body .= "<?p $ML{'.main.switch'} p?>\n";
             $body .= "<?p <span style='font-size: 1.1em; font-weight: bold'>$ML{'.basic.header'}</span> p?>\n";
             $body .= "<?p " . BML::ml('.basic.text', {'sitename' => $LJ::SITENAMESHORT}) . " p?>\n";
@@ -153,6 +169,8 @@
             $body .= LJ::html_submit("sponsored", $ML{'.btn.toplus'});
             $body .= "</form><br />\n";
 
+            $body .= $switchto_trynbuy_block;
+            
             $body .= $switchto_paid_block;
 
             $body .= "</td><td valign='top' width='50%'>\n";

Modified: trunk/htdocs/community/account.bml.text.local
===================================================================
--- trunk/htdocs/community/account.bml.text.local	2011-02-16 04:09:00 UTC (rev 10047)
+++ trunk/htdocs/community/account.bml.text.local	2011-02-16 05:06:20 UTC (rev 10048)
@@ -12,6 +12,8 @@
 
 .btn.toplus=Upgrade to Plus
 
+.btn.totrynbuy=Upgrade to TrynBuy
+
 .choose=Please choose a community
 
 .confirm.text=Are you certain you want to switch to the Basic level?
@@ -50,6 +52,12 @@
 
 .switchto.plus.text=<a href="http://www.livejournal.com/support/faqbrowse.bml?faqid=263">More features than a Basic account</a>, with advertising that keeps it free of charge to you.
 
+.switchto.trynbuy.header=TrynBuy Account
+
+.switchto.trynbuy.text=The TrynBuy account level gives you access to all LiveJournal's premium community features. <a [[aopts]]>See a full list of features.</a>
+
 .title=Community Account Status
 
 .title.days.left=Try and Buy period for this journal expires in [[num]] [[?num|day|days]].
+
+.trynbuy.header=You currently have a TrynBuy account.

Tags: bml, juks, ljcom, local
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