X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/e23ce7dc52392f928bf5879605da57e4bf7a7823..bae682c87abd4a43231496979963a6bbb66ecc4e:/nieuws/index.php diff --git a/nieuws/index.php b/nieuws/index.php index 11e305e..7397357 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -12,6 +12,25 @@ if ($page and !is_numeric($page)) { if ($article->image) { $Place['image'] = "https://lijtweg.nl/".$article->thumb('600x'); } + if (!empty($User['admin'])) { + $taglist = []; + foreach (glob("$Page/.tags/*") as $tagpath) { + $tagname = pathinfo($tagpath, PATHINFO_BASENAME); + $tagvalue = file_exists("$tagpath/$year-$page.html"); + $tagtarget = is_writable($tagpath); + $taglist[] = sprintf( + '' . + '', + "tags[$tagname]", $tagname, "tag-$tagname", + $tagvalue ? ' checked' : '', + ' onclick="return false"', + ucfirst($tagname) + ); + } + printf("

Tags: %s

\n", + implode("\n\t", $taglist) + ); + } if ($replyform) { print placeholder_include('nieuws/replies'); }