İçeriğe geç
Tüm kodlar

ER3NSHOP

Kurulum sihirbazlı online mağaza sistemi

17 satır · 1,4 KBHamİndir
<?php $title = $row['title'] ?? $row['question'] ?? '' ?>
<div data-repeater-row class="overflow-hidden rounded-xl border border-zinc-200 bg-white">
    <div class="flex items-center gap-2 border-b border-zinc-100 px-3 py-2">
        <button type="button" data-row-toggle class="flex min-w-0 flex-1 items-center gap-2 text-left text-sm font-medium">
            <?= icon('down', 'size-4 shrink-0 text-zinc-400', '2') ?>
            <span data-row-title class="truncate"><?= $title !== '' ? e($title) : 'Yeni öğe' ?></span>
        </button>
        <button type="button" data-row-up class="rounded-md p-1.5 text-zinc-400 hover:bg-zinc-100 hover:text-ink" title="Yukarı"><?= icon('left', 'size-4 rotate-90', '2') ?></button>
        <button type="button" data-row-down class="rounded-md p-1.5 text-zinc-400 hover:bg-zinc-100 hover:text-ink" title="Aşağı"><?= icon('right', 'size-4 rotate-90', '2') ?></button>
        <button type="button" data-row-remove class="rounded-md p-1.5 text-zinc-400 hover:bg-rose-50 hover:text-rose-600" title="Sil"><?= icon('trash', 'size-4') ?></button>
    </div>
    <div data-row-body class="grid gap-4 p-4 sm:grid-cols-2">
        <?php foreach ($fields as $sub): ?>
            <?php admin_field($sub, $row[$sub[0]] ?? '', $name . '[' . $index . '][' . $sub[0] . ']', $path . '__' . $index . '__' . $sub[0]) ?>
        <?php endforeach ?>
    </div>
</div>

Lisans bilgisi projenin LICENSE dosyasında.