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.
This commit is contained in:
@@ -3,12 +3,13 @@
|
||||
return [
|
||||
'title' => 'Row',
|
||||
'category' => 'Layout',
|
||||
'icon' => 'fa fa-hand-peace-o',
|
||||
'icon' => 'ph ph-columns',
|
||||
'settings' => [
|
||||
"column_count" => [
|
||||
"type" => "number",
|
||||
"label" => "Number of columns",
|
||||
"value" => "3"
|
||||
"label" => "Number of columns (1–4)",
|
||||
"value" => "3",
|
||||
"placeholder" => "3"
|
||||
],
|
||||
]
|
||||
];
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
<div class="row p-3 flex flex-nowrap gap-3">
|
||||
<?php
|
||||
$columnCount = intval($block->setting('column_count'));
|
||||
for ($i = 0; $i < $columnCount; $i++):
|
||||
?>
|
||||
[block slug="col" id="col<?= $i ?>"]
|
||||
<?php
|
||||
endfor;
|
||||
?>
|
||||
<?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>
|
||||
|
||||
Reference in New Issue
Block a user