X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/72fc7bdc6b1dfd858c108c578c8d73a5ad40cbcd..v4.5-23-gb9757db578:/widget/sitemap.php diff --git a/widget/sitemap.php b/widget/sitemap.php index 9b03e2f..42bf7df 100644 --- a/widget/sitemap.php +++ b/widget/sitemap.php @@ -1,32 +1,11 @@ getFilename()[0] === '.') { - # skip hidden files and directories - return FALSE; - } - if ($current->isLink()) { - # ignore symlinks, original contents only - return FALSE; - } - return $current->isDir() - || preg_match('/\.html$/', $current->getFilename()); - } -); - +# list article details +$search = new PageSearch($Page->place[0] ?? '.'); print '
%s", - preg_replace('/\n(.*)/s', ' \1', $article->teaser) - ); - } +foreach ($search->files() as $ref => $sorted) { + $Page->place[0] = $ref; + print '