Merge branch '5.2' into 5.3
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / ampFooter.tpl
CommitLineData
6a4d8742
MW
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}
c5dd767e 9 {if $menuItemNode->getDepth() == 1 || $menuItemNode->getParentNode()->isActiveNode()}
6a4d8742 10 <li>
a53c38ea 11 <a href="{$menuItemNode->getURL()}">{$menuItemNode->getTitle()}</a>
6a4d8742
MW
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>
9975a41b 21 {if $__wcf->getBoxHandler()->getBoxByIdentifier('com.woltlab.wcf.FooterMenu')}
b9641e80
MW
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}
9975a41b 40 {/if}
6a4d8742
MW
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 <li><a href="{$breadcrumb->getURL()}">{$breadcrumb->getLabel()}</a></li>
46 {assign var=__breadcrumbsDepth value=$__breadcrumbsDepth + 1}
47 {/foreach}
48 </ol>
49 </amp-sidebar>
50
51 {if MODULE_COOKIE_POLICY_PAGE && !$__wcf->user->userID}
52 <amp-user-notification layout="nodisplay" id="cookie-policy-notice">
53 {lang}wcf.page.cookiePolicy.info{/lang}
54 <button on="tap:cookie-policy-notice.dismiss">{lang}wcf.global.button.close{/lang}</button>
55 </amp-user-notification>
56 {/if}
57
58 <footer class="footer">
59 <div class="copyright">{lang}wcf.page.copyright{/lang}</div>
60 </footer>
61 </body>
62</html>