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 | |
| 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')
| -rw-r--r-- | app/views/subscription/add.phtml | 4 | ||||
| -rw-r--r-- | app/views/subscription/bookmarklet.phtml | 4 | ||||
| -rw-r--r-- | app/views/subscription/index.phtml | 30 |
3 files changed, 19 insertions, 19 deletions
diff --git a/app/views/subscription/add.phtml b/app/views/subscription/add.phtml index 04add0b4f..5eff9c5d1 100644 --- a/app/views/subscription/add.phtml +++ b/app/views/subscription/add.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> @@ -123,4 +123,4 @@ </div> </div> </form> -</div> +</main> diff --git a/app/views/subscription/bookmarklet.phtml b/app/views/subscription/bookmarklet.phtml index 8d00a29b5..90c349c0b 100644 --- a/app/views/subscription/bookmarklet.phtml +++ b/app/views/subscription/bookmarklet.phtml @@ -1,6 +1,6 @@ <?php $this->partial('aside_subscription'); ?> -<div class="post"> +<main class="post"> <div class="link-back-wrapper"> <a class="link-back" href="<?= _url('index', 'index') ?>"><?= _t('gen.action.back_to_rss_feeds') ?></a> </div> @@ -15,4 +15,4 @@ <h2><?= _t('sub.api.title') ?></h2> <p><?= _t('sub.api.documentation') ?></p> <kbd><?= Minz_Url::display(array('c' => 'feed', 'a' => 'add'), 'html', true) ?>&url_rss=%s</kbd> -</div>
\ No newline at end of file +</main> 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> |
