personal config to just show the page content without author info - probably this needs to be a page option

This commit is contained in:
friendica 2013-09-03 17:49:47 -07:00
parent 7b84b8480f
commit c360bf3252

View file

@ -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'])
));