diff options
author | Thomas Willingham <founder@kakste.com> | 2013-11-15 15:44:23 +0000 |
---|---|---|
committer | Thomas Willingham <founder@kakste.com> | 2013-11-15 15:44:23 +0000 |
commit | 7f1253ed112d318a25c22b267354b94af599af38 (patch) | |
tree | 95b0f97dcf165f55ede49c2079e250320faa5876 | |
parent | d06fd4069612b9063a93ca6361aa4780f67f4b41 (diff) | |
download | volse-hubzilla-7f1253ed112d318a25c22b267354b94af599af38.tar.gz volse-hubzilla-7f1253ed112d318a25c22b267354b94af599af38.tar.bz2 volse-hubzilla-7f1253ed112d318a25c22b267354b94af599af38.zip |
Still use page_display.tpl for pages.
-rw-r--r-- | mod/page.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/mod/page.php b/mod/page.php index 403016eb2..38f40ddd6 100644 --- a/mod/page.php +++ b/mod/page.php @@ -112,7 +112,16 @@ function page_content(&$a) { xchan_query($r); $r = fetch_post_tags($r,true); - $o .= prepare_body($r[0],true); - return $o; + $body = prepare_body($r[0],true); + + return $o . replace_macros(get_markup_template('page_display.tpl'),array( + '$author' => (($naked) ? '' : $item['author']['xchan_name']), + '$auth_url' => (($naked) ? '' : $item['author']['xchan_url']), + '$date' => (($naked) ? '' : datetime_convert('UTC',date_default_timezone_get(),$item['created'],'Y-m-d H:i')), + '$title' => smilies(bbcode($item['title'])), + '$body' => $body + )); } + + |