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 16:46:15 +03:00
parent e7cc5ef25b
commit 00327eaf61
6 changed files with 1 additions and 40 deletions

View File

@@ -2,4 +2,5 @@
{% block content %}
{{ entry.content|raw }}
<img src="{{ entry.slug }}/{{ entry.image }}?w=670&dpr=2" alt="">
{% endblock %}

View File

@@ -1,6 +0,0 @@
<?php namespace Flextype ?>
<?php Themes::view('partials/head')->display() ?>
<h1><?= $entry['title'] ?></h1>
<?= $entry['content'] ?>
<img src="<?= Images::getImageUrl($entry['slug'] . '/' . $entry['image'], ['w' => '670', 'dpr' => '2']) ?>">
<?php Themes::view('partials/footer')->display() ?>

View File

@@ -1,7 +0,0 @@
<?php namespace Flextype ?>
<?php Themes::view('partials/head')->display() ?>
<h1><?= $entry['title'] ?></h1>
<div class="blog-post">
<?= $entry['content'] ?>
</div>
<?php Themes::view('partials/footer')->display() ?>

View File

@@ -1,11 +0,0 @@
<?php namespace Flextype ?>
<?php Themes::view('partials/head')->display() ?>
<h1><?= $entry['title'] ?></h1>
<?php foreach (Entries::fetchAll('blog') as $entry): ?>
<a href="<?= $entry['url'] ?>" class="blog-post">
<h3><?= $entry['title'] ?></h3>
<p><?= $entry['summary'] ?></p>
<div><?= $entry['date'] ?></div>
</a>
<?php endforeach ?>
<?php Themes::view('partials/footer')->display() ?>

View File

@@ -1,4 +0,0 @@
<?php namespace Flextype ?>
<?php Themes::view('partials/head')->display() ?>
<?= $entry['content'] ?>
<?php Themes::view('partials/footer')->display() ?>

View File

@@ -1,12 +0,0 @@
<?php namespace Flextype ?>
<?php Themes::view('partials/head')->display() ?>
<?= $entry['content'] ?>
<?php foreach (Entries::fetchAll('blog', 'date', 'DESC', 0, 3) as $entry): ?>
<a href="<?= $entry['slug'] ?>" class="blog-post">
<h3><?= $entry['title'] ?></h3>
<p><?= $entry['summary'] ?></p>
<div><?= $entry['date'] ?></div>
</a>
<?php endforeach ?>
<a href="./blog" class="blog-read">Read the rest of the blog</a>
<?php Themes::view('partials/footer')->display() ?>