Commit | Line | Data |
---|---|---|
4e975b2a JR |
1 | {capture assign='headContent'} |
2 | {if $pageNo < $pages} | |
3 | <link rel="next" href="{link controller='UnreadArticleList'}pageNo={@$pageNo+1}{/link}"> | |
4 | {/if} | |
5 | {if $pageNo > 1} | |
6 | <link rel="prev" href="{link controller='UnreadArticleList'}{if $pageNo > 2}pageNo={@$pageNo-1}{/if}{/link}"> | |
7 | {/if} | |
8 | {/capture} | |
9 | ||
10 | {capture assign='headerNavigation'} | |
11 | {if ARTICLE_ENABLE_VISIT_TRACKING} | |
12 | <li class="jsOnly"><a href="#" title="{lang}wcf.article.markAllAsRead{/lang}" class="markAllAsReadButton jsTooltip"><span class="icon icon16 fa-check"></span> <span class="invisible">{lang}wcf.article.markAllAsRead{/lang}</span></a></li> | |
13 | {/if} | |
14 | {/capture} | |
15 | ||
16 | {capture assign='sidebarRight'} | |
17 | {if !$labelGroups|empty} | |
18 | <form id="sidebarForm" method="post" action="{link application='wcf' controller=$controllerName object=$controllerObject}{/link}"> | |
19 | <section class="box"> | |
20 | <h2 class="boxTitle">{lang}wcf.label.label{/lang}</h2> | |
21 | ||
22 | <div class="boxContent"> | |
23 | <dl> | |
24 | {foreach from=$labelGroups item=labelGroup} | |
25 | {if $labelGroup|count} | |
26 | <dt>{$labelGroup->getTitle()}</dt> | |
27 | <dd> | |
28 | <ul class="labelList jsOnly"> | |
29 | <li class="dropdown labelChooser" id="labelGroup{@$labelGroup->groupID}" data-group-id="{@$labelGroup->groupID}"> | |
30 | <div class="dropdownToggle" data-toggle="labelGroup{@$labelGroup->groupID}"><span class="badge label">{lang}wcf.label.none{/lang}</span></div> | |
31 | <div class="dropdownMenu"> | |
32 | <ul class="scrollableDropdownMenu"> | |
33 | {foreach from=$labelGroup item=label} | |
a53c38ea | 34 | <li data-label-id="{@$label->labelID}"><span><span class="badge label{if $label->getClassNames()} {@$label->getClassNames()}{/if}">{$label->getTitle()}</span></span></li> |
4e975b2a JR |
35 | {/foreach} |
36 | </ul> | |
37 | </div> | |
38 | </li> | |
39 | </ul> | |
40 | <noscript> | |
41 | {foreach from=$labelGroups item=labelGroup} | |
42 | <select name="labelIDs[{@$labelGroup->groupID}]"> | |
43 | <option value="0">{lang}wcf.label.none{/lang}</option> | |
44 | <option value="-1">{lang}wcf.label.withoutSelection{/lang}</option> | |
45 | {foreach from=$labelGroup item=label} | |
a53c38ea | 46 | <option value="{@$label->labelID}"{if $labelIDs[$labelGroup->groupID]|isset && $labelIDs[$labelGroup->groupID] == $label->labelID} selected{/if}>{$label->getTitle()}</option> |
4e975b2a JR |
47 | {/foreach} |
48 | </select> | |
49 | {/foreach} | |
50 | </noscript> | |
51 | </dd> | |
52 | {/if} | |
53 | {/foreach} | |
54 | </dl> | |
55 | <div class="formSubmit"> | |
56 | <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s"> | |
57 | </div> | |
58 | </div> | |
59 | </section> | |
60 | </form> | |
61 | ||
62 | <script data-relocate="true"> | |
63 | $(function() { | |
64 | WCF.Language.addObject({ | |
65 | 'wcf.label.none': '{lang}wcf.label.none{/lang}', | |
66 | 'wcf.label.withoutSelection': '{lang}wcf.label.withoutSelection{/lang}' | |
67 | }); | |
68 | ||
69 | new WCF.Label.Chooser({ {implode from=$labelIDs key=groupID item=labelID}{@$groupID}: {@$labelID}{/implode} }, '#sidebarForm', undefined, true); | |
70 | }); | |
71 | </script> | |
72 | {/if} | |
73 | {/capture} | |
74 | ||
75 | {include file='header'} | |
76 | ||
77 | {hascontent} | |
78 | <div class="paginationTop"> | |
79 | {content} | |
80 | {pages print=true assign='pagesLinks' controller='UnreadArticleList' link="pageNo=%d"} | |
81 | {/content} | |
82 | </div> | |
83 | {/hascontent} | |
84 | ||
85 | {if $objects|count} | |
86 | <div class="section"> | |
87 | {include file='articleListItems'} | |
88 | </div> | |
89 | {else} | |
fc7cf040 | 90 | <p class="info" role="status">{lang}wcf.global.noItems{/lang}</p> |
4e975b2a JR |
91 | {/if} |
92 | ||
93 | <footer class="contentFooter"> | |
94 | {hascontent} | |
95 | <div class="paginationBottom"> | |
96 | {content}{@$pagesLinks}{/content} | |
97 | </div> | |
98 | {/hascontent} | |
99 | ||
100 | {hascontent} | |
101 | <nav class="contentFooterNavigation"> | |
102 | <ul> | |
103 | {content}{event name='contentFooterNavigation'}{/content} | |
104 | </ul> | |
105 | </nav> | |
106 | {/hascontent} | |
107 | </footer> | |
108 | ||
109 | {if ARTICLE_ENABLE_VISIT_TRACKING} | |
110 | <script data-relocate="true"> | |
111 | require(['WoltLabSuite/Core/Ui/Article/MarkAllAsRead'], function(UiArticleMarkAllAsRead) { | |
112 | UiArticleMarkAllAsRead.init(); | |
113 | }); | |
114 | </script> | |
115 | {/if} | |
116 | ||
117 | {include file='footer'} |