mirror of
https://github.com/flextype/flextype.git
synced 2025-08-11 07:34:22 +02:00
Flextype Core: Default Theme fixed issue with navigation strpos(): Empty needle
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<ul class="navbar-nav">
|
||||
<?php foreach (Arr::sort(Menus::get('default')['items'], 'order') as $item): ?>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link <?php if (strpos(Http::getUriString(), $item['url']) !== false): ?>active<?php endif ?>" href="<?= Http::getBaseUrl() . '/' . $item['url'] ?>"><?= $item['title'] ?></a>
|
||||
<a class="nav-link <?php if ($item['url'] !== '' && strpos(Http::getUriString(), $item['url']) !== false): ?>active<?php endif ?>" href="<?= Http::getBaseUrl() . '/' . $item['url'] ?>"><?= $item['title'] ?></a>
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user