Skip to content

Commit

Permalink
Merge pull request #42 from contao-themes-net/fix-mobile-dropdown-c4
Browse files Browse the repository at this point in the history
Fix mobile dropdown menu (contao 4)
  • Loading branch information
MDevster authored Aug 3, 2023
2 parents 6d73d89 + a8d9b1a commit 9e15ca8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ Types of changes
Security in case of vulnerabilities.
)

## [1.12.1](https://github.com/contao-themes-net/zero-one-theme-bundle/tree/1.12.1) – 2023-08-01

- [Fixed] Fix mobile dropdown menu

## [1.12.0](https://github.com/contao-themes-net/zero-one-theme-bundle/tree/1.12.0) – 2023-06-27

- [Changed] Change font sizes from px/rem to em
Expand Down
2 changes: 1 addition & 1 deletion src/Module/ZeroOneThemeSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

class ZeroOneThemeSetup extends \BackendModule
{
const VERSION = '1.12.0';
const VERSION = '1.12.1';

protected $strTemplate = 'be_zeroonetheme_setup';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
<li class="<?= $item['class'] ?>"><a href="{{env::path}}{{env::request}}" title="<?= $item['pageTitle'] ?: $item['title'] ?>" class="<?= $item['class'] ?><?php if( !empty($item['subitems']) ): ?> submenu<?php endif; ?>"<?php if (!empty($item['subitems'])) echo ' aria-haspopup="true"'; ?> itemprop="name"><?= $item['link'] ?></a>

<?php if( !empty($item['subitems']) ): ?>
<a href="#open-nav" class="open-dropdown"><span class="plus-icon">+</span><span class="minus-icon">-</span></a>
<a href="{{env::path}}{{env::request}}#open-nav" class="open-dropdown"><span class="plus-icon">+</span><span class="minus-icon">-</span></a>
<?php endif; ?>

<?= $item['subitems'] ?></li>
<?php else: ?>
<li<?php if ($item['class']) echo ' class="' . $item['class'] . '"'; ?>><a href="<?= $item['href'] ?: './' ?>" title="<?= $item['pageTitle'] ?: $item['title'] ?>"<?php if ($item['class']) echo ' class="' . $item['class'] . '"'; ?><?php if ($item['accesskey'] !== '') echo ' accesskey="' . $item['accesskey'] . '"'; ?><?php if ($item['tabindex']) echo ' tabindex="' . $item['tabindex'] . '"'; ?><?php if ($item['nofollow']) echo ' rel="nofollow"'; ?><?= $item['target'] ?><?php if (!empty($item['subitems'])) echo ' aria-haspopup="true"'; ?> itemprop="url"><span itemprop="name"><?= $item['link'] ?></span></a>

<?php if( !empty($item['subitems']) ): ?>
<a href="#open-nav" class="open-dropdown"><span class="plus-icon">+</span><span class="minus-icon">-</span></a>
<a href="{{env::path}}{{env::request}}#open-nav" class="open-dropdown"><span class="plus-icon">+</span><span class="minus-icon">-</span></a>
<?php endif; ?>

<?= $item['subitems'] ?></li>
Expand Down

0 comments on commit 9e15ca8

Please sign in to comment.