You can set layout to be embedded. The pages with embedded templates would be without header and footer sections:
$PAGE->set_pagelayout('embedded');
You can set layout to be embedded. The pages with embedded templates would be without header and footer sections:
$PAGE->set_pagelayout('embedded');