mirror of
https://github.com/flextype/flextype.git
synced 2025-08-16 01:54:28 +02:00
Default theme: new templates added
This commit is contained in:
5
site/themes/default/views/templates/blog-post.php
Normal file
5
site/themes/default/views/templates/blog-post.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php namespace Flextype ?>
|
||||
<?php Themes::view('partials/head')->display() ?>
|
||||
<h3><?= $entry['title'] ?></h3>
|
||||
<?= $entry['content'] ?>
|
||||
<?php Themes::view('partials/footer')->display() ?>
|
9
site/themes/default/views/templates/blog.php
Normal file
9
site/themes/default/views/templates/blog.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php namespace Flextype ?>
|
||||
<?php Themes::view('partials/head')->display() ?>
|
||||
<?php foreach (Entries::getEntries('blog') as $entry): ?>
|
||||
<a href="<?= $entry['url'] ?>">
|
||||
<h3><?= $entry['title'] ?></h3>
|
||||
<?= $entry['summary'] ?>
|
||||
</a>
|
||||
<?php endforeach ?>
|
||||
<?php Themes::view('partials/footer')->display() ?>
|
7
site/themes/default/views/templates/home.php
Normal file
7
site/themes/default/views/templates/home.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php namespace Flextype ?>
|
||||
<?php Themes::view('partials/head')->display() ?>
|
||||
<?= $entry['content'] ?>
|
||||
<?php foreach (Entries::getEntries('blog') as $post): ?>
|
||||
<?= $post['title'] ?>
|
||||
<?php endforeach ?>
|
||||
<?php Themes::view('partials/footer')->display() ?>
|
Reference in New Issue
Block a user