diff options
author | friendica <info@friendica.com> | 2013-09-03 17:49:47 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-09-03 17:49:47 -0700 |
commit | c360bf3252d3a6ec330a80ba70c19af9848a44e1 (patch) | |
tree | 9b5d94185cb94d6f02506c314415d229e6a8359d | |
parent | 7b84b8480fe825927ca646c427da5eb78c8b8dba (diff) | |
download | volse-hubzilla-c360bf3252d3a6ec330a80ba70c19af9848a44e1.tar.gz volse-hubzilla-c360bf3252d3a6ec330a80ba70c19af9848a44e1.tar.bz2 volse-hubzilla-c360bf3252d3a6ec330a80ba70c19af9848a44e1.zip |
personal config to just show the page content without author info - probably this needs to be a page option
-rw-r--r-- | include/conversation.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/conversation.php b/include/conversation.php index 45a744dd8..5888d3679 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -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']) )); |