diff options
| author | 2022-07-19 12:56:09 +0200 | |
|---|---|---|
| committer | 2022-07-19 12:56:09 +0200 | |
| commit | 2d807e06b1abffdbc40a60c3623e22e3c6b818c6 (patch) | |
| tree | ab2178b30434ebd4d8ec911d12ee39a8f2cd0522 /app/views/subscription | |
| parent | 6352a1dccbac03a9582810e5d284ebac54f24f5b (diff) | |
Fix/Improved: Slider mobile (#4416)
* add close button, add content slider div
* add &ajax=1#slider to the links
* CSS
* fix showPW functionality
* open slider after received Ajax
* do not show empty slider
* RTL CSS
* fixed code smell
* improved: links prep via JS
* Redirect anchor
* enable #anchors in printuri()
* enable #slider when config was saved
* Active sliding via JS
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/views/subscription')
| -rw-r--r-- | app/views/subscription/index.phtml | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/app/views/subscription/index.phtml b/app/views/subscription/index.phtml index 8b2411edf..d2123a2ac 100644 --- a/app/views/subscription/index.phtml +++ b/app/views/subscription/index.phtml @@ -78,16 +78,19 @@ </div> </main> -<?php $class = $this->displaySlider ? ' active' : ''; ?> +<?php $class = isset($this->feed) || isset($this->category) ? ' active' : ''; ?> <aside id="slider" class="scrollbar-thin<?= $class ?>"> - <?php - if (isset($this->feed)) { - $this->renderHelper('feed/update'); - } elseif (isset($this->category)) { - $this->renderHelper('category/update'); - } - ?> + <a class="toggle_aside" href="#close"><img class="icon" src="../themes/icons/close.svg" loading="lazy" alt="❌"></a> + <div id="slider-content"> + <?php + if (isset($this->feed)) { + $this->renderHelper('feed/update'); + } elseif (isset($this->category)) { + $this->renderHelper('category/update'); + } + ?> + </div> </aside> -<a href="#" id="close-slider" class="<?= $class ?>"> +<a href="#" id="close-slider"> <?= _i('close') ?> </a> |
