Still use page_display.tpl for pages.

This commit is contained in:
Thomas Willingham 2013-11-15 15:44:23 +00:00
parent d06fd40696
commit 7f1253ed11

View File

@ -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
));
}