many updates 😁

This commit is contained in:
Paul Spenke
2023-07-02 21:30:29 +08:00
parent 788a6b323c
commit a529852fd8
29 changed files with 353 additions and 204 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
return [
'title' => 'Button',
'category' => 'Layout',
'hidden' => true,
'icon' => 'fa fa-hand-peace-o',
'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"
]
]
],
]
];
+3
View File
@@ -0,0 +1,3 @@
<a class="p-4 rounded bg-primary-300" href="#">
button
</a>
+1 -1
View File
@@ -2,6 +2,6 @@
return [
'title' => 'image',
'category' => 'General',
'hidden' => true,
'icon' => 'fa fa-hand-peace-o'
];
@@ -3,5 +3,6 @@
return [
'title' => 'Paragraph',
'category' => 'Layout',
'hidden' => true,
'icon' => 'fa fa-hand-peace-o',
];
+3 -3
View File
@@ -1,3 +1,3 @@
<p class="">
Paragraph
</p>
<div class="" phpb-editable>
Dolore cillum et tempor. Nulla mollit quis sunt duis aliqua ad consectetur minim Lorem irure non duis. Et est elit cillum magna non. Culpa nisi aute occaecat aliqua eiusmod. Sunt tempor eu dolore duis ad mollit enim elit commodo labore aute quis dolor. Consequat consectetur elit officia non anim cillum reprehenderit nulla duis deserunt ex id. Veniam ex in reprehenderit in ut id tempor occaecat. Nisi ea velit adipisicing minim voluptate.
</div>
@@ -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>