From 618f9e3d77ecc2056748bb42ab8681f5750cd0fb Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sat, 23 Nov 2013 00:11:06 +0100 Subject: [PATCH] Any post type can be featured now Automatic generator still searches only for images though. --- src/Views/index-index.phtml | 6 +++--- src/Views/post-file-render.phtml | 23 +++++++++++++++++++++++ src/Views/post-view.phtml | 12 +----------- 3 files changed, 27 insertions(+), 14 deletions(-) create mode 100644 src/Views/post-file-render.phtml diff --git a/src/Views/index-index.phtml b/src/Views/index-index.phtml index 205af2bf..6424533e 100644 --- a/src/Views/index-index.phtml +++ b/src/Views/index-index.phtml @@ -7,9 +7,9 @@ context->featuredPost)): ?>
- - <?php echo $this->context->featuredPost->name ?> - + context->imageLink = \Chibi\UrlHelper::route('post', 'view', ['id' => $this->context->featuredPost->id]) ?> + context->transport->post = $this->context->featuredPost ?> + renderFile('post-file-render') ?>