Commit 1660aed2 authored by Morten Johansen's avatar Morten Johansen

Multi update

parent 28bc714a
......@@ -42,11 +42,13 @@
$entryKeywords = $entry['keywords']; // set the keywords variable
$entryKeywords = str_replace(' ', '', $entryKeywords); // replace " " character
$keywordArray = explode (",", $entryKeywords);
if (!empty($entryKeywords)) {
echo "<div class='float-right'>Keywords: ";
foreach($keywordArray as $word) {
echo "#$word ";
}
echo "</div>";
}
?>
<!-- End: Display keywords for blog post -->
<?php Themes::view('partials/footer')->display() ?>
<?php namespace Flextype ?>
<?php Themes::view('partials/head')->display() ?>
<?php foreach (Entries::getEntries('blog', 'date', 'ASC', 0, 10) as $entry): ?>
<a href="<?= $entry['url'] ?>" class="blog-post">
<h3><?= $entry['title'] ?></h3>
<div>Published @ <?= $entry['date'] ?></div>
<p><?= $entry['summary'] ?></p>
<!-- Start: Display keywords for all blog posts -->
<?php
$entryKeywords = $entry['keywords']; // set the keywords variable
$entryKeywords = str_replace(' ', '', $entryKeywords); // replace " " character
$keywordArray = explode (",", $entryKeywords);
echo "<div class='float-right'>Keywords: ";
foreach($keywordArray as $word) {
echo "#$word ";
$getEntries = Entries::getEntries('blog', 'date', 'ASC', 0, 10);
foreach($getEntries as $entry) {
$visible = $entry['visibility'];
if ($visible == 'visible') {
$url = $entry['url'];
$title = $entry['title'];
$date = $entry['date'];
$summary = $entry['summary'];
echo "<a href='$url' class='blog-post'>";
echo "<h3>$title</h3>";
echo "<div>Published @ $date</div>";
echo "<p>$summary</p>";
$entryKeywords = $entry['keywords'];
$entryKeywords = str_replace(' ', '', $entryKeywords);
$keywordArray = explode (",", $entryKeywords);
if (!empty($entryKeywords)) {
echo "<div class='float-right'>Keywords: ";
foreach($keywordArray as $word) {
echo "#$word ";
}
echo "</div><br>";
}
echo "</a>";
}
echo "</div>";
}
?>
<!-- End: Display keywords for all blog posts -->
</a>
<?php endforeach ?>
<?php Themes::view('partials/footer')->display() ?>
<?php Themes::view('partials/footer')->display() ?>
\ No newline at end of file
Markdown is supported
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