diff options
author | Aleteoryx <alyx@aleteoryx.me> | 2024-11-14 17:23:21 -0500 |
---|---|---|
committer | Aleteoryx <alyx@aleteoryx.me> | 2024-11-14 17:23:21 -0500 |
commit | d76ea6375334b758fcdbe84252515b3059ff8e53 (patch) | |
tree | 292497814d801a5962c15fbda02739c123a1e8b3 /rss.php | |
parent | 881b7d973373b432155f664003e7e54fe6db7266 (diff) | |
download | rss_dot_php-d76ea6375334b758fcdbe84252515b3059ff8e53.tar.gz rss_dot_php-d76ea6375334b758fcdbe84252515b3059ff8e53.tar.bz2 rss_dot_php-d76ea6375334b758fcdbe84252515b3059ff8e53.zip |
minor heirarchy change
Diffstat (limited to 'rss.php')
-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: ?> |