Browse Source

Merge pull request #7402 from MrPetovan/bug/7401-node-settings-style

Ensures node theme settings are used to render theme embed
pull/7403/head
Michael Vogel 2 months ago
parent
commit
dcebf53ecf
No account linked to committer's email address
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/Module/Admin/Themes/Embed.php

+ 3
- 0
src/Module/Admin/Themes/Embed.php View File

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

Loading…
Cancel
Save