aboutsummaryrefslogtreecommitdiffstats
path: root/rss.php
diff options
context:
space:
mode:
Diffstat (limited to 'rss.php')
-rw-r--r--rss.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/rss.php b/rss.php
index 29e7568..4bdf20d 100644
--- a/rss.php
+++ b/rss.php
@@ -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'])): ?>
&bullet;
- <a href="<?= $entry['link'] ?>">Source</a>
+ <a target="<?= $config['link_target'] ?>" href="<?= $entry['link'] ?>">Source</a>
<?php endif; ?>
&bullet;
@@ -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>