]> git.mxchange.org Git - friendica.git/commitdiff
Ensures node theme settings are used to render theme embed
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 18 Jul 2019 03:25:22 +0000 (23:25 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 18 Jul 2019 03:25:22 +0000 (23:25 -0400)
src/Module/Admin/Themes/Embed.php

index dc41d11a485a3c802f5fb25ec5b1af34aaafc950..904d9eb46e8dcc1f6098b624c745bdba0388e1eb 100644 (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',