From 9d21c2d6552eb9d29f70733be4b7accd0da1e1b8 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 14 Oct 2016 16:59:41 +0200 Subject: [PATCH] Added publication status filter --- .../files/acp/templates/articleList.tpl | 20 ++++++++++++++++++- .../lib/acp/page/ArticleListPage.class.php | 14 ++++++++++++- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/articleList.tpl b/wcfsetup/install/files/acp/templates/articleList.tpl index 64bb36f548..a846d58d23 100644 --- a/wcfsetup/install/files/acp/templates/articleList.tpl +++ b/wcfsetup/install/files/acp/templates/articleList.tpl @@ -70,6 +70,19 @@ +
+
+
+ +
+
+ {event name='filterFields'} @@ -88,6 +101,7 @@ {if $title}{capture append=linkParameters}&title={@$title|rawurlencode}{/capture}{/if} {if $content}{capture append=linkParameters}&content={@$content|rawurlencode}{/capture}{/if} {if $username}{capture append=linkParameters}&username={@$username|rawurlencode}{/capture}{/if} + {if $publicationStatus != -1}{capture append=linkParameters}&publicationStatus={@$publicationStatus}{/capture}{/if} {pages print=true assign=pagesLinks controller="ArticleList" link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder$linkParameters"} {/content} @@ -136,7 +150,11 @@
-

{$article->title}

+

+ {if $article->publicationStatus == 0}{lang}wcf.acp.article.publicationStatus.unpublished{/lang}{/if} + {if $article->publicationStatus == 2}{lang}wcf.acp.article.publicationStatus.delayed{/lang}{/if} + {$article->title} +