aboutsummaryrefslogtreecommitdiff
path: root/app/views/index/reader.phtml
diff options
context:
space:
mode:
authorGravatar maTh <math-home@web.de> 2021-07-21 22:42:04 +0200
committerGravatar GitHub <noreply@github.com> 2021-07-21 22:42:04 +0200
commitab0285b0aa05574ae864bef590ffd6ea36f0c50a (patch)
tree88292a7ba37615a07ebde443d8c69cc75144978d /app/views/index/reader.phtml
parent3c945bee7bc1853ea4bf38b1b04259a465bf08d2 (diff)
Add HTML5 tags (#3651)
* use HTML5 tags #3643 added some HTML5 tags: header, main, nav * <main> into <div> as dicussed in the PR. Todo: check side effects (f.e. threepaneview extension) * fixed whitespace with tabs * fixed more whitespaces with tabs it was not my fault, but I fixed it * added empty lines as wished * Update app/views/index/global.phtml Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> * Update app/views/index/global.phtml * Update app/views/index/global.phtml * Update app/views/index/global.phtml * Update app/views/index/global.phtml * Update app/views/index/global.phtml * Update app/views/index/global.phtml Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
Diffstat (limited to 'app/views/index/reader.phtml')
-rw-r--r--app/views/index/reader.phtml8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/index/reader.phtml b/app/views/index/reader.phtml
index 0b1288ae6..8183a67e7 100644
--- a/app/views/index/reader.phtml
+++ b/app/views/index/reader.phtml
@@ -7,8 +7,8 @@ call_user_func($this->callbackBeforeEntries, $this);
$lazyload = FreshRSS_Context::$user_conf->lazyload;
$content_width = FreshRSS_Context::$user_conf->content_width;
?>
+<main id="stream" class="reader">
-<div id="stream" class="reader">
<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
@@ -76,12 +76,12 @@ $content_width = FreshRSS_Context::$user_conf->content_width;
if ($nbEntries > 0):
call_user_func($this->callbackBeforePagination, $this, $nbEntries, $lastEntry);
$this->renderHelper('pagination');
-?></div><?php
+?></main><?php
else:
ob_end_clean(); //Discard the articles headers, as we have no articles
?>
-<div id="stream" class="prompt alert alert-warn reader">
+<main id="stream" class="prompt alert alert-warn reader">
<h2><?= _t('index.feed.empty') ?></h2>
<a href="<?= _url('subscription', 'add') ?>"><?= _t('index.feed.add') ?></a><br /><br />
-</div>
+</main>
<?php endif; ?>