Skip to content
Snippets Groups Projects
Commit d258eee4 authored by Aspectis's avatar Aspectis Committed by Robert Lange
Browse files

refs #19118 [fid_bbi] add links to posts

parent 2c3932da
No related merge requests found
...@@ -10,14 +10,13 @@ $this->layout()->breadcrumbs = false; ...@@ -10,14 +10,13 @@ $this->layout()->breadcrumbs = false;
<div class="flex_2"> <div class="flex_2">
<h2 class="sr-only"><?=$this->translate('Recent Blog Posts')?></h2> <h2 class="sr-only"><?=$this->translate('Recent Blog Posts')?></h2>
<div class="posts"> <?php $posts = $this->rss(); ?>
<?php <?php if ($posts): ?>
$posts = $this->rss(); <div class="posts">
if ($posts): ?>
<?php foreach ($posts as $post): ?> <?php foreach ($posts as $post): ?>
<article class="post"> <article class="post">
<header class="post_header"> <header class="post_header">
<a class="post_link" href="#TODO"> <a class="post_link" href="<?=$post->link?>">
<h3 class="post_title"><?=$post->title?></h3> <h3 class="post_title"><?=$post->title?></h3>
<time class="post_date"><?=$post->date?></time> <time class="post_date"><?=$post->date?></time>
</a> </a>
...@@ -25,10 +24,8 @@ $this->layout()->breadcrumbs = false; ...@@ -25,10 +24,8 @@ $this->layout()->breadcrumbs = false;
<p class="post_excerpt"><?=$post->excerpt?></p> <p class="post_excerpt"><?=$post->excerpt?></p>
</article> </article>
<?php endforeach; ?> <?php endforeach; ?>
<?php else: ?> </div>
// TODO: Handle missing or invalid posts file <?php endif; ?>
<?php endif; ?>
</div>
</div> </div>
<div class="flex_1"> <div class="flex_1">
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment