juks (juks) wrote in changelog,
juks
juks
changelog

[ljcom] r10050: LJSUP-7953

Committer: iaskarov
LJSUP-7953
U   trunk/cgi-bin/LJ/Pay.pm
Modified: trunk/cgi-bin/LJ/Pay.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay.pm	2011-02-16 05:22:24 UTC (rev 10049)
+++ trunk/cgi-bin/LJ/Pay.pm	2011-02-16 07:12:48 UTC (rev 10050)
@@ -395,7 +395,7 @@
 
     $ret .= "<?standout " unless $opts->{'nostandout'};
 
-    $ret .= '<div class="b-accstats-wrapper">';
+    $ret .= $is_comm ? '<div class="b-accstats-wrapper b-accstats-community">' : ($is_identity ? '<div class="b-accstats-wrapper b-accstats-identity">' : '<div class="b-accstats-wrapper">');
     $ret .= '<table class="b-accstats-table">';
     $ret .= '<tr>';
     $ret .= '<th class="b-accstats-head">' . BML::ml('pay.widget.title') . '</th>';
@@ -405,11 +405,11 @@
     $ret .= '<td class="b-accstats-subhead b-accstats-voice"><span>' . BML::ml('pay.widget.voiceposts.title') . '</span></td>' unless $is_comm || $is_identity;
     
     if ($show_trynbuy) {
-        $ret .= $is_comm ? '<td rowspan="3" class="b-accstats-button"><a href="' . $LJ::SITEROOT .'/community/account.bml?authas=' . $u->user . '" class="b-accstats-trynbuy">' . BML::ml('pay.widget.trynbuy') . '</a></td>' : '<td rowspan="3" class="b-accstats-button"><a href="' . $LJ::SITEROOT .'/manage/account/?changelevel=1" class="b-accstats-trynbuy">' . BML::ml('pay.widget.trynbuy') . '</a></td>';
+        $ret .= $is_comm ? '<td rowspan="3" class="b-accstats-button b-accstats-button-tnb"><a href="' . $LJ::SITEROOT .'/community/account.bml?authas=' . $u->user . '" class="b-accstats-trynbuy">' . BML::ml('pay.widget.trynbuy') . '</a></td>' : '<td rowspan="3" class="b-accstats-button"><a href="' . $LJ::SITEROOT .'/manage/account/?changelevel=1" class="b-accstats-trynbuy">' . BML::ml('pay.widget.trynbuy') . '</a></td>';
     }
     
     if(!$u->get_cap('paid')) {    
-        $ret .= ($is_identity ? '<td rowspan="3" class="b-accstats-button"><a href="' . $LJ::SITEROOT .'/identity/convert.bml" class="b-accstats-upgrade">' . BML::ml('pay.widget.upgradefull') . '</a></td>' : ($is_comm ? '<td rowspan="3" class="b-accstats-button"><a href="' . $LJ::SITEROOT .'/shop/paidaccount.bml?form=3" class="b-accstats-upgrade">' . BML::ml('pay.widget.upgradenow') . '</a></td>' : '<td rowspan="3" class="b-accstats-button"><a href="' . $LJ::SITEROOT .'/shop/paidaccount.bml?form=1" class="b-accstats-upgrade">' . BML::ml('pay.widget.upgradenow') . '</a></td>'));
+        $ret .= ($is_identity ? '<td rowspan="3" class="b-accstats-button b-accstats-button-upg"><a href="' . $LJ::SITEROOT .'/identity/convert.bml" class="b-accstats-upgrade">' . BML::ml('pay.widget.upgradefull') . '</a></td>' : ($is_comm ? '<td rowspan="3" class="b-accstats-button"><a href="' . $LJ::SITEROOT .'/shop/paidaccount.bml?form=3" class="b-accstats-upgrade">' . BML::ml('pay.widget.upgradenow') . '</a></td>' : '<td rowspan="3" class="b-accstats-button"><a href="' . $LJ::SITEROOT .'/shop/paidaccount.bml?form=1" class="b-accstats-upgrade">' . BML::ml('pay.widget.upgradenow') . '</a></td>'));
     }
     
     $ret .= '</tr>';
@@ -491,9 +491,9 @@
 
 
 # SMS quota
-    my $sms_left = $u->sms_quota_remaining || 0;
-    $ret .= "<li><a href='$LJ::SITEROOT/manage/sms/'>" . BML::ml('pay.widget.sms', { num => $sms_left }) . "</a></li>"
-        if $u->can_use_sms && !$is_comm && !$is_identity;
+#    my $sms_left = $u->sms_quota_remaining || 0;
+#    $ret .= "<li><a href='$LJ::SITEROOT/manage/sms/'>" . BML::ml('pay.widget.sms', { num => $sms_left }) . "</a></li>"
+#        if $u->can_use_sms && !$is_comm && !$is_identity;
 
 
 # gift certs

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