mirror of
https://github.com/flextype/flextype.git
synced 2025-08-12 16:14:16 +02:00
Flextype Core: Default theme - using new Assets Component 1.0.3
This commit is contained in:
@@ -18,12 +18,14 @@
|
||||
|
||||
<?php Assets::add('css', Http::getBaseUrl() . '/site/themes/' . Registry::get('settings.theme') . '/assets/dist/css/bootstrap.min.css', 'site', 1) ?>
|
||||
<?php Assets::add('css', Http::getBaseUrl() . '/site/themes/' . Registry::get('settings.theme') . '/assets/dist/css/default.min.css', 'site', 2) ?>
|
||||
<?php foreach (Assets::get('css', 'site') as $assets_by_priorities): ?>
|
||||
<?php foreach ($assets_by_priorities as $assets): ?>
|
||||
<link href="<?= $assets['asset'] ?>" rel="stylesheet">
|
||||
<?php $assets_site = Assets::get('css', 'site') ?>
|
||||
<?php if (count($assets_site) > 0): ?>
|
||||
<?php foreach ($assets_site as $assets_by_priorities): ?>
|
||||
<?php foreach ($assets_by_priorities as $assets): ?>
|
||||
<link href="<?= $assets['asset'] ?>" rel="stylesheet">
|
||||
<?php endforeach ?>
|
||||
<?php endforeach ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
<?php Event::dispatch('onThemeHeader') ?>
|
||||
</head>
|
||||
<body>
|
||||
|
@@ -1,9 +1,12 @@
|
||||
<?php namespace Flextype ?>
|
||||
<?php use Flextype\Component\{Event\Event, Http\Http, Registry\Registry, Assets\Assets} ?>
|
||||
<?php Assets::add('js', Http::getBaseUrl() . '/site/themes/' . Registry::get('settings.theme') . '/assets/dist/js/default.min.js', 'site', 1) ?>
|
||||
<?php foreach (Assets::get('js', 'site') as $assets_by_priorities): ?>
|
||||
<?php foreach ($assets_by_priorities as $assets): ?>
|
||||
<script src="<?= $assets['asset'] ?>"></script>
|
||||
<?php $assets_site = Assets::get('js', 'site') ?>
|
||||
<?php if (count($assets_site) > 0): ?>
|
||||
<?php foreach ($assets_site as $assets_by_priorities): ?>
|
||||
<?php foreach ($assets_by_priorities as $assets): ?>
|
||||
<script src="<?= $assets['asset'] ?>"></script>
|
||||
<?php endforeach ?>
|
||||
<?php endforeach ?>
|
||||
<?php endforeach ?>
|
||||
<?php endif ?>
|
||||
<?php Event::dispatch('onThemeFooter') ?>
|
||||
|
Reference in New Issue
Block a user