Browse Source

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

Ensures node theme settings are used to render theme embed
tags/2019.09
Michael Vogel 1 year ago
committed by GitHub
parent
commit
dcebf53ecf
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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
}
}

// 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',


Loading…
Cancel
Save