Commit | Line | Data |
---|---|---|
a5a4f02d MW |
1 | {capture assign='headContent'} |
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} | |
b37952e9 | 10 | <link rel="alternate" type="application/rss+xml" title="{lang}wcf.global.button.rss{/lang}" href="{link controller='ArticleFeed'}at={@$__wcf->getUser()->userID}-{@$__wcf->getUser()->accessToken}{/link}"> |
a5a4f02d | 11 | {else} |
b37952e9 | 12 | <link rel="alternate" type="application/rss+xml" title="{lang}wcf.global.button.rss{/lang}" href="{link controller='ArticleFeed'}{/link}"> |
a5a4f02d MW |
13 | {/if} |
14 | {/capture} | |
15 | ||
16 | {capture assign='headerNavigation'} | |
b37952e9 | 17 | <li><a rel="alternate" href="{if $__wcf->getUser()->userID}{link controller='ArticleFeed'}at={@$__wcf->getUser()->userID}-{@$__wcf->getUser()->accessToken}{/link}{else}{link controller='ArticleFeed'}{/link}{/if}" title="{lang}wcf.global.button.rss{/lang}" class="jsTooltip"><span class="icon icon16 fa-rss"></span> <span class="invisible">{lang}wcf.global.button.rss{/lang}</span></a></li> |
ce6f758b MW |
18 | {if ARTICLE_ENABLE_VISIT_TRACKING} |
19 | <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> | |
20 | {/if} | |
a5a4f02d MW |
21 | {/capture} |
22 | ||
78499f2e | 23 | {if $__wcf->getSession()->getPermission('admin.content.article.canManageArticle') || $__wcf->getSession()->getPermission('admin.content.article.canContributeArticle')} |
a3a2ee97 MW |
24 | {capture assign='contentHeaderNavigation'} |
25 | <li><a href="{link controller='ArticleAdd' isACP=true}{/link}" class="button"><span class="icon icon16 fa-pencil"></span> <span>{lang}wcf.acp.article.add{/lang}</span></a></li> | |
26 | {/capture} | |
27 | {/if} | |
28 | ||
a5a4f02d MW |
29 | {include file='header'} |
30 | ||
31 | {hascontent} | |
32 | <div class="paginationTop"> | |
33 | {content} | |
34 | {pages print=true assign='pagesLinks' controller='ArticleList' link="pageNo=%d"} | |
35 | {/content} | |
36 | </div> | |
37 | {/hascontent} | |
38 | ||
39 | {if $objects|count} | |
40 | <div class="section"> | |
41 | {include file='articleListItems'} | |
42 | </div> | |
43 | {else} | |
44 | <p class="info">{lang}wcf.global.noItems{/lang}</p> | |
45 | {/if} | |
46 | ||
47 | <footer class="contentFooter"> | |
48 | {hascontent} | |
49 | <div class="paginationBottom"> | |
50 | {content}{@$pagesLinks}{/content} | |
51 | </div> | |
52 | {/hascontent} | |
53 | ||
54 | {hascontent} | |
55 | <nav class="contentFooterNavigation"> | |
56 | <ul> | |
57 | {content}{event name='contentFooterNavigation'}{/content} | |
58 | </ul> | |
59 | </nav> | |
60 | {/hascontent} | |
61 | </footer> | |
62 | ||
ce6f758b MW |
63 | {if ARTICLE_ENABLE_VISIT_TRACKING} |
64 | <script data-relocate="true"> | |
65 | require(['WoltLabSuite/Core/Ui/Article/MarkAllAsRead'], function(UiArticleMarkAllAsRead) { | |
66 | UiArticleMarkAllAsRead.init(); | |
67 | }); | |
68 | </script> | |
69 | {/if} | |
70 | ||
a5a4f02d | 71 | {include file='footer'} |