diff options
| author | 2021-07-21 22:42:04 +0200 | |
|---|---|---|
| committer | 2021-07-21 22:42:04 +0200 | |
| commit | ab0285b0aa05574ae864bef590ffd6ea36f0c50a (patch) | |
| tree | 88292a7ba37615a07ebde443d8c69cc75144978d /app/views/index/normal.phtml | |
| parent | 3c945bee7bc1853ea4bf38b1b04259a465bf08d2 (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/normal.phtml')
| -rw-r--r-- | app/views/index/normal.phtml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml index 3077d79f2..418c44111 100644 --- a/app/views/index/normal.phtml +++ b/app/views/index/normal.phtml @@ -14,7 +14,7 @@ $content_width = FreshRSS_Context::$user_conf->content_width; $today = @strtotime('today'); ?> -<div id="stream" class="normal<?= $hidePosts ? ' hide_posts' : '' ?>"> +<main id="stream" class="normal<?= $hidePosts ? ' hide_posts' : '' ?>"> <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 @@ -110,14 +110,14 @@ $today = @strtotime('today'); 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 normal"> +<main id="stream" class="prompt alert alert-warn normal"> <h2><?= _t('index.feed.empty') ?></h2> <a href="<?= _url('subscription', 'add') ?>"><?= _t('index.feed.add') ?></a><br /><br /> -</div> +</main> <?php endif; ?> <?php if ($nbEntries > 0 && FreshRSS_Context::$user_conf->show_nav_buttons) $this->partial('nav_entries'); ?> |
