Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
- Base: wintercms/winter branch 1.2 (full framework) - Theme vivespos: Canvas 7 + Bootstrap 5 CDN, custom CSS - Layout: deferred GTM/GA4 tracking, JSON-LD SoftwareApplication - Partials: hero (offline-first), features, modes (offline/nube toggle), screenshots, pricing (3 planes), comparison, FAQ, CTA - Plugin VivesPOS.Site with ContactForm - Dockerfile: PHP 8.2 Apache, port 80, healthcheck - Added winter/wn-pages, blog, sitemap, seo plugins - Active theme set to vivespos
34 lines
1.4 KiB
PHP
34 lines
1.4 KiB
PHP
<?php
|
|
$context = System\Classes\SettingsManager::instance()->getContext();
|
|
|
|
$collapsedGroups = explode(
|
|
'|',
|
|
isset($_COOKIE['sidenav_treegroupStatus']) ? $_COOKIE['sidenav_treegroupStatus'] : null
|
|
);
|
|
?>
|
|
|
|
<ul class="top-level">
|
|
<?php foreach ($items as $category => $items):
|
|
$collapsed = in_array($category, $collapsedGroups);
|
|
?>
|
|
|
|
<li data-group-code="<?= e($category) ?>" <?= $collapsed ? 'data-status="collapsed"' : null ?>>
|
|
<div class="group">
|
|
<h3><?= e(trans($category)) ?></h3>
|
|
</div>
|
|
|
|
<ul <?= $collapsed ? 'style="overflow: visible; height: 0px; display: none;"' : null ?>>
|
|
<?php foreach ($items as $item): ?>
|
|
<li class="<?= strtolower($item->owner) == $context->owner && strtolower($item->code) == $context->itemCode ? 'active' : false ?>" data-keywords="<?= e(trans($item->keywords)) ?>">
|
|
<a href="<?= $item->url ?>" ontouchstart="">
|
|
<i class="<?= $item->icon ?>"></i>
|
|
<span class="header"><?= e(trans($item->label)) ?></span>
|
|
<span class="description"><?= e(trans($item->description)) ?></span>
|
|
</a>
|
|
</li>
|
|
<?php endforeach ?>
|
|
</ul>
|
|
</li>
|
|
<?php endforeach ?>
|
|
</ul>
|