diff options
author | friendica <info@friendica.com> | 2013-09-04 21:24:57 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-09-04 21:24:57 -0700 |
commit | 99ea251b12f9bf361daf8abd96f6b3fab7023aa7 (patch) | |
tree | 50e778441b56c7dea0168941d11622079e308b5e /include/conversation.php | |
parent | ba283028118c6ad7af9d9ba3586f2f55a10e5cb8 (diff) | |
download | volse-hubzilla-99ea251b12f9bf361daf8abd96f6b3fab7023aa7.tar.gz volse-hubzilla-99ea251b12f9bf361daf8abd96f6b3fab7023aa7.tar.bz2 volse-hubzilla-99ea251b12f9bf361daf8abd96f6b3fab7023aa7.zip |
provide templating options in comanche for the underlying webpage element - in this case the way the author is displayed. Leave this open for other forms templating options.
Diffstat (limited to 'include/conversation.php')
-rw-r--r-- | include/conversation.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/conversation.php b/include/conversation.php index 2b568c35e..0c1479356 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1262,7 +1262,13 @@ function render_location_default($item) { function prepare_page($item) { + $a = get_app(); $naked = ((get_pconfig($item['uid'],'system','nakedpage')) ? 1 : 0); + if(array_key_exists('webpage',$a->layout) && array_key_exists('authored',$a->layout['webpage'])) { + if($a->layout['webpage']['authored'] === 'none') + $naked = 1; + // ... other possible options + } return replace_macros(get_markup_template('page_display.tpl'),array( '$author' => (($naked) ? '' : $item['author']['xchan_name']), |