1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-12 16:14:16 +02:00

Flextype Slim Integration - next round of integration

This commit is contained in:
Awilum
2019-03-04 16:28:40 +03:00
parent 5b6b6ee73a
commit e7cc5ef25b
2 changed files with 0 additions and 34 deletions

View File

@@ -2,7 +2,6 @@
<html lang="{{ registry.settings.locale }}">
<head>
{% block head %}
<meta charset="utf-8" />
<meta charset="{{ registry.settings.charset|lower }}">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="{% if entry.description %}{{ entry.description }}{% else %}{{ registry.settings.description }}{% endif %}">

View File

@@ -1,33 +0,0 @@
<?php namespace Flextype ?>
<?php use Flextype\Component\{Event\Event, Http\Http, Registry\Registry, Assets\Assets, Text\Text, Html\Html} ?>
<!doctype html>
<html lang="<?= Registry::get('settings.locale') ?>">
<head>
<meta charset="<?= Text::lowercase(Registry::get('settings.charset')); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="<?= (isset($entry['description']) ? Html::toText($entry['description']) : Html::toText(Registry::get('settings.description'))) ?>">
<meta name="keywords" content="<?= (isset($entry['keywords']) ? $entry['keywords'] : Registry::get('settings.keywords')) ?>">
<meta name="robots" content="<?= (isset($entry['robots']) ? $entry['robots'] : Registry::get('settings.robots')) ?>">
<meta name="generator" content="Powered by Flextype <?= Flextype::VERSION ?>" />
<?php Event::dispatch('onThemeMeta') ?>
<title><?= Html::toText($entry['title']) ?> | <?= Html::toText(Registry::get('settings.title')) ?></title>
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700' rel='stylesheet' type='text/css'>
<?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 $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 endif ?>
<?php Event::dispatch('onThemeHeader') ?>
</head>
<body>
<?php Themes::view('partials/navigation')->display() ?>
<main role="main" class="container content">