mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:35:30 +00:00
When template "none" is used in a webpage layout, then the contents of the page should be the sole output, with no other code before or after the page element content.
This commit is contained in:
parent
bda9a833ba
commit
8ad2b3e7a1
2 changed files with 10 additions and 0 deletions
|
@ -1541,6 +1541,15 @@ function prepare_page($item) {
|
|||
// the template will get passed an unobscured title.
|
||||
|
||||
$body = prepare_body($item, true);
|
||||
if(App::$page['template'] == 'none') {
|
||||
$tpl = 'page_display_empty.tpl';
|
||||
|
||||
return replace_macros(get_markup_template($tpl), array(
|
||||
'$body' => $body['html']
|
||||
));
|
||||
|
||||
}
|
||||
|
||||
$tpl = get_pconfig($item['uid'], 'system', 'pagetemplate');
|
||||
if (! $tpl)
|
||||
$tpl = 'page_display.tpl';
|
||||
|
|
1
view/tpl/page_display_empty.tpl
Normal file
1
view/tpl/page_display_empty.tpl
Normal file
|
@ -0,0 +1 @@
|
|||
{{$body}}
|
Loading…
Reference in a new issue