mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 01:15:13 +00:00
Pluggable page templates
This commit is contained in:
parent
f7595cc11a
commit
9de5b6b905
1 changed files with 4 additions and 2 deletions
|
@ -1341,8 +1341,10 @@ function prepare_page($item) {
|
|||
// the template will get passed an unobscured title.
|
||||
|
||||
$body = prepare_body($item,true);
|
||||
|
||||
return replace_macros(get_markup_template('page_display.tpl'),array(
|
||||
$tpl = get_pconfig($item['uid'],'system','pagetemplate');
|
||||
if (! $tpl)
|
||||
$tpl = 'page_display.tpl';
|
||||
return replace_macros(get_markup_template($tpl),array(
|
||||
'$author' => (($naked) ? '' : $item['author']['xchan_name']),
|
||||
'$auth_url' => (($naked) ? '' : zid($item['author']['xchan_url'])),
|
||||
'$date' => (($naked) ? '' : datetime_convert('UTC',date_default_timezone_get(),$item['created'],'Y-m-d H:i')),
|
||||
|
|
Loading…
Reference in a new issue