ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[ljcom] r7231: LJSUP-3788: LJ.com statistics and raitin...

Committer: ssafronova
LJSUP-3788: LJ.com statistics and raitings - remove old posts rating in case new is present

U   trunk/htdocs/index.bml.sup
Modified: trunk/htdocs/index.bml.sup
===================================================================
--- trunk/htdocs/index.bml.sup	2009-04-23 18:17:10 UTC (rev 7230)
+++ trunk/htdocs/index.bml.sup	2009-04-24 08:55:55 UTC (rev 7231)
@@ -31,7 +31,7 @@
     }
     
     $headextra .= qq[<!--[if IE]><link rel="stylesheet" type="text/css" href="$LJ::STATPREFIX/stc/lanzelot/css/index.bml.sup.ie.css" /><![endif]-->];
-        my $rating_posts = LJ::Widget::ExtBlock->render(id=>'rating.posts');
+        my $rating_posts; $rating_posts = LJ::Widget::ExtBlock->render(id=>'rating.posts') if $LJ::DISABLED{'personal_stats'};
         my $rating_users; $rating_users = LJ::Widget::ExtBlock->render(id=>'rating.users') if $LJ::DISABLED{'personal_stats'};
         my $real_time_sms= LJ::Widget::ExtBlock->render(id=>'realtime.sms');
         my $info_box     = ($remote and $remote->get_cap('paid')) 
@@ -103,7 +103,8 @@
         $ret .= "</form>";
         $ret .= "</div>";
 
-        $ret .= "       
+        if ($LJ::DISABLED{'personal_stats'}) {
+            $ret .= "       
                         <div class='canyon head-opts'>
                                 <h3 class='canyon-section'>Самые популярные записи</h3>
                                 <p class='canyon-side opt-list'><strong>по посетителям</strong> <a href='http://www.livejournal.ru/ratings/posts/hits' sp_eventwasset='on'>по хитам</a> <a href='http://www.livejournal.ru/ratings/posts/diggs' sp_eventwasset='on'>по оценке</a></p>
@@ -112,7 +113,7 @@
                         <p class='rate-list-more'><a href='http://www.livejournal.ru/ratings/' class='more'>Весь рейтинг</a></p>
                         <div class='hr-solid'></div>
                 ";
-
+        }
         $ret .= "<div class='homepage-insidelj pkg'>";
         $ret .= "<h2><span>" . BML::ml('.loggedout.facts', {'sitename' => $LJ::SITENAMESHORT}) . "</span></h2>";
         $ret .= $promos;
@@ -212,13 +213,18 @@
                                         </div>
 
 
-
+END_OF_HTML
+         if ($LJ::DISABLED{'personal_stats'}) {
+             $ret .= << "END_OF_HTML";
                         <div class="canyon head-opts">
                                 <h3 class="canyon-section">Самые популярные записи</h3>
                                 <p class="canyon-side opt-list"><strong>по посетителям</strong> <a href="http://www.livejournal.ru/ratings/posts/hits" sp_eventwasset="on">по хитам</a> <a href="http://www.livejournal.ru/ratings/posts/diggs" sp_eventwasset="on">по оценке</a></p>
                         </div>
                         $rating_posts
                         <p class="rate-list-more"><a href="http://www.livejournal.ru/ratings/" class="more">Весь рейтинг</a></p>
+END_OF_HTML
+         }
+             $ret .= << "END_OF_HTML";
                         <div class="hr-solid"></div>
                         <div class='homepage-loggedin' style='font-size: .85em;'>
                           <div class='homepage-insidelj pkg'>$promos_head</div>
@@ -234,8 +240,8 @@
                 $info_box       
 
                 $real_time_sms
+END_OF_HTML
 
-END_OF_HTML
          if ($LJ::DISABLED{'personal_stats'} ) {
              $ret .= << "END_OF_HTML";
                         <div class="promo-block no-widget-div">

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