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
60 lines
2.8 KiB
PHP
60 lines
2.8 KiB
PHP
<?php if ($items): ?>
|
|
<ul>
|
|
<?php foreach ($items as $item): ?>
|
|
<?php if (property_exists($item, 'items')): ?>
|
|
<?php if ($item->items): ?>
|
|
<li class="group" data-status="<?= $this->getCollapseStatus($item->title, false) ? 'expanded' : 'collapsed' ?>">
|
|
<h4><a href="javascript:;"><?= e($item->title) ?></a></h4>
|
|
<?= $this->makePartial('items', ['items'=>$item->items, 'nested'=>true]) ?>
|
|
</li>
|
|
<?php endif ?>
|
|
<?php else: ?>
|
|
<?php
|
|
$dataId = $this->itemType.'-'.$this->theme->getDirName().'-'.$item->fileName;
|
|
?>
|
|
<li
|
|
class="item"
|
|
data-item-path="<?= e($item->fileName) ?>"
|
|
data-item-theme="<?= e($this->theme->getDirName()) ?>"
|
|
data-item-type="<?= $this->itemType ?>"
|
|
data-id="<?= e($dataId) ?>">
|
|
<a href="javascript:;"
|
|
data-control="dragvalue"
|
|
data-text-value="<?= $item->dragValue ?>">
|
|
<span class="title"><?= e($item->title) ?></span>
|
|
<span class="description" title="<?= e($item->description) ?>">
|
|
<?php foreach ($item->descriptions as $title => $value): ?>
|
|
<?php if (strlen($value)): ?>
|
|
<?= e($title) ?>: <strong><?= e($value) ?></strong>
|
|
<?php endif ?>
|
|
<?php endforeach ?>
|
|
|
|
<?= e($item->description) ?>
|
|
</span>
|
|
<span class="borders"></span>
|
|
</a>
|
|
|
|
<input type="hidden" name="template[<?= e($item->fileName) ?>]" value="0" />
|
|
<div class="checkbox custom-checkbox nolabel">
|
|
<?php $cbId = 'cb' . md5($this->itemType . '/' . $item->fileName) ?>
|
|
<input
|
|
id="<?= $cbId ?>"
|
|
type="checkbox"
|
|
name="template[<?= e($item->fileName) ?>]"
|
|
<?= $this->isItemSelected($item->fileName) ? 'checked' : null ?>
|
|
data-request="<?= $this->getEventHandler('onSelect') ?>"
|
|
value="1">
|
|
<label for="<?= $cbId ?>">Select</label>
|
|
</div>
|
|
</li>
|
|
<?php endif ?>
|
|
<?php endforeach ?>
|
|
</ul>
|
|
<?php else: ?>
|
|
<p class="no-data"><?= e(trans($this->noRecordsMessage)) ?></p>
|
|
<?php endif ?>
|
|
|
|
<?php if (!isset($nested)): ?>
|
|
<input type="hidden" name="theme" value="<?= e($this->theme->getDirName()) ?>">
|
|
<?php endif ?>
|