Files
plugi/themes/theme-one/blocks/row/view.php
T
deepDiverPaul ed8ae3200b refresh theme-one starter blocks and layout
Redesign the master layout and content blocks with responsive styling, accessible navigation, and configurable CTA and quote sections. Add about-me, embedded-code, and FAQ blocks, and update the generated theme assets. Replace Alpine-based locale handling with vanilla JavaScript for locale flags and gallery lightboxes, and remove Alpine and DaisyUI dependencies.
2026-11-25 17:50:12 +01:00

15 lines
437 B
PHP

<?php
$columnCount = max(1, min(4, intval($block->setting('column_count'))));
$columnClasses = [
1 => 'md:grid-cols-1',
2 => 'md:grid-cols-2',
3 => 'md:grid-cols-3',
4 => 'md:grid-cols-4',
];
?>
<div class="grid grid-cols-1 gap-6 <?= $columnClasses[$columnCount] ?>">
<?php for ($i = 0; $i < $columnCount; $i++): ?>
[block slug="col" id="col<?= $i ?>"]
<?php endfor; ?>
</div>