Commit | Line | Data |
---|---|---|
20d9e49b | 1 | {capture append='headContent'} |
a5a4f02d | 2 | {if $pageNo < $pages} |
e5f9b56c | 3 | <link rel="next" href="{link controller='ArticleList'}pageNo={@$pageNo+1}{/link}"> |
a5a4f02d MW |
4 | {/if} |
5 | {if $pageNo > 1} | |
e5f9b56c | 6 | <link rel="prev" href="{link controller='ArticleList'}{if $pageNo > 2}pageNo={@$pageNo-1}{/if}{/link}"> |
a5a4f02d MW |
7 | {/if} |
8 | ||
9 | {if $__wcf->getUser()->userID} | |
36583b62 | 10 | <link rel="alternate" type="application/rss+xml" title="{lang}wcf.global.button.rss{/lang}" href="{link controller='ArticleRssFeed'}at={@$__wcf->getUser()->userID}-{@$__wcf->getUser()->accessToken}{/link}"> |
a5a4f02d | 11 | {else} |
36583b62 | 12 | <link rel="alternate" type="application/rss+xml" title="{lang}wcf.global.button.rss{/lang}" href="{link controller='ArticleRssFeed'}{/link}"> |
a5a4f02d MW |
13 | {/if} |
14 | {/capture} | |
15 | ||
63adbb95 | 16 | {capture assign='contentHeaderNavigation'} |
d5a3aa74 | 17 | {if $__wcf->getSession()->getPermission('admin.content.article.canManageArticle') || $__wcf->getSession()->getPermission('admin.content.article.canManageOwnArticles') || $__wcf->getSession()->getPermission('admin.content.article.canContributeArticle')} |
e418f0f0 | 18 | {if $availableLanguages|count > 1} |
ab43711a | 19 | <li><a href="#" class="button buttonPrimary jsButtonArticleAdd">{icon name='plus'} <span>{lang}wcf.acp.article.add{/lang}</span></a></li> |
e418f0f0 | 20 | {else} |
ab43711a | 21 | <li><a href="{link controller='ArticleAdd'}{/link}" class="button buttonPrimary">{icon name='plus'} <span>{lang}wcf.acp.article.add{/lang}</span></a></li> |
e418f0f0 | 22 | {/if} |
63adbb95 AE |
23 | {/if} |
24 | {/capture} | |
a3a2ee97 | 25 | |
cfa077b1 AE |
26 | {capture assign='sidebarRight'} |
27 | {if !$labelGroups|empty} | |
28 | <form id="sidebarForm" method="post" action="{link application='wcf' controller=$controllerName object=$controllerObject}{/link}"> | |
29 | <section class="box"> | |
30 | <h2 class="boxTitle">{lang}wcf.label.label{/lang}</h2> | |
31 | ||
32 | <div class="boxContent"> | |
33 | <dl> | |
b1c1494f | 34 | {include file='__labelSelection'} |
cfa077b1 AE |
35 | </dl> |
36 | <div class="formSubmit"> | |
37 | <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s"> | |
38 | </div> | |
39 | </div> | |
40 | </section> | |
41 | </form> | |
42 | ||
43 | <script data-relocate="true"> | |
44 | $(function() { | |
45 | WCF.Language.addObject({ | |
e2e8c155 MW |
46 | 'wcf.label.none': '{jslang}wcf.label.none{/jslang}', |
47 | 'wcf.label.withoutSelection': '{jslang}wcf.label.withoutSelection{/jslang}' | |
cfa077b1 AE |
48 | }); |
49 | ||
8c5300f1 | 50 | new WCF.Label.Chooser({ {implode from=$labelIDs key=groupID item=labelID}{@$groupID}: {@$labelID}{/implode} }, '#sidebarForm', undefined, true); |
cfa077b1 AE |
51 | }); |
52 | </script> | |
53 | {/if} | |
54 | {/capture} | |
55 | ||
3486503d | 56 | {assign var='additionalLinkParameters' value=''} |
aac0db74 | 57 | {if $user}{capture append='additionalLinkParameters'}&userID={@$user->userID}{/capture}{/if} |
3486503d MW |
58 | {if $labelIDs|count}{capture append='additionalLinkParameters'}{foreach from=$labelIDs key=labelGroupID item=labelID}&labelIDs[{@$labelGroupID}]={@$labelID}{/foreach}{/capture}{/if} |
59 | ||
9ba4fe51 MW |
60 | {capture assign='contentInteractionPagination'} |
61 | {pages print=true assign='pagesLinks' controller='ArticleList' link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder$additionalLinkParameters"} | |
62 | {/capture} | |
63 | ||
64 | {capture assign='contentInteractionButtons'} | |
65 | <div class="contentInteractionButton dropdown jsOnly"> | |
eecd78e1 | 66 | <button type="button" class="button small dropdownToggle"> |
0b72d8e4 | 67 | {if $sortOrder === 'ASC'} |
ab43711a | 68 | {icon name='arrow-down-short-wide'} |
ae4dd172 | 69 | {else} |
ab43711a | 70 | {icon name='arrow-down-wide-short'} |
ae4dd172 AE |
71 | {/if} |
72 | <span>{lang}wcf.article.button.sort{/lang}</span> | |
61b4c5c6 | 73 | </button> |
9ba4fe51 | 74 | <ul class="dropdownMenu"> |
2d510562 AE |
75 | <li> |
76 | <a href="{link controller='ArticleList'}pageNo={@$pageNo}{if $user}&userID={@$user->userID}{/if}&sortField=title&sortOrder={if $sortField == 'title' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}"> | |
77 | {lang}wcf.global.title{/lang} | |
78 | {if $sortField == 'title'} | |
79 | {if $sortOrder === 'ASC'} | |
ab43711a | 80 | {icon name='caret-up' type='solid'} |
2d510562 | 81 | {else} |
ab43711a | 82 | {icon name='caret-down' type='solid'} |
2d510562 AE |
83 | {/if} |
84 | {/if} | |
85 | </a> | |
86 | </li> | |
87 | <li> | |
88 | <a href="{link controller='ArticleList'}pageNo={@$pageNo}{if $user}&userID={@$user->userID}{/if}&sortField=time&sortOrder={if $sortField == 'time' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}"> | |
89 | {lang}wcf.global.date{/lang} | |
90 | {if $sortField == 'time'} | |
91 | {if $sortOrder === 'ASC'} | |
ab43711a | 92 | {icon name='caret-up' type='solid'} |
2d510562 | 93 | {else} |
ab43711a | 94 | {icon name='caret-down' type='solid'} |
2d510562 AE |
95 | {/if} |
96 | {/if} | |
97 | </a> | |
98 | </li> | |
9ba4fe51 MW |
99 | |
100 | {event name='sortOptions'} | |
101 | </ul> | |
a5a4f02d | 102 | </div> |
eecd78e1 | 103 | <button type="button" class="markAllAsReadButton contentInteractionButton button small jsOnly">{icon name='check'} <span>{lang}wcf.global.button.markAllAsRead{/lang}</span></button> |
9ba4fe51 MW |
104 | {/capture} |
105 | ||
106 | {capture assign='contentInteractionDropdownItems'} | |
36583b62 | 107 | <li><a rel="alternate" href="{if $__wcf->getUser()->userID}{link controller='ArticleRssFeed'}at={@$__wcf->getUser()->userID}-{@$__wcf->getUser()->accessToken}{/link}{else}{link controller='ArticleRssFeed'}{/link}{/if}" class="rssFeed">{lang}wcf.global.button.rss{/lang}</a></li> |
9ba4fe51 MW |
108 | {/capture} |
109 | ||
110 | {include file='header'} | |
a5a4f02d MW |
111 | |
112 | {if $objects|count} | |
113 | <div class="section"> | |
114 | {include file='articleListItems'} | |
115 | </div> | |
116 | {else} | |
a14d7068 | 117 | <woltlab-core-notice type="info">{lang}wcf.global.noItems{/lang}</woltlab-core-notice> |
a5a4f02d MW |
118 | {/if} |
119 | ||
120 | <footer class="contentFooter"> | |
121 | {hascontent} | |
122 | <div class="paginationBottom"> | |
123 | {content}{@$pagesLinks}{/content} | |
124 | </div> | |
125 | {/hascontent} | |
126 | ||
127 | {hascontent} | |
128 | <nav class="contentFooterNavigation"> | |
129 | <ul> | |
130 | {content}{event name='contentFooterNavigation'}{/content} | |
131 | </ul> | |
132 | </nav> | |
133 | {/hascontent} | |
134 | </footer> | |
135 | ||
e9217d79 | 136 | <script data-relocate="true"> |
5f71db07 MW |
137 | require(['WoltLabSuite/Core/Ui/Article/MarkAllAsRead'], ({ setup }) => { |
138 | setup(); | |
e9217d79 MW |
139 | }); |
140 | </script> | |
ce6f758b | 141 | |
d5a3aa74 | 142 | {if $__wcf->getSession()->getPermission('admin.content.article.canManageArticle') || $__wcf->getSession()->getPermission('admin.content.article.canManageOwnArticles') || $__wcf->getSession()->getPermission('admin.content.article.canContributeArticle')} |
b54fdcc0 | 143 | {include file='shared_articleAddDialog'} |
5a723fd0 | 144 | {/if} |
c3476132 | 145 | |
a5a4f02d | 146 | {include file='footer'} |