mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
Compare commits
2 Commits
df6889416d
...
efa97aaaf3
Author | SHA1 | Date | |
---|---|---|---|
efa97aaaf3 | |||
b101030a43 |
@ -165,7 +165,7 @@ class DeferredRequirements implements TemplateGlobalProvider
|
||||
{
|
||||
$external = (mb_strpos($css, '//') === 0 || mb_strpos($css, 'http') === 0);
|
||||
//if (self::getDeferred() && !self::webpackActive()) {
|
||||
if ($external) {
|
||||
if ((self::getDeferred() && !self::webpackActive()) || $external) {
|
||||
self::$css[] = $css;
|
||||
} else {
|
||||
WebpackTemplateProvider::loadCSS(self::get_url($css));
|
||||
|
@ -16,12 +16,12 @@
|
||||
<% include Header %>
|
||||
</header>
|
||||
|
||||
<main id="MainContent" class="page-content" data-ajax-region="LayoutAjax">
|
||||
<div id="MainContent" class="page-content" data-ajax-region="LayoutAjax">
|
||||
<% if $isFormResponse %>
|
||||
<%-- Legacy code compatibility --%>
|
||||
<% include MainContent Layout=$Layout %>
|
||||
<% end_if %>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer id="Footer" class="site-footer footer">
|
||||
|
Loading…
Reference in New Issue
Block a user