feat: VivesPOS landing on Winter CMS 1.2 — theme + plugin + Dockerfile
Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
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
This commit is contained in:
53
modules/backend/layouts/_sidenav.php
Normal file
53
modules/backend/layouts/_sidenav.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
$context = BackendMenu::getContext();
|
||||
$contextSidenav = BackendMenu::getContextSidenavPartial($context->owner, $context->mainMenuCode);
|
||||
?>
|
||||
<?php if (!$contextSidenav): ?>
|
||||
<?php
|
||||
$sideMenuItems = BackendMenu::listSideMenuItems();
|
||||
?>
|
||||
<?php if ($sideMenuItems): ?>
|
||||
<div class="layout-cell layout-sidenav-container">
|
||||
<div class="layout-relative">
|
||||
<nav
|
||||
id="layout-sidenav"
|
||||
class="layout-sidenav bg-p"
|
||||
data-active-class="active"
|
||||
data-control="sidenav">
|
||||
<ul class="nav">
|
||||
<?php foreach ($sideMenuItems as $sideItemCode => $item): ?>
|
||||
<li
|
||||
class="<?= BackendMenu::isSideMenuItemActive($item) ? 'active' : null ?>"
|
||||
<?= Html::attributes($item->attributes) ?>
|
||||
>
|
||||
<a href="<?= $item->url ?>">
|
||||
<span class="nav-icon">
|
||||
<?php if ($item->iconSvg): ?>
|
||||
<img class="svg-icon" src="<?= Url::asset($item->iconSvg) ?>">
|
||||
<?php endif ?>
|
||||
|
||||
<i class="<?= $item->iconSvg ? 'svg-replace' : null ?> <?= $item->icon ?>"></i>
|
||||
</span>
|
||||
<span class="nav-label">
|
||||
<?= e(trans($item->label)) ?>
|
||||
</span>
|
||||
</a>
|
||||
<span
|
||||
class="counter <?= $item->counter === null ? 'empty' : null ?>"
|
||||
data-menu-id="<?= e($context->mainMenuCode.'/'.$sideItemCode) ?>"
|
||||
<?php if ($item->counterLabel): ?>
|
||||
title="<?= e(trans($item->counterLabel)) ?>"
|
||||
<?php endif ?>
|
||||
>
|
||||
<?= e($item->counter) ?>
|
||||
</span>
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php else: ?>
|
||||
<?= $this->makePartial($contextSidenav) ?>
|
||||
<?php endif ?>
|
||||
Reference in New Issue
Block a user