git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nieuws: alternate cover image for .groot file name
[minimedit.git]
/
nieuws.php
diff --git
a/nieuws.php
b/nieuws.php
index 7127a545332171b144ebdb457396e5c1e38a5330..338a6b6693d2fdfee42b8303d09552888f10c723 100644
(file)
--- a/
nieuws.php
+++ b/
nieuws.php
@@
-2,8
+2,21
@@
include_once 'nieuws.inc.php';
$articles = (ltrim($Args, '/') ?: 'nieuws');
if (strpos($articles, '/') === FALSE) {
include_once 'nieuws.inc.php';
$articles = (ltrim($Args, '/') ?: 'nieuws');
if (strpos($articles, '/') === FALSE) {
+ if (@$Place['view'] === 'toc') {
+ foreach (array_reverse(glob("$articles/2???")) as $page) {
+ $year = basename($page, '.html');
+ printf('<h3><a href="/%s">%s</a></h3>'."\n", $page, $year);
+ printtoc($page, 'gallery');
+ }
+ return;
+ }
$articles .= '/????';
}
$articles .= '/????';
}
+
+if (@$Place['view'] === 'toc') {
+ printtoc($articles);
+ return;
+}
ob_start();
shownews($articles, @$Place['n'] ?: 5);
print getoutput();
ob_start();
shownews($articles, @$Place['n'] ?: 5);
print getoutput();