diff options
-rw-r--r-- | rss.php | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -279,14 +279,16 @@ $base = parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH); <p>Try unfiltering some feeds!</p> <?php endif; foreach ($combined as $entry): ?> - <article> - <?php if(isset($entry['title'])): ?> - <h1><a target="<?= $config['link_target'] ?>" href="<?= $entry['link'] ?>"><?= $entry['title'] ?></a></h1> - <?php endif; ?> - <?php if(isset($entry['content'])): ?> - <div class="content"><?= $entry['content'] ?></div> - <?php endif; ?> - <span class="source" data-source="<?= $entry['source'] ?>"> + <article data-source="<?= $entry['source'] ?>"> + <div class="content"> + <?php if(isset($entry['title'])): ?> + <h1 class="title"><a target="<?= $config['link_target'] ?>" href="<?= $entry['link'] ?>"><?= $entry['title'] ?></a></h1> + <?php endif; ?> + <?php if(isset($entry['content'])): ?> + <div><?= $entry['content'] ?></div> + <?php endif; ?> + </div> + <span class="source"> <?php if ($entry['home']): ?> <a target="<?= $config['link_target'] ?>" href="<?= $entry['home'] ?>"><?= $entry['source'] ?></a> <?php else: ?> |