Ensures node theme settings are used to render theme embed

This commit is contained in:
Hypolite Petovan 2019-07-17 23:25:22 -04:00
parent 4fc3eb8f06
commit 477a84a8c4
1 changed files with 3 additions and 0 deletions

View File

@ -77,6 +77,9 @@ class Embed extends BaseAdminModule
}
}
// Overrides normal theme style include to strip user param to show embedded theme settings
Renderer::$theme['stylesheet'] = 'view/theme/' . $theme . '/style.pcss';
$t = Renderer::getMarkupTemplate('admin/addons/embed.tpl');
return Renderer::replaceMacros($t, [
'$action' => '/admin/themes/' . $theme . '/embed?mode=minimal',