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
@ -1541,6 +1541,15 @@ function prepare_page($item) {
|
|||||||
// the template will get passed an unobscured title.
|
// the template will get passed an unobscured title.
|
||||||
|
|
||||||
$body = prepare_body($item, true);
|
$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');
|
$tpl = get_pconfig($item['uid'], 'system', 'pagetemplate');
|
||||||
if (! $tpl)
|
if (! $tpl)
|
||||||
$tpl = 'page_display.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}}
|
Reference in New Issue
Block a user