add theme-one

This commit is contained in:
Paul Spenke
2023-06-29 08:44:13 +08:00
parent c9b72248c3
commit a2054c9625
31 changed files with 5484 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
<?php
return [
'title' => 'Row',
'category' => 'Layout',
'icon' => 'fa fa-hand-peace-o',
'settings' => [
"column_count" => [
"type" => "number",
"label" => "Number of columns",
"value" => "3"
],
]
];
+10
View File
@@ -0,0 +1,10 @@
<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;
?>
</div>