aboutsummaryrefslogtreecommitdiff
path: root/app/layout
diff options
context:
space:
mode:
authorGravatar Sadetdin EYILI <sad270@users.noreply.github.com> 2023-01-09 10:37:35 +0100
committerGravatar GitHub <noreply@github.com> 2023-01-09 10:37:35 +0100
commitbbe3eb8f41ca9c25d1619cda9609392ffc803146 (patch)
tree5079caff814cd31bff9d708d3a71dea0c5993d81 /app/layout
parent7d12ecff0145c66113f81ce1b704316da0a403a5 (diff)
Lazy load logo on install, logo on header and theme thumbs in config slide (#4998)
* feat: lazy load logo on install, logo on header and theme thumbs in config slide
Diffstat (limited to 'app/layout')
-rw-r--r--app/layout/header.phtml8
-rw-r--r--app/layout/simple.phtml2
2 files changed, 5 insertions, 5 deletions
diff --git a/app/layout/header.phtml b/app/layout/header.phtml
index b9d5c0a13..45eb9a3ce 100644
--- a/app/layout/header.phtml
+++ b/app/layout/header.phtml
@@ -2,7 +2,7 @@
<div class="item title">
<a href="<?= _url('index', 'index') ?>">
<?php if (FreshRSS_Context::$system_conf->logo_html == '') { ?>
- <img class="logo" src="<?= _i('FreshRSS-logo', FreshRSS_Themes::ICON_URL) ?>" alt="FreshRSS" />
+ <img class="logo" src="<?= _i('FreshRSS-logo', FreshRSS_Themes::ICON_URL) ?>" alt="FreshRSS" loading="lazy" />
<?php
} else {
echo FreshRSS_Context::$system_conf->logo_html;
@@ -18,7 +18,7 @@
<input type="search" name="search" id="search" class="extend"
value="<?= htmlspecialchars(htmlspecialchars_decode(FreshRSS_Context::$search, ENT_QUOTES), ENT_COMPAT, 'UTF-8') ?>"
placeholder="<?= _t('gen.menu.search') ?>" />
-
+
<?php $param_a = Minz_Request::actionName(); ?>
<?php if (in_array($param_a, ['normal', 'global', 'reader'])) { ?>
<input type="hidden" name="a" value="<?= $param_a ?>" />
@@ -83,7 +83,7 @@
</li>
<?php if (FreshRSS_Auth::hasAccess('admin')) { ?>
<li class="item dropdown-section">
- <div class="dropdown-section-title">
+ <div class="dropdown-section-title">
<?= _t('gen.menu.admin') ?>
</div>
<ul>
@@ -98,7 +98,7 @@
</ul>
</li>
<?php } ?>
-
+
<li class="item dropdown-section">
<ul>
<li class="item"><a href="<?= _url('index', 'logs') ?>"><?= _t('gen.menu.logs') ?></a></li>
diff --git a/app/layout/simple.phtml b/app/layout/simple.phtml
index 8a2ee14bb..c9d209999 100644
--- a/app/layout/simple.phtml
+++ b/app/layout/simple.phtml
@@ -31,7 +31,7 @@
<div class="item title">
<a href="<?= _url('index', 'index') ?>">
<?php if (FreshRSS_Context::$system_conf->logo_html == '') { ?>
- <img class="logo" src="<?= _i('FreshRSS-logo', FreshRSS_Themes::ICON_URL) ?>" alt="FreshRSS" />
+ <img class="logo" src="<?= _i('FreshRSS-logo', FreshRSS_Themes::ICON_URL) ?>" alt="FreshRSS" loading="lazy" />
<?php
} else {
echo FreshRSS_Context::$system_conf->logo_html;