many updates 😁
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'title' => 'Text + Image',
|
||||
'category' => 'General',
|
||||
'icon' => 'ph ph-square-half',
|
||||
'settings' => [
|
||||
"order" => [
|
||||
"type" => "select",
|
||||
"label" => "Image Position",
|
||||
"value" => "md:flex-row",
|
||||
"options" => [
|
||||
[
|
||||
"id" => "md:flex-row",
|
||||
"name" => "Right"
|
||||
],
|
||||
[
|
||||
"id" => "md:flex-row-reverse",
|
||||
"name" => "Left"
|
||||
]
|
||||
]
|
||||
],
|
||||
"width" => [
|
||||
"type" => "select",
|
||||
"label" => "Image Width",
|
||||
"value" => "md:w-6/12",
|
||||
"options" => [
|
||||
[
|
||||
"id" => "md:w-4/12",
|
||||
"name" => "1/3"
|
||||
],
|
||||
[
|
||||
"id" => "md:w-6/12",
|
||||
"name" => "1/2"
|
||||
],
|
||||
[
|
||||
"id" => "md:w-full",
|
||||
"name" => "2/3"
|
||||
],
|
||||
]
|
||||
],
|
||||
'headline' => [
|
||||
'label'=> 'Headline',
|
||||
'type' => 'text',
|
||||
'placeholder' =>'Headline',
|
||||
'value' => 'Lorem Ipsum dolor'
|
||||
],
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,18 @@
|
||||
<section class="">
|
||||
<div class="container container-md mx-auto p-4 flex flex-row gap-4 flex-col-reverse <?= phpb_e($block->setting('order')) ?>">
|
||||
<div class="md:w-6/12 grow">
|
||||
<?php if (strlen($block->setting('headline')) > 0) : ?>
|
||||
<div class=" text-2xl">
|
||||
<?= phpb_e($block->setting('headline')) ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
[block slug="paragraph"]
|
||||
<br>
|
||||
<br>
|
||||
[block slug="button"]
|
||||
</div>
|
||||
<div class="<?= phpb_e($block->setting('width')) ?>">
|
||||
[block slug="image"]
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
Reference in New Issue
Block a user