Dotclear


Ignore:
Timestamp:
11/10/14 12:00:56 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add tpl:IfWidgets template block -> return true if at least one widget will be displayed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/public/default-templates/currywurst/_sidebar.html

    r2670 r2772  
    11<div class="sidebar" id="sidebar" role="complementary"> 
    2      <div class="widgets blognav__widgets" id="blognav"> 
    3         <h2 class="blognav__title">{{tpl:lang Blog menu}}</h2> 
    4           {{tpl:Widgets type="nav"}} 
    5      </div> <!-- End #blognav --> 
    6      <div class="widgets blogextra__widgets" id="blogextra"> 
    7         <h2 class="blogextra__title">{{tpl:lang Extra menu}}</h2> 
    8           {{tpl:Widgets type="extra"}} 
    9      </div> <!-- End #blogextra --> 
     2     <tpl:IfWidgets type="nav"> 
     3          <div class="widgets blognav__widgets" id="blognav"> 
     4             <h2 class="blognav__title">{{tpl:lang Blog menu}}</h2> 
     5               {{tpl:Widgets type="nav"}} 
     6          </div> <!-- End #blognav --> 
     7     </tpl:IfWidgets> 
     8     <tpl:IfWidgets type="extra"> 
     9          <div class="widgets blogextra__widgets" id="blogextra"> 
     10             <h2 class="blogextra__title">{{tpl:lang Extra menu}}</h2> 
     11               {{tpl:Widgets type="extra"}} 
     12          </div> <!-- End #blogextra --> 
     13     </tpl:IfWidgets> 
    1014</div> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map