aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2013-11-15 15:44:23 +0000
committerThomas Willingham <founder@kakste.com>2013-11-15 15:44:23 +0000
commit7f1253ed112d318a25c22b267354b94af599af38 (patch)
tree95b0f97dcf165f55ede49c2079e250320faa5876 /mod
parentd06fd4069612b9063a93ca6361aa4780f67f4b41 (diff)
downloadvolse-hubzilla-7f1253ed112d318a25c22b267354b94af599af38.tar.gz
volse-hubzilla-7f1253ed112d318a25c22b267354b94af599af38.tar.bz2
volse-hubzilla-7f1253ed112d318a25c22b267354b94af599af38.zip
Still use page_display.tpl for pages.
Diffstat (limited to 'mod')
-rw-r--r--mod/page.php13
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
+ ));
}
+
+