Revision 2772:df84ff8c6261,
526 bytes
checked in by franck <carnet.franck.paul@…>, 11 years ago
(diff) |
Add tpl:IfWidgets template block -> return true if at least one widget will be displayed
|
Rev | Line | |
---|
[2670] | 1 | <div class="sidebar" id="sidebar" role="complementary"> |
---|
[2772] | 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> |
---|
[2600] | 14 | </div> |
---|
Note: See
TracBrowser
for help on using the repository browser.