aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleteoryx <alyx@aleteoryx.me>2024-11-14 17:23:21 -0500
committerAleteoryx <alyx@aleteoryx.me>2024-11-14 17:23:21 -0500
commitd76ea6375334b758fcdbe84252515b3059ff8e53 (patch)
tree292497814d801a5962c15fbda02739c123a1e8b3
parent881b7d973373b432155f664003e7e54fe6db7266 (diff)
downloadrss_dot_php-d76ea6375334b758fcdbe84252515b3059ff8e53.tar.gz
rss_dot_php-d76ea6375334b758fcdbe84252515b3059ff8e53.tar.bz2
rss_dot_php-d76ea6375334b758fcdbe84252515b3059ff8e53.zip
minor heirarchy change
-rw-r--r--rss.php18
1 files changed, 10 insertions, 8 deletions
diff --git a/rss.php b/rss.php
index 4468a7d..022b6e6 100644
--- a/rss.php
+++ b/rss.php
@@ -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: ?>