/
viewsidebar.pattern.tmpl
22 lines (14 loc) · 1.06 KB
/
viewsidebar.pattern.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
%{ to include a side bar on a page, just include this template in the page template }%
%TMPL:DEF{"sidebar"}%<div id="patternSideBar"><div id="patternClearHeaderLeft"></div>
<div id="patternSideBarContents">%TMPL:P{"websidebar"}%
</div><!-- /patternSideBarContents--></div><!-- /patternSideBar-->%TMPL:END%
%TMPL:DEF{"sidebar:webindicator"}%<div class="patternWebIndicator">
* <a href='%SCRIPTURL{"view"}%/%BASEWEB%/%HOMETOPIC%'><img src='%ICONURL{"web-bg"}%' style='background-color:%WEBBGCOLOR%' alt='%WEB%'/> <nop>%BASEWEB%</a>
</div><!--/patternWebIndicator-->%TMPL:END%
%TMPL:DEF{"sidebar:weblink"}%<div class="patternWebIndicator">
* [[%BASEWEB%/%HOMETOPIC%][%BASEWEB%]]
</div><!--/patternWebIndicator-->%TMPL:END%
%TMPL:DEF{"websidebar"}%%TMPL:P{"sidebar:weblink"}%%IF{"istopic 'WebLeftBar'" then="$percntINCLUDE{$quot%WEB%.WebLeftBar$quot}$percnt" else="$percntINCLUDE{$quot%WEB%.WebLeftBarExample$quot}$percnt"}%
%TMPL:END%
%TMPL:DEF{"startsidebarwrapper"}%<div id="patternWrapper">%TMPL:END%
%TMPL:DEF{"endsidebarwrapper"}%</div><!-- /patternWrapper-->%TMPL:END%