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/_footer.html

    r2670 r2772  
    22 
    33<div class="footer" id="footer" role="contentinfo"> 
    4      <div class="widgets footer__widgets" id="blogcustom"> 
    5         <h2 class="blogcustom__title">{{tpl:lang Blog info}}</h2> 
    6           {{tpl:Widgets type="custom"}} 
    7      </div> <!-- End #custom widgets --> 
     4     <tpl:IfWidgets type="custom"> 
     5          <div class="widgets footer__widgets" id="blogcustom"> 
     6             <h2 class="blogcustom__title">{{tpl:lang Blog info}}</h2> 
     7               {{tpl:Widgets type="custom"}} 
     8          </div> <!-- End #custom widgets --> 
     9     </tpl:IfWidgets> 
    810 
    911     {{tpl:SysBehavior behavior="publicInsideFooter"}} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map