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:
@@ -2,4 +2,5 @@
|
||||
|
||||
{% block content %}
|
||||
{{ entry.content|raw }}
|
||||
<img src="{{ entry.slug }}/{{ entry.image }}?w=670&dpr=2" alt="">
|
||||
{% endblock %}
|
||||
|
@@ -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() ?>
|
@@ -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() ?>
|
@@ -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() ?>
|
@@ -1,4 +0,0 @@
|
||||
<?php namespace Flextype ?>
|
||||
<?php Themes::view('partials/head')->display() ?>
|
||||
<?= $entry['content'] ?>
|
||||
<?php Themes::view('partials/footer')->display() ?>
|
@@ -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() ?>
|
Reference in New Issue
Block a user