aboutsummaryrefslogtreecommitdiff
path: root/app/views/index
diff options
context:
space:
mode:
authorGravatar maTh <math-home@web.de> 2022-10-03 18:04:10 +0200
committerGravatar GitHub <noreply@github.com> 2022-10-03 18:04:10 +0200
commit46d0b4140ebc3365618b23b01c094b0860baed9d (patch)
treeee7e1d2e3a2fdf9e4932fc5de515f8a93ee20e53 /app/views/index
parent117b9c115d3fb421820fbef44e39ac4328f3c7c1 (diff)
Improved: better semantic HTML for boxes (#4665)
* add h1 title on views * add h2 titles into box-title * thin scrollbar in box-content
Diffstat (limited to 'app/views/index')
-rw-r--r--app/views/index/global.phtml5
-rw-r--r--app/views/index/normal.phtml1
-rw-r--r--app/views/index/reader.phtml2
3 files changed, 5 insertions, 3 deletions
diff --git a/app/views/index/global.phtml b/app/views/index/global.phtml
index 7348c9cd1..09264fb65 100644
--- a/app/views/index/global.phtml
+++ b/app/views/index/global.phtml
@@ -14,6 +14,7 @@
?>
<main id="stream" class="global<?= $class ?>">
+ <h1 class="title_hidden"><?= _t('conf.reading.view.global') ?></h1>
<?php
$params = $_GET;
unset($params['c']);
@@ -35,9 +36,9 @@
?>
<div class="box category" data-unread="<?= $cat->nbNotRead() ?>">
<div class="box-title"><a class="title" data-unread="<?= format_number($cat->nbNotRead()) ?>"
- href="<?= Minz_Url::display($url_base) ?>"><?= $cat->name() ?></a></div>
+ href="<?= Minz_Url::display($url_base) ?>"><h2><?= $cat->name() ?></h2></a></div>
- <ul class="box-content">
+ <ul class="box-content scrollbar-thin">
<?php
foreach ($feeds as $feed) {
$nb_not_read = $feed->nbNotRead();
diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml
index 6a4cb77eb..c1c46e877 100644
--- a/app/views/index/normal.phtml
+++ b/app/views/index/normal.phtml
@@ -19,6 +19,7 @@ $today = @strtotime('today');
?>
<main id="stream" class="normal<?= $hidePosts ? ' hide_posts' : '' ?>">
+ <h1 class="title_hidden"><?= _t('conf.reading.view.normal') ?></h1>
<div id="new-article">
<a href="<?= Minz_Url::display(Minz_Request::currentRequest()) ?>"><?= _t('gen.js.new_article'); /* TODO: move string in JS*/ ?></a>
</div><?php
diff --git a/app/views/index/reader.phtml b/app/views/index/reader.phtml
index 334cd4189..5789f229b 100644
--- a/app/views/index/reader.phtml
+++ b/app/views/index/reader.phtml
@@ -12,7 +12,7 @@ $content_width = FreshRSS_Context::$user_conf->content_width;
$MAX_TAGS_DISPLAYED = FreshRSS_Context::$user_conf->show_tags_max;
?>
<main id="stream" class="reader">
-
+ <h1 class="title_hidden"><?= _t('conf.reading.view.reader') ?></h1>
<div id="new-article">
<a href="<?= Minz_Url::display(Minz_Request::currentRequest()) ?>"><?= _t('gen.js.new_article'); /* TODO: move string in JS*/ ?></a>
</div><?php