From 477a84a8c4ffc755ac0232bb83f2147f8ee1966b Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 17 Jul 2019 23:25:22 -0400 Subject: [PATCH] Ensures node theme settings are used to render theme embed --- src/Module/Admin/Themes/Embed.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Module/Admin/Themes/Embed.php b/src/Module/Admin/Themes/Embed.php index dc41d11a4..904d9eb46 100644 --- a/src/Module/Admin/Themes/Embed.php +++ b/src/Module/Admin/Themes/Embed.php @@ -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',