Merge branch '5.3'
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / ampFooter.tpl
1 </main>
2
3 <amp-sidebar id="sidebar" layout="nodisplay">
4 <button on="tap:sidebar.close">{lang}wcf.global.button.close{/lang}</button>
5
6 <h3>{lang}wcf.menu.page.navigation{/lang}</h3>
7 <ol>
8 {foreach from=$__wcf->getBoxHandler()->getBoxByIdentifier('com.woltlab.wcf.MainMenu')->getMenu()->getMenuItemNodeList() item=menuItemNode}
9 {if $menuItemNode->getDepth() == 1 || $menuItemNode->getParentNode()->isActiveNode()}
10 <li>
11 <a href="{$menuItemNode->getURL()}">{$menuItemNode->getTitle()}</a>
12
13 {if $menuItemNode->hasChildren() && $menuItemNode->isActiveNode()}<ol>{else}</li>{/if}
14
15 {if !$menuItemNode->hasChildren() && $menuItemNode->isLastSibling()}
16 {@"</ol></li>"|str_repeat:$menuItemNode->getOpenParentNodes()}
17 {/if}
18 {/if}
19 {/foreach}
20 </ol>
21 {if $__wcf->getBoxHandler()->getBoxByIdentifier('com.woltlab.wcf.FooterMenu')}
22 {hascontent}
23 <ol>
24 {content}
25 {foreach from=$__wcf->getBoxHandler()->getBoxByIdentifier('com.woltlab.wcf.FooterMenu')->getMenu()->getMenuItemNodeList() item=menuItemNode}
26 {if $menuItemNode->getDepth() == 1 || $menuItemNode->getParentNode()->isActiveNode()}
27 <li>
28 <a href="{$menuItemNode->getURL()}">{$menuItemNode->getTitle()}</a>
29
30 {if $menuItemNode->hasChildren() && $menuItemNode->isActiveNode()}<ol>{else}</li>{/if}
31
32 {if !$menuItemNode->hasChildren() && $menuItemNode->isLastSibling()}
33 {@"</ol></li>"|str_repeat:$menuItemNode->getOpenParentNodes()}
34 {/if}
35 {/if}
36 {/foreach}
37 {/content}
38 </ol>
39 {/hascontent}
40 {/if}
41 <h3>{lang}wcf.menu.page.location{/lang}</h3>
42 <ol class="breadcrumbs">
43 {assign var=__breadcrumbsDepth value=0}
44 {foreach from=$__wcf->getBreadcrumbs() item=$breadcrumb}
45 {* skip breadcrumbs that do not expose a visible label *}
46 {if $breadcrumb->getLabel()}
47 <li><a href="{$breadcrumb->getURL()}">{$breadcrumb->getLabel()}</a></li>
48 {assign var=__breadcrumbsDepth value=$__breadcrumbsDepth + 1}
49 {/if}
50 {/foreach}
51 </ol>
52 </amp-sidebar>
53
54 {if MODULE_COOKIE_POLICY_PAGE && !$__wcf->user->userID}
55 <amp-user-notification layout="nodisplay" id="cookie-policy-notice">
56 {lang}wcf.page.cookiePolicy.info{/lang}
57 <button on="tap:cookie-policy-notice.dismiss">{lang}wcf.global.button.close{/lang}</button>
58 </amp-user-notification>
59 {/if}
60
61 <footer class="footer">
62 <div class="copyright">{lang}wcf.page.copyright{/lang}</div>
63 </footer>
64 </body>
65 </html>