diff options
| author | 2021-12-03 00:57:32 +0100 | |
|---|---|---|
| committer | 2021-12-03 00:57:32 +0100 | |
| commit | a54aa19dc7f8cd344cdfb199ee94c01e0b90becc (patch) | |
| tree | bcbfa7efbefaa459accf71dafc02f210e965bc28 /app/views/subscription/index.phtml | |
| parent | 00dbde68fbaf7da68ccf191c33f2de88d3603aa8 (diff) | |
Fix: double main tags (#4014)
* replace div with main
* include the slider into main
* format source
* add close icon for the extension slider
* replace div with main
* Update shortcut.phtml
* fixed the nits
Diffstat (limited to 'app/views/subscription/index.phtml')
| -rw-r--r-- | app/views/subscription/index.phtml | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/app/views/subscription/index.phtml b/app/views/subscription/index.phtml index fe28ae45d..a8bc9ae27 100644 --- a/app/views/subscription/index.phtml +++ b/app/views/subscription/index.phtml @@ -1,6 +1,6 @@ <?php $this->partial('aside_subscription'); ?> -<div class="post drop-section"> +<main class="post drop-section"> <div class="link-back-wrapper"> <a class="link-back" href="<?= _url('index', 'index') ?>"><?= _t('gen.action.back_to_rss_feeds') ?></a> </div> @@ -73,18 +73,18 @@ </ul> </div> -</div> + <?php $class = $this->displaySlider ? ' class="active"' : ''; ?> + <a href="#" id="close-slider"<?= $class ?>> + <?= _i('close') ?> + </a> + <div id="slider"<?= $class ?>> + <?php + if (isset($this->feed)) { + $this->renderHelper('feed/update'); + } elseif (isset($this->category)) { + $this->renderHelper('category/update'); + } + ?> + </div> -<?php $class = $this->displaySlider ? ' class="active"' : ''; ?> -<a href="#" id="close-slider"<?= $class ?>> - <?= _i('close') ?> -</a> -<div id="slider"<?= $class ?>> -<?php - if (isset($this->feed)) { - $this->renderHelper('feed/update'); - } elseif (isset($this->category)) { - $this->renderHelper('category/update'); - } -?> -</div> +</main> |
