mirror of
https://github.com/flarum/framework.git
synced 2025-02-17 02:02:47 +08:00
Only apply custom CSS and header HTML on forum, not admin
This commit is contained in:
parent
2754a8c867
commit
40ebc13292
|
@ -51,6 +51,10 @@ class WebApp extends AbstractWebApp
|
|||
return $this->formatter->getJs();
|
||||
});
|
||||
|
||||
$view->getCss()->addString(function () {
|
||||
return $this->settings->get('custom_less');
|
||||
});
|
||||
|
||||
return $view;
|
||||
}
|
||||
|
||||
|
|
|
@ -131,10 +131,6 @@ abstract class AbstractWebApp
|
|||
|
||||
$css->addString($lessVariables);
|
||||
$localeCss->addString($lessVariables);
|
||||
|
||||
$css->addString(function () {
|
||||
return $this->settings->get('custom_less');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
{!! array_get($forum, 'attributes.headerHtml') !!}
|
||||
|
||||
<div id="app" class="App">
|
||||
|
||||
<div id="app-navigation" class="App-navigation"></div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user