mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-09-30 03:28:58 +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);
|
$external = (mb_strpos($css, '//') === 0 || mb_strpos($css, 'http') === 0);
|
||||||
//if (self::getDeferred() && !self::webpackActive()) {
|
//if (self::getDeferred() && !self::webpackActive()) {
|
||||||
if ($external) {
|
if ((self::getDeferred() && !self::webpackActive()) || $external) {
|
||||||
self::$css[] = $css;
|
self::$css[] = $css;
|
||||||
} else {
|
} else {
|
||||||
WebpackTemplateProvider::loadCSS(self::get_url($css));
|
WebpackTemplateProvider::loadCSS(self::get_url($css));
|
||||||
|
@ -16,12 +16,12 @@
|
|||||||
<% include Header %>
|
<% include Header %>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main id="MainContent" class="page-content" data-ajax-region="LayoutAjax">
|
<div id="MainContent" class="page-content" data-ajax-region="LayoutAjax">
|
||||||
<% if $isFormResponse %>
|
<% if $isFormResponse %>
|
||||||
<%-- Legacy code compatibility --%>
|
<%-- Legacy code compatibility --%>
|
||||||
<% include MainContent Layout=$Layout %>
|
<% include MainContent Layout=$Layout %>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
</main>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<footer id="Footer" class="site-footer footer">
|
<footer id="Footer" class="site-footer footer">
|
||||||
|
Loading…
Reference in New Issue
Block a user