This commit is contained in:
2024-11-19 13:43:13 +03:00
parent 2af9ea876d
commit 47f29f16a5
5 changed files with 613 additions and 57 deletions

View File

@ -0,0 +1,9 @@
<?php
/**
* @var string $icon
* @var string $btn
* @var string $url
*/
?>
"<a class='btn btn-$btn_type' href='$url/deactivate/?slug=$slug' style='margin: 3px; width: 150px;' >$label</a>";

View File

@ -18,7 +18,7 @@
</ul>
</li>
<?php else: ?>
<li class="<?= $item->url === \kernel\Request::getUrlPath() ? "active" : "" ?>">
<li class="<?= $item->url === \kernel\Request::getUrlPath() || $item->url . "/module_shop_client" === \kernel\Request::getUrlPath() ? "active" : "" ?>">
<a href="<?= $item->url ?>"><?= $item->label ?></a>
</li>
<?php endif; ?>

View File

@ -0,0 +1,14 @@
<?php
/**
* @var array $tabs
*/
?>
<ul class="nav nav-tabs">
<?php foreach ($tabs as $link => $label): ?>
<li class="nav-item">
<a class="nav-link <?=\kernel\Request::getUrlPath() === $link ? "active" : " "?>" href="<?= $link ?>" > <?= $label ?></a>
</li>
<?php endforeach ?>
</ul>
<br>