- if (strpos($root, '/') === FALSE) $root .= '/*';
- foreach (array_reverse(glob("$root/*.html")) as $url) {
- print "<article>";
+ if (!is_array($input)) $input = glob("$input/*.html");
+ print '<ul class="left">'."\n\n";
+ foreach (array_reverse($input) as $filename) {
+ $url = preg_replace('/\.html$/', '', $filename);
+ print '<li>';
+ if ($image = shownewsimage($url)) {
+ printf('<img src="%s" class="left" />', "/thumb/300x/".$image);
+ }
+ print '<article>';