Commit | Line | Data |
---|---|---|
3e93caf9 MW |
1 | {include file='documentHeader'} |
2 | ||
3 | <head> | |
ff9e3598 MW |
4 | {if !$pageTitle|isset} |
5 | {assign var='pageTitle' value=''} | |
6 | {if !$__wcf->isLandingPage() && $__wcf->getActivePage() != null && $__wcf->getActivePage()->getTitle()} | |
7 | {capture assign='pageTitle'}{$__wcf->getActivePage()->getTitle()}{/capture} | |
8 | {/if} | |
9 | {/if} | |
10 | ||
11 | <title>{if $pageTitle}{@$pageTitle} - {/if}{PAGE_TITLE|language}</title> | |
3e93caf9 MW |
12 | |
13 | {include file='headInclude'} | |
14 | ||
15 | {if !$headContent|empty} | |
16 | {@$headContent} | |
17 | {/if} | |
18 | </head> | |
19 | ||
9b94eb2c | 20 | <body id="tpl_{$templateNameApplication}_{$templateName}" data-template="{$templateName}" data-application="{$templateNameApplication}"{if $__wcf->getActivePage() != null} data-page-id="{@$__wcf->getActivePage()->pageID}" data-page-identifier="{$__wcf->getActivePage()->identifier}"{/if}> |
3e93caf9 | 21 | |
cf1e012a | 22 | <a id="top"></a> |
f2b50825 | 23 | |
cf1e012a AE |
24 | <div id="pageContainer" class="pageContainer"> |
25 | {event name='beforePageHeader'} | |
f2b50825 AE |
26 | |
27 | {include file='pageHeader'} | |
28 | ||
cf1e012a AE |
29 | {event name='afterPageHeader'} |
30 | ||
55b402a0 MW |
31 | {hascontent} |
32 | <div class="boxesHeaderBoxes"> | |
33 | <div class="layoutBoundary"> | |
c734a302 MW |
34 | <div class="boxContainer"> |
35 | {content} | |
36 | {foreach from=$__wcf->getBoxHandler()->getBoxes('headerBoxes') item=box} | |
2cd54d7f | 37 | {@$box->render()} |
c734a302 MW |
38 | {/foreach} |
39 | {/content} | |
40 | </div> | |
55b402a0 MW |
41 | </div> |
42 | </div> | |
43 | {/hascontent} | |
44 | ||
cf1e012a | 45 | {include file='pageNavbarTop'} |
f2b50825 | 46 | |
55b402a0 MW |
47 | {hascontent} |
48 | <div class="boxesTop"> | |
41ec911a MW |
49 | <div class="boxContainer"> |
50 | {content} | |
51 | {if !$boxesTop|empty} | |
52 | {@$boxesTop} | |
53 | {/if} | |
54 | ||
55 | {foreach from=$__wcf->getBoxHandler()->getBoxes('top') item=box} | |
56 | {@$box->render()} | |
57 | {/foreach} | |
58 | {/content} | |
59 | </div> | |
55b402a0 MW |
60 | </div> |
61 | {/hascontent} | |
62 | ||
cf1e012a | 63 | <section id="main" class="main" role="main"> |
f6e330bf | 64 | <div class="layoutBoundary"> |
55b402a0 MW |
65 | {hascontent} |
66 | <aside class="sidebar boxesSidebarLeft"> | |
c734a302 MW |
67 | <div class="boxContainer"> |
68 | {content} | |
69 | {if MODULE_WCF_AD && $__disableAds|empty}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.sidebar.top')}{/if} | |
70 | ||
71 | {event name='boxesSidebarLeftTop'} | |
72 | ||
73 | {* WCF2.1 Fallback *} | |
74 | {if !$sidebar|empty} | |
75 | {if !$sidebarOrientation|isset || $sidebarOrientation == 'left'} | |
76 | {@$sidebar} | |
77 | {/if} | |
78 | {/if} | |
79 | ||
80 | {if !$sidebarLeft|empty} | |
81 | {@$sidebarLeft} | |
82 | {/if} | |
83 | ||
84 | {foreach from=$__wcf->getBoxHandler()->getBoxes('sidebarLeft') item=box} | |
2cd54d7f | 85 | {@$box->render()} |
c734a302 MW |
86 | {/foreach} |
87 | ||
88 | {event name='boxesSidebarLeftBottom'} | |
89 | ||
90 | {if MODULE_WCF_AD && $__disableAds|empty}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.sidebar.bottom')}{/if} | |
91 | {/content} | |
92 | </div> | |
55b402a0 MW |
93 | </aside> |
94 | {/hascontent} | |
cf1e012a AE |
95 | |
96 | <div id="content" class="content"> | |
97 | {if MODULE_WCF_AD && $__disableAds|empty}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.header.content')}{/if} | |
dec50963 | 98 | |
3e93caf9 MW |
99 | {if !$contentHeader|empty} |
100 | {@$contentHeader} | |
ff9e3598 MW |
101 | {else} |
102 | {if $contentTitle|empty} | |
103 | {if $__wcf->isLandingPage()} | |
104 | {capture assign='contentTitle'}{PAGE_TITLE|language}{/capture} | |
105 | {capture assign='contentDescription'}{PAGE_DESCRIPTION|language}{/capture} | |
106 | {elseif $__wcf->getActivePage() != null && $__wcf->getActivePage()->getTitle()} | |
107 | {capture assign='contentTitle'}{$__wcf->getActivePage()->getTitle()}{/capture} | |
108 | {/if} | |
109 | {/if} | |
110 | ||
111 | {if !$contentTitle|empty} | |
112 | <header class="contentHeader"> | |
113 | <div class="contentHeaderTitle"> | |
114 | <h1 class="contentTitle">{@$contentTitle}</h1> | |
115 | {if !$contentDescription|empty}<p class="contentHeaderDescription">{@$contentDescription}</p>{/if} | |
116 | </div> | |
117 | ||
118 | {hascontent} | |
119 | <nav class="contentHeaderNavigation"> | |
120 | <ul> | |
121 | {content} | |
122 | {if !$contentHeaderNavigation|empty}{@$contentHeaderNavigation}{/if} | |
123 | ||
124 | {event name='contentHeaderNavigation'} | |
125 | {/content} | |
126 | </ul> | |
127 | </nav> | |
128 | {/hascontent} | |
129 | </header> | |
130 | {/if} | |
3e93caf9 MW |
131 | {/if} |
132 | ||
133 | {include file='userNotice'} | |
134 | ||
55b402a0 MW |
135 | {hascontent} |
136 | <div class="boxesContentTop"> | |
c734a302 MW |
137 | <div class="boxContainer"> |
138 | {content} | |
139 | {foreach from=$__wcf->getBoxHandler()->getBoxes('contentTop') item=box} | |
2cd54d7f | 140 | {@$box->render()} |
c734a302 MW |
141 | {/foreach} |
142 | {/content} | |
143 | </div> | |
55b402a0 MW |
144 | </div> |
145 | {/hascontent} | |
146 | ||
cf1e012a | 147 | {event name='contents'} |