madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[ljcom] r12156: LJSUP-12318: Writer's block flag

Committer: sbelyaev
LJSUP-12318: Writer's block flag
U   trunk/cgi-bin/LJ/Widget/HomepageEN.pm
U   trunk/cgi-bin/LJ/Widget/HomepageRU.pm
U   trunk/templates/Homepage/index_en.tmpl
U   trunk/templates/Homepage/index_ru.tmpl
Modified: trunk/cgi-bin/LJ/Widget/HomepageEN.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/HomepageEN.pm	2012-06-21 13:43:26 UTC (rev 12155)
+++ trunk/cgi-bin/LJ/Widget/HomepageEN.pm	2012-06-21 14:41:37 UTC (rev 12156)
@@ -157,11 +157,12 @@
     $result{widget_sup1millionpromo} = LJ::Widget::SUP1MillionPromo->render;
 
     ## Widget QotD
+    if ( LJ::is_enabled('qotd') ) {
+        $result{widget_qotd} = $remote ?
+            LJ::Widget::QotD->render( domain => "homepage" ) :
+            LJ::Widget::QotD->render( stylesheet => "stc/widgets/qotd-loggedout.css", domain => "homepage" );
+    }
 
-    $result{widget_qotd} = $remote ?
-        LJ::Widget::QotD->render( domain => "homepage" ) :
-        LJ::Widget::QotD->render( stylesheet => "stc/widgets/qotd-loggedout.css", domain => "homepage" );
-
     ## Widget GameList
     $result{widget_gamelist} = LJ::Widget::GameList->render
         if LJ::is_enabled('userapps');

Modified: trunk/cgi-bin/LJ/Widget/HomepageRU.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/HomepageRU.pm	2012-06-21 13:43:26 UTC (rev 12155)
+++ trunk/cgi-bin/LJ/Widget/HomepageRU.pm	2012-06-21 14:41:37 UTC (rev 12156)
@@ -101,7 +101,8 @@
     $result{widget_recent_posts} = LJ::Widget::RecentPosts->render;
 
     ## Widget QotD
-    $result{widget_qotd} = LJ::Widget::QotD->render(domain => "homepage");
+    $result{widget_qotd} = LJ::Widget::QotD->render(domain => "homepage")
+        if LJ::is_enabled('qotd');
 
     ## Widget GameList
     $result{widget_gamelist} = LJ::Widget::GameList->render

Modified: trunk/templates/Homepage/index_en.tmpl
===================================================================
--- trunk/templates/Homepage/index_en.tmpl	2012-06-21 13:43:26 UTC (rev 12155)
+++ trunk/templates/Homepage/index_en.tmpl	2012-06-21 14:41:37 UTC (rev 12156)
@@ -7,7 +7,7 @@
         <div class="l-content">
             <tmpl_var widget_video_for_home_page>
             <tmpl_var widget_sup1millionpromo>
-            <TMPL_IF 0>
+            <TMPL_IF widget_qotd>
                 <div class='homepage-account appwidget pkg b-qotd'>
                     <h2><span><tmpl_var expr="ml('.loggedin.qotd.title')"></span></h2>
                     <ul class="i-qotd-menu">

Modified: trunk/templates/Homepage/index_ru.tmpl
===================================================================
--- trunk/templates/Homepage/index_ru.tmpl	2012-06-21 13:43:26 UTC (rev 12155)
+++ trunk/templates/Homepage/index_ru.tmpl	2012-06-21 14:41:37 UTC (rev 12156)
@@ -10,7 +10,8 @@
 
             <tmpl_var widget_video_for_home_page>
             <tmpl_var widget_sup1millionpromo>
-
+            
+            <tmpl_if widget_qotd>
             <div class="homepage-account appwidget pkg b-qotd">
                 <div class="w-head">
                     <h2><span class="w-head-in"><tmpl_var expr="ml('.loggedin.qotd.title')"></span></h2>
@@ -26,6 +27,7 @@
                     <tmpl_var widget_qotd>
                 </div><!-- end .homepage-account-right -->
             </div><!-- end .homepage-account -->
+            </tmpl_if>
 
             <tmpl_var widget_recentcomments>
 

Tags: ljcom, madeon, pm, sbelyaev, tmpl
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