diff options
Diffstat (limited to 'rss.php')
-rw-r--r-- | rss.php | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -109,6 +109,7 @@ function load_rss(string $uri, string $linkrel = "alternate", ?bool $allow_html $data["date"]->setTimezone($config["timezone"]); $parsed[] = $data; + unset($data); } } else { // assume atom @@ -169,6 +170,7 @@ function load_rss(string $uri, string $linkrel = "alternate", ?bool $allow_html $data["date"]->setTimezone($config["timezone"]); $parsed[] = $data; + unset($data); } } @@ -347,7 +349,7 @@ $base = parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH); <?php if(count($entry['images']??[])): ?> <div class="rss-images"> <?php foreach($entry['images'] as $media): ?> - <img loading="lazy" src="<?= $media ?>"></object> + <a target="<?= $config['link_target'] ?>" href="<?= $media ?>"><img loading="lazy" src="<?= $media ?>" /></a> <?php endforeach; ?> </div> <?php endif; ?> @@ -371,7 +373,7 @@ $base = parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH); <?php if(!isset($entry['title'])): ?> • - <a href="<?= $entry['link'] ?>">Source</a> + <a target="<?= $config['link_target'] ?>" href="<?= $entry['link'] ?>">Source</a> <?php endif; ?> • @@ -381,7 +383,9 @@ $base = parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH); </article> <?php endforeach; ?> </main> - <!-- generated by rss_dot_php <?= VERSION ?> - https://git.aleteoryx.me/cgit/rss_dot_php --> +<!-- + generated by rss_dot_php <?= VERSION ?> + <https://git.aleteoryx.me/cgit/rss_dot_php> +--> </body> </html> |