git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mail: lay out sender and date as subheader
[minimedit.git]
/
widget
/
nieuws.php
diff --git
a/widget/nieuws.php
b/widget/nieuws.php
index 4f4fd454d1adada0fb8c081a892c27cdf2cba510..c12efc8db3348b5b262f1c24dfe77357832bc4d5 100644
(file)
--- a/
widget/nieuws.php
+++ b/
widget/nieuws.php
@@
-17,7
+17,7
@@
function shownews($input, $limit = 1000)
print '<div>';
printf(
'<h3><a href="/%s">%s <small class="date">%s</small></a></h3>',
print '<div>';
printf(
'<h3><a href="/%s">%s <small class="date">%s</small></a></h3>',
- $article->link, $article->title,
$article->date
+ $article->link, $article->title,
showdate($article->dateparts)
);
print $article->story;
print '</div>';
);
print $article->story;
print '</div>';
@@
-55,7
+55,7
@@
function printtoc($input, $class = FALSE)
$articles = (ltrim($Page->path, '/') ?: 'nieuws');
if (strpos($articles, '/') === FALSE) {
$articles = (ltrim($Page->path, '/') ?: 'nieuws');
if (strpos($articles, '/') === FALSE) {
- if (@$Place['view'] === 'toc') {
+ if (@$P
age->p
lace['view'] === 'toc') {
print "<div>\n";
foreach (array_reverse(glob("$articles/2???")) as $page) {
$year = basename($page, '.html');
print "<div>\n";
foreach (array_reverse(glob("$articles/2???")) as $page) {
$year = basename($page, '.html');
@@
-68,10
+68,11
@@
if (strpos($articles, '/') === FALSE) {
$articles .= '/????';
}
$articles .= '/????';
}
-if (@$Place['view'] === 'toc') {
+if (@$P
age->p
lace['view'] === 'toc') {
printtoc($articles);
return;
}
ob_start();
printtoc($articles);
return;
}
ob_start();
-shownews($articles, @$Place['n'] ?: 5);
+shownews($articles, @$Page->place['n'] ?: 5);
+$Page->raw = ob_get_clean();
print $Page->render();
print $Page->render();