1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-13 00:24:15 +02:00

Flextype Slim Integration - next round of integration

This commit is contained in:
Awilum
2019-03-04 15:50:10 +03:00
parent 0034e80367
commit 5b6b6ee73a
3 changed files with 0 additions and 35 deletions

View File

@@ -1,8 +0,0 @@
<?php namespace Flextype ?>
<?php Themes::view('partials/tail')->display() ?>
<div class="powered">
Powered by <a href="http://flextype.org">Flextype</a>
</div>
</main>
</body>
</html>

View File

@@ -1,15 +0,0 @@
<?php namespace Flextype ?>
<?php use Flextype\Component\{Http\Http, Registry\Registry, Arr\Arr} ?>
<nav class="navbar navbar-expand-lg navbar-light bg-white border-bottom box-shadow">
<div class="container">
<a class="navbar-brand" href="<?= Http::getBaseUrl() ?>"><?= Registry::get('settings.title') ?></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end" id="navbarNav">
<ul class="navbar-nav">
</ul>
</div>
</div>
</nav>

View File

@@ -1,12 +0,0 @@
<?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 $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 endif ?>
<?php Event::dispatch('onThemeFooter') ?>