summaryrefslogtreecommitdiff
path: root/app/views/helpers/view/reader_view.phtml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-23 00:01:00 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-23 00:01:00 +0100
commit11b1d06b8c4672f7dab98f8de5a7f7f95eeeec12 (patch)
treeec96ddcb423771fd001c47b7822f9f6c66170767 /app/views/helpers/view/reader_view.phtml
parent2919b9a0b6c7a9e1c8b5ad7f3b6207bd86de2dbc (diff)
Chargement différé des iframe
Implémente https://github.com/marienfressinaud/FreshRSS/issues/313 (uniquement pour la vue en articles repliés)
Diffstat (limited to 'app/views/helpers/view/reader_view.phtml')
-rw-r--r--app/views/helpers/view/reader_view.phtml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/helpers/view/reader_view.phtml b/app/views/helpers/view/reader_view.phtml
index e28af6ade..47254f74e 100644
--- a/app/views/helpers/view/reader_view.phtml
+++ b/app/views/helpers/view/reader_view.phtml
@@ -2,6 +2,7 @@
$this->partial ('nav_menu');
if (!empty($this->entries)) {
+ $lazyload = $this->conf->lazyload() === 'yes';
?>
<div id="stream" class="reader">
@@ -26,7 +27,7 @@ if (!empty($this->entries)) {
</div>
<?php
- if($this->conf->lazyload() == 'yes') {
+ if ($lazyload) {
echo lazyimg($item->content ());
} else {
echo $item->content();