mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 23:55:19 +00:00
personal config to just show the page content without author info - probably this needs to be a page option
This commit is contained in:
parent
7b84b8480f
commit
c360bf3252
1 changed files with 5 additions and 3 deletions
|
@ -1262,10 +1262,12 @@ function render_location_default($item) {
|
|||
|
||||
function prepare_page($item) {
|
||||
|
||||
$naked = ((pconfig($item['uid'],'system','nakedpage')) ? 1 : 0);
|
||||
|
||||
return replace_macros(get_markup_template('page_display.tpl'),array(
|
||||
'$author' => $item['author']['xchan_name'],
|
||||
'$auth_url' => $item['author']['xchan_url'],
|
||||
'$date' => datetime_convert('UTC',date_default_timezone_get(),$item['created'],'Y-m-d H:i'),
|
||||
'$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' => prepare_text($item['body'],$item['mimetype'])
|
||||
));
|
||||
|
|
Loading…
Reference in a new issue