diff --git a/themes/theme-one/blocks/about-me/config.php b/themes/theme-one/blocks/about-me/config.php new file mode 100644 index 0000000..bd140bd --- /dev/null +++ b/themes/theme-one/blocks/about-me/config.php @@ -0,0 +1,39 @@ + 'About Me', + 'category' => 'Sections', + 'icon' => 'ph ph-user-circle', + 'settings' => [ + 'heading' => [ + 'label' => 'Heading', + 'type' => 'text', + 'value' => 'A little about me' + ], + 'name' => [ + 'label' => 'Name', + 'type' => 'text', + 'value' => 'Your name' + ], + 'role' => [ + 'label' => 'Role or profession', + 'type' => 'text', + 'value' => 'Designer and maker' + ], + 'biography' => [ + 'label' => 'Biography', + 'type' => 'text', + 'value' => 'I help people turn good ideas into thoughtful, useful experiences. I believe the best work comes from listening carefully, staying curious, and paying attention to the details.' + ], + 'image_src' => [ + 'label' => 'Portrait image URL', + 'type' => 'text', + 'value' => 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&w=900&q=80' + ], + 'image_alt' => [ + 'label' => 'Image alternative text', + 'type' => 'text', + 'value' => 'Portrait of a creative professional' + ], + ] +]; \ No newline at end of file diff --git a/themes/theme-one/blocks/about-me/view.php b/themes/theme-one/blocks/about-me/view.php new file mode 100644 index 0000000..6985268 --- /dev/null +++ b/themes/theme-one/blocks/about-me/view.php @@ -0,0 +1,15 @@ +
+
+ setting('image_src')) > 0) : ?> +
+ <?= $block->setting('image_alt') ?> +
+ +
+

setting('heading') ?>

+

setting('name') ?>

+

setting('role') ?>

+

setting('biography') ?>

+
+
+
\ No newline at end of file diff --git a/themes/theme-one/blocks/button/config.php b/themes/theme-one/blocks/button/config.php index 0e21c91..fc7eef1 100644 --- a/themes/theme-one/blocks/button/config.php +++ b/themes/theme-one/blocks/button/config.php @@ -2,24 +2,7 @@ return [ 'title' => 'Button', - 'category' => 'Layout', + 'category' => 'Content', '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" - ] - ] - ], - ] + 'icon' => 'ph ph-cursor-click', ]; diff --git a/themes/theme-one/blocks/button/view.html b/themes/theme-one/blocks/button/view.html index 3b9f143..952cdec 100644 --- a/themes/theme-one/blocks/button/view.html +++ b/themes/theme-one/blocks/button/view.html @@ -1,3 +1,3 @@ - - button + + Get in touch diff --git a/themes/theme-one/blocks/col/config.php b/themes/theme-one/blocks/col/config.php index b6e8999..fbda1df 100644 --- a/themes/theme-one/blocks/col/config.php +++ b/themes/theme-one/blocks/col/config.php @@ -4,19 +4,5 @@ return [ 'title' => 'Column', 'category' => 'Layout', 'hidden' => true, - 'icon' => 'fa fa-hand-peace-o', - 'settings' => [ - 'text' => [ - 'label'=> 'Text', - 'type' => 'text', - 'placeholder' =>'auto', - 'value' => 'Micheal Gough' - ], - 'texti' => [ - 'label'=> 'Text', - 'type' => 'text', - 'placeholder' =>'auto', - 'value' => 'Micheal Gough' - ], - ] + 'icon' => 'ph ph-columns', ]; diff --git a/themes/theme-one/blocks/col/view.php b/themes/theme-one/blocks/col/view.php index 18138a5..674c380 100644 --- a/themes/theme-one/blocks/col/view.php +++ b/themes/theme-one/blocks/col/view.php @@ -1,3 +1,3 @@ -
+
[block slug="paragraph"]
diff --git a/themes/theme-one/blocks/cta/config.php b/themes/theme-one/blocks/cta/config.php index 795fbbe..1438c46 100644 --- a/themes/theme-one/blocks/cta/config.php +++ b/themes/theme-one/blocks/cta/config.php @@ -3,13 +3,29 @@ return [ 'title' => 'CTA', 'category' => 'General', - 'icon' => 'fa fa-hand-peace-o', + 'icon' => 'ph ph-megaphone', 'settings' => [ - 'person' => [ - 'label'=> 'Height', + 'heading' => [ + 'label' => 'Heading', 'type' => 'text', - 'placeholder' =>'auto', - 'value' => 'Micheal Gough' - ] + 'placeholder' => 'Add a short call to action', + 'value' => 'Ready to take the next step?' + ], + 'message' => [ + 'label' => 'Supporting text', + 'type' => 'text', + 'placeholder' => 'Explain what visitors can do next', + 'value' => 'Get in touch to talk about how we can help.' + ], + 'button_label' => [ + 'label' => 'Button label', + 'type' => 'text', + 'value' => 'Contact us' + ], + 'button_url' => [ + 'label' => 'Button URL', + 'type' => 'text', + 'value' => '/contact' + ], ] ]; diff --git a/themes/theme-one/blocks/cta/view.php b/themes/theme-one/blocks/cta/view.php index 1ed377d..6d6ad8c 100644 --- a/themes/theme-one/blocks/cta/view.php +++ b/themes/theme-one/blocks/cta/view.php @@ -1,9 +1,9 @@ -
-
-
-

Start your free trial today

-

Try Landwind Platform for 30 days. No credit card required.

- Free trial for 30 days -
+
+
+

setting('heading') ?>

+

setting('message') ?>

+ + setting('button_label') ?> +
diff --git a/themes/theme-one/blocks/embedded-code/config.php b/themes/theme-one/blocks/embedded-code/config.php new file mode 100644 index 0000000..2948320 --- /dev/null +++ b/themes/theme-one/blocks/embedded-code/config.php @@ -0,0 +1,7 @@ + 'Embedded Code', + 'category' => 'Content', + 'icon' => 'ph ph-code-block', +]; \ No newline at end of file diff --git a/themes/theme-one/blocks/embedded-code/view.html b/themes/theme-one/blocks/embedded-code/view.html new file mode 100644 index 0000000..4c4c45b --- /dev/null +++ b/themes/theme-one/blocks/embedded-code/view.html @@ -0,0 +1,5 @@ +
+
+

Place approved embed content here using the existing trusted page-editor workflow.

+
+
\ No newline at end of file diff --git a/themes/theme-one/blocks/faq-item/config.php b/themes/theme-one/blocks/faq-item/config.php new file mode 100644 index 0000000..f6375b5 --- /dev/null +++ b/themes/theme-one/blocks/faq-item/config.php @@ -0,0 +1,20 @@ + 'FAQ Item', + 'category' => 'Content', + 'hidden' => true, + 'icon' => 'ph ph-question', + 'settings' => [ + 'question' => [ + 'label' => 'Question', + 'type' => 'text', + 'value' => 'How does the process begin?' + ], + 'answer' => [ + 'label' => 'Answer', + 'type' => 'text', + 'value' => 'We start with a conversation about your goals, audience, and the outcome you want to achieve.' + ], + ] +]; \ No newline at end of file diff --git a/themes/theme-one/blocks/faq-item/view.php b/themes/theme-one/blocks/faq-item/view.php new file mode 100644 index 0000000..61cca00 --- /dev/null +++ b/themes/theme-one/blocks/faq-item/view.php @@ -0,0 +1,9 @@ +
+ + setting('question') ?> + + +
+

setting('answer') ?>

+
+
\ No newline at end of file diff --git a/themes/theme-one/blocks/faq/config.php b/themes/theme-one/blocks/faq/config.php new file mode 100644 index 0000000..aba74fc --- /dev/null +++ b/themes/theme-one/blocks/faq/config.php @@ -0,0 +1,25 @@ + 'FAQ Section', + 'category' => 'Sections', + 'icon' => 'ph ph-question', + 'settings' => [ + 'heading' => [ + 'label' => 'Heading', + 'type' => 'text', + 'value' => 'Frequently asked questions' + ], + 'intro' => [ + 'label' => 'Supporting text', + 'type' => 'text', + 'value' => 'Find quick answers to common questions about our services and process.' + ], + 'item_count' => [ + 'label' => 'Number of questions (1–10)', + 'type' => 'number', + 'value' => '5', + 'placeholder' => '5' + ], + ] +]; \ No newline at end of file diff --git a/themes/theme-one/blocks/faq/view.php b/themes/theme-one/blocks/faq/view.php new file mode 100644 index 0000000..aefd209 --- /dev/null +++ b/themes/theme-one/blocks/faq/view.php @@ -0,0 +1,16 @@ +setting('item_count')))); +?> +
+
+
+

setting('heading') ?>

+

setting('intro') ?>

+
+
+ + [block slug="faq-item" id="faq-item-"] + +
+
+
\ No newline at end of file diff --git a/themes/theme-one/blocks/feature-card/config.php b/themes/theme-one/blocks/feature-card/config.php new file mode 100644 index 0000000..3940b0f --- /dev/null +++ b/themes/theme-one/blocks/feature-card/config.php @@ -0,0 +1,35 @@ + 'Feature Card', + 'category' => 'Content', + 'hidden' => true, + 'icon' => 'ph ph-cardholder', + 'settings' => [ + 'symbol' => [ + 'label' => 'Icon or symbol', + 'type' => 'text', + 'value' => '✦' + ], + 'heading' => [ + 'label' => 'Heading', + 'type' => 'text', + 'value' => 'Clear direction' + ], + 'description' => [ + 'label' => 'Description', + 'type' => 'text', + 'value' => 'Start with a clear plan shaped around your goals and the people you want to reach.' + ], + 'link_label' => [ + 'label' => 'Link label', + 'type' => 'text', + 'value' => 'Learn more' + ], + 'link_url' => [ + 'label' => 'Link URL', + 'type' => 'text', + 'value' => '/services' + ], + ] +]; \ No newline at end of file diff --git a/themes/theme-one/blocks/feature-card/view.php b/themes/theme-one/blocks/feature-card/view.php new file mode 100644 index 0000000..6b3a2b4 --- /dev/null +++ b/themes/theme-one/blocks/feature-card/view.php @@ -0,0 +1,10 @@ + \ No newline at end of file diff --git a/themes/theme-one/blocks/feature-cards/config.php b/themes/theme-one/blocks/feature-cards/config.php new file mode 100644 index 0000000..0a8d818 --- /dev/null +++ b/themes/theme-one/blocks/feature-cards/config.php @@ -0,0 +1,25 @@ + 'Feature Cards', + 'category' => 'Sections', + 'icon' => 'ph ph-cards', + 'settings' => [ + 'heading' => [ + 'label' => 'Heading', + 'type' => 'text', + 'value' => 'Thoughtful solutions for every stage' + ], + 'intro' => [ + 'label' => 'Supporting text', + 'type' => 'text', + 'value' => 'Highlight the services, strengths, or benefits that matter most to your visitors.' + ], + 'card_count' => [ + 'label' => 'Number of cards (1–6)', + 'type' => 'number', + 'value' => '3', + 'placeholder' => '3' + ], + ] +]; \ No newline at end of file diff --git a/themes/theme-one/blocks/feature-cards/view.php b/themes/theme-one/blocks/feature-cards/view.php new file mode 100644 index 0000000..739dae4 --- /dev/null +++ b/themes/theme-one/blocks/feature-cards/view.php @@ -0,0 +1,16 @@ +setting('card_count')))); +?> +
+
+
+

setting('heading') ?>

+

setting('intro') ?>

+
+
+ + [block slug="feature-card" id="feature-card-"] + +
+
+
\ No newline at end of file diff --git a/themes/theme-one/blocks/gallery-item/config.php b/themes/theme-one/blocks/gallery-item/config.php new file mode 100644 index 0000000..524c24c --- /dev/null +++ b/themes/theme-one/blocks/gallery-item/config.php @@ -0,0 +1,25 @@ + 'Gallery Image', + 'category' => 'Content', + 'hidden' => true, + 'icon' => 'ph ph-image', + 'settings' => [ + 'image_src' => [ + 'label' => 'Image source URL', + 'type' => 'text', + 'value' => 'https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=80' + ], + 'image_alt' => [ + 'label' => 'Image alternative text', + 'type' => 'text', + 'value' => 'Rolling hills beneath a cloudy sky' + ], + 'caption' => [ + 'label' => 'Caption', + 'type' => 'text', + 'value' => 'A quiet moment in the landscape' + ], + ] +]; \ No newline at end of file diff --git a/themes/theme-one/blocks/gallery-item/view.php b/themes/theme-one/blocks/gallery-item/view.php new file mode 100644 index 0000000..1107fb2 --- /dev/null +++ b/themes/theme-one/blocks/gallery-item/view.php @@ -0,0 +1,10 @@ +
+ setting('image_src')) > 0) : ?> + + <?= $block->setting('image_alt') ?> + + + setting('caption')) > 0) : ?> +
setting('caption') ?>
+ +
\ No newline at end of file diff --git a/themes/theme-one/blocks/gallery/config.php b/themes/theme-one/blocks/gallery/config.php new file mode 100644 index 0000000..2369f69 --- /dev/null +++ b/themes/theme-one/blocks/gallery/config.php @@ -0,0 +1,25 @@ + 'Gallery', + 'category' => 'Sections', + 'icon' => 'ph ph-images', + 'settings' => [ + 'heading' => [ + 'label' => 'Heading', + 'type' => 'text', + 'value' => 'A selection of our work' + ], + 'item_count' => [ + 'label' => 'Number of images (1–12)', + 'type' => 'number', + 'value' => '6', + 'placeholder' => '6' + ], + 'lightbox_enabled' => [ + 'label' => 'Enable image lightbox', + 'type' => 'yes_no', + 'value' => 1 + ], + ] +]; \ No newline at end of file diff --git a/themes/theme-one/blocks/gallery/view.php b/themes/theme-one/blocks/gallery/view.php new file mode 100644 index 0000000..3641aeb --- /dev/null +++ b/themes/theme-one/blocks/gallery/view.php @@ -0,0 +1,24 @@ +setting('item_count')))); + $lightboxEnabled = (int) $block->setting('lightbox_enabled') === 1; +?> +
+
+

setting('heading') ?>

+
+ + [block slug="gallery-item" id="gallery-item-"] + +
+ + +
+ +
+ +
+ +
+
\ No newline at end of file diff --git a/themes/theme-one/blocks/hello-world/config.php b/themes/theme-one/blocks/hello-world/config.php index 9a38604..b38c517 100644 --- a/themes/theme-one/blocks/hello-world/config.php +++ b/themes/theme-one/blocks/hello-world/config.php @@ -3,7 +3,8 @@ return [ 'title' => 'Hello World', 'category' => 'General', - 'icon' => 'fa fa-hand-peace-o', + 'hidden' => true, + 'icon' => 'ph ph-hand-wave', 'settings' => [ 'height' => [ 'label'=> 'Height', diff --git a/themes/theme-one/blocks/hero/config.php b/themes/theme-one/blocks/hero/config.php new file mode 100644 index 0000000..0efcaee --- /dev/null +++ b/themes/theme-one/blocks/hero/config.php @@ -0,0 +1,44 @@ + 'Hero', + 'category' => 'Sections', + 'icon' => 'ph ph-panorama', + 'settings' => [ + 'eyebrow' => [ + 'label' => 'Eyebrow', + 'type' => 'text', + 'value' => 'A better way to build your website' + ], + 'heading' => [ + 'label' => 'Heading', + 'type' => 'text', + 'value' => 'Make your next idea a reality' + ], + 'message' => [ + 'label' => 'Supporting text', + 'type' => 'text', + 'value' => 'Introduce your business, explain what makes it different, and help visitors find their next step.' + ], + 'button_label' => [ + 'label' => 'Button label', + 'type' => 'text', + 'value' => 'Explore our services' + ], + 'button_url' => [ + 'label' => 'Button URL', + 'type' => 'text', + 'value' => '/services' + ], + 'image_src' => [ + 'label' => 'Image source URL', + 'type' => 'text', + 'value' => 'https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1200&q=80' + ], + 'image_alt' => [ + 'label' => 'Image alternative text', + 'type' => 'text', + 'value' => 'A bright, welcoming workspace' + ], + ] +]; \ No newline at end of file diff --git a/themes/theme-one/blocks/hero/view.php b/themes/theme-one/blocks/hero/view.php new file mode 100644 index 0000000..cb789b9 --- /dev/null +++ b/themes/theme-one/blocks/hero/view.php @@ -0,0 +1,17 @@ +
+
+
+

setting('eyebrow') ?>

+

setting('heading') ?>

+

setting('message') ?>

+ + setting('button_label') ?> + +
+ setting('image_src')) > 0) : ?> +
+ <?= $block->setting('image_alt') ?> +
+ +
+
\ No newline at end of file diff --git a/themes/theme-one/blocks/image/config.php b/themes/theme-one/blocks/image/config.php index 2d5f4eb..a46f2fb 100644 --- a/themes/theme-one/blocks/image/config.php +++ b/themes/theme-one/blocks/image/config.php @@ -1,7 +1,8 @@ 'image', + 'title' => 'Image', + 'category' => 'Content', 'hidden' => true, - 'icon' => 'fa fa-hand-peace-o' + 'icon' => 'ph ph-image' ]; diff --git a/themes/theme-one/blocks/image/view.html b/themes/theme-one/blocks/image/view.html index 8513fd1..80c16de 100644 --- a/themes/theme-one/blocks/image/view.html +++ b/themes/theme-one/blocks/image/view.html @@ -1 +1 @@ - +A bright, welcoming workspace diff --git a/themes/theme-one/blocks/list/config.php b/themes/theme-one/blocks/list/config.php new file mode 100644 index 0000000..38abc17 --- /dev/null +++ b/themes/theme-one/blocks/list/config.php @@ -0,0 +1,7 @@ + 'List', + 'category' => 'Content', + 'icon' => 'ph ph-list-bullets', +]; \ No newline at end of file diff --git a/themes/theme-one/blocks/list/view.html b/themes/theme-one/blocks/list/view.html new file mode 100644 index 0000000..e177776 --- /dev/null +++ b/themes/theme-one/blocks/list/view.html @@ -0,0 +1,10 @@ +
+
+

What you can expect

+
    +
  • Clear communication from the first conversation to the final delivery
  • +
  • Practical recommendations tailored to your goals
  • +
  • Thoughtful, reliable support at every stage
  • +
+
+
\ No newline at end of file diff --git a/themes/theme-one/blocks/paragraph/config.php b/themes/theme-one/blocks/paragraph/config.php index 6381bd2..7dd3cc3 100644 --- a/themes/theme-one/blocks/paragraph/config.php +++ b/themes/theme-one/blocks/paragraph/config.php @@ -2,7 +2,7 @@ return [ 'title' => 'Paragraph', - 'category' => 'Layout', + 'category' => 'Content', 'hidden' => true, - 'icon' => 'fa fa-hand-peace-o', + 'icon' => 'ph ph-text-align-left', ]; diff --git a/themes/theme-one/blocks/paragraph/view.html b/themes/theme-one/blocks/paragraph/view.html index 33557c7..6428fb3 100644 --- a/themes/theme-one/blocks/paragraph/view.html +++ b/themes/theme-one/blocks/paragraph/view.html @@ -1,3 +1,3 @@ -
- 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. -
+

+ Add a paragraph that explains your service, shares useful information, or gives visitors the context they need. +

diff --git a/themes/theme-one/blocks/quote/config.php b/themes/theme-one/blocks/quote/config.php index a4bad4e..c27b916 100644 --- a/themes/theme-one/blocks/quote/config.php +++ b/themes/theme-one/blocks/quote/config.php @@ -3,13 +3,22 @@ return [ 'title' => 'Quote', 'category' => 'General', - 'icon' => 'fa fa-hand-peace-o', + 'icon' => 'ph ph-quotes', 'settings' => [ - 'person' => [ - 'label'=> 'Height', + 'quote' => [ + 'label' => 'Quote', 'type' => 'text', - 'placeholder' =>'auto', - 'value' => 'Micheal Gough' - ] + 'value' => 'Clear communication and thoughtful planning make every project better.' + ], + 'person' => [ + 'label' => 'Name', + 'type' => 'text', + 'value' => 'Jordan Lee' + ], + 'role' => [ + 'label' => 'Role or attribution', + 'type' => 'text', + 'value' => 'Customer' + ], ] ]; diff --git a/themes/theme-one/blocks/quote/view.php b/themes/theme-one/blocks/quote/view.php index 2c6756d..a6ded2e 100644 --- a/themes/theme-one/blocks/quote/view.php +++ b/themes/theme-one/blocks/quote/view.php @@ -1,19 +1,14 @@ -
-
-
- - - -
-

"Landwind is just awesome. It contains tons of predesigned components and pages starting from login screen to complex dashboard. Perfect choice for your next SaaS application."

-
-
- profile picture -
-
setting('person'); ?>
-
CEO at Google
-
-
-
-
+
+
+ +
+

“setting('quote') ?>”

+
+
+ setting('person') ?> + · setting('role') ?> +
+
diff --git a/themes/theme-one/blocks/row/config.php b/themes/theme-one/blocks/row/config.php index 2e410c9..c2b9af0 100644 --- a/themes/theme-one/blocks/row/config.php +++ b/themes/theme-one/blocks/row/config.php @@ -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" ], ] ]; diff --git a/themes/theme-one/blocks/row/view.php b/themes/theme-one/blocks/row/view.php index d5bed7f..1d554f9 100644 --- a/themes/theme-one/blocks/row/view.php +++ b/themes/theme-one/blocks/row/view.php @@ -1,10 +1,14 @@ -
- setting('column_count')); - for ($i = 0; $i < $columnCount; $i++): - ?> - [block slug="col" id="col"] - +setting('column_count')))); + $columnClasses = [ + 1 => 'md:grid-cols-1', + 2 => 'md:grid-cols-2', + 3 => 'md:grid-cols-3', + 4 => 'md:grid-cols-4', + ]; +?> +
+ + [block slug="col" id="col"] +
diff --git a/themes/theme-one/blocks/testimonial-item/config.php b/themes/theme-one/blocks/testimonial-item/config.php new file mode 100644 index 0000000..cf3b247 --- /dev/null +++ b/themes/theme-one/blocks/testimonial-item/config.php @@ -0,0 +1,25 @@ + 'Testimonial', + 'category' => 'Content', + 'hidden' => true, + 'icon' => 'ph ph-quotes', + 'settings' => [ + 'quote' => [ + 'label' => 'Quote', + 'type' => 'text', + 'value' => 'The process was clear from the start, and the final result made a real difference to our business.' + ], + 'name' => [ + 'label' => 'Name', + 'type' => 'text', + 'value' => 'Taylor Morgan' + ], + 'role' => [ + 'label' => 'Role or attribution', + 'type' => 'text', + 'value' => 'Business owner' + ], + ] +]; \ No newline at end of file diff --git a/themes/theme-one/blocks/testimonial-item/view.php b/themes/theme-one/blocks/testimonial-item/view.php new file mode 100644 index 0000000..163f199 --- /dev/null +++ b/themes/theme-one/blocks/testimonial-item/view.php @@ -0,0 +1,7 @@ +
+
“setting('quote') ?>”
+
+

setting('name') ?>

+

setting('role') ?>

+
+
\ No newline at end of file diff --git a/themes/theme-one/blocks/testimonials/config.php b/themes/theme-one/blocks/testimonials/config.php new file mode 100644 index 0000000..bd482ff --- /dev/null +++ b/themes/theme-one/blocks/testimonials/config.php @@ -0,0 +1,25 @@ + 'Testimonials', + 'category' => 'Sections', + 'icon' => 'ph ph-chat-centered-quote', + 'settings' => [ + 'heading' => [ + 'label' => 'Heading', + 'type' => 'text', + 'value' => 'What our clients say' + ], + 'intro' => [ + 'label' => 'Supporting text', + 'type' => 'text', + 'value' => 'A few words from people we have had the pleasure of working with.' + ], + 'item_count' => [ + 'label' => 'Number of testimonials (1–6)', + 'type' => 'number', + 'value' => '3', + 'placeholder' => '3' + ], + ] +]; \ No newline at end of file diff --git a/themes/theme-one/blocks/testimonials/view.php b/themes/theme-one/blocks/testimonials/view.php new file mode 100644 index 0000000..088bee7 --- /dev/null +++ b/themes/theme-one/blocks/testimonials/view.php @@ -0,0 +1,16 @@ +setting('item_count')))); +?> +
+
+
+

setting('heading') ?>

+

setting('intro') ?>

+
+
+ + [block slug="testimonial-item" id="testimonial-item-"] + +
+
+
\ No newline at end of file diff --git a/themes/theme-one/blocks/text-image/config.php b/themes/theme-one/blocks/text-image/config.php index 1fb65b6..ae3e477 100644 --- a/themes/theme-one/blocks/text-image/config.php +++ b/themes/theme-one/blocks/text-image/config.php @@ -2,7 +2,7 @@ return [ 'title' => 'Text + Image', - 'category' => 'General', + 'category' => 'Content', 'icon' => 'ph ph-square-half', 'settings' => [ "order" => [ @@ -23,18 +23,18 @@ return [ "width" => [ "type" => "select", "label" => "Image Width", - "value" => "md:w-6/12", + "value" => "md:w-1/2", "options" => [ [ - "id" => "md:w-4/12", + "id" => "md:w-1/3", "name" => "1/3" ], [ - "id" => "md:w-6/12", + "id" => "md:w-1/2", "name" => "1/2" ], [ - "id" => "md:w-full", + "id" => "md:w-2/3", "name" => "2/3" ], ] @@ -43,7 +43,7 @@ return [ 'label'=> 'Headline', 'type' => 'text', 'placeholder' =>'Headline', - 'value' => 'Lorem Ipsum dolor' + 'value' => 'A flexible section for your story' ], ] ]; diff --git a/themes/theme-one/blocks/text-image/view.php b/themes/theme-one/blocks/text-image/view.php index 892f0d7..9df6a87 100644 --- a/themes/theme-one/blocks/text-image/view.php +++ b/themes/theme-one/blocks/text-image/view.php @@ -1,17 +1,17 @@ -
-
-
+
+
+
setting('headline')) > 0) : ?> -
- setting('headline')) ?> -
+

+ setting('headline') ?> +

- [block slug="paragraph"] -
-
- [block slug="button"] +
+ [block slug="paragraph"] + [block slug="button"] +
-
+
[block slug="image"]
diff --git a/themes/theme-one/dist/script.js b/themes/theme-one/dist/script.js index cc69453..70547a4 100644 --- a/themes/theme-one/dist/script.js +++ b/themes/theme-one/dist/script.js @@ -1,5 +1 @@ -var e=!1,t=!1,n=[],r=-1;function i(e){a(e)}function a(e){n.includes(e)||n.push(e),s()}function o(e){let t=n.indexOf(e);t!==-1&&t>r&&n.splice(t,1)}function s(){!t&&!e&&(e=!0,queueMicrotask(c))}function c(){e=!1,t=!0;for(let e=0;ee.effect(t,{scheduler:e=>{p?i(e):e()}}),f=e.raw}function g(e){u=e}function ee(e){let t=()=>{};return[n=>{let r=u(n);return e._x_effects||(e._x_effects=/* @__PURE__ */ new Set,e._x_runEffects=()=>{e._x_effects.forEach(e=>e())}),e._x_effects.add(r),t=()=>{r!==void 0&&(e._x_effects.delete(r),d(r))},r},()=>{t()}]}var te=[],ne=[],re=[];function ie(e){re.push(e)}function ae(e,t){typeof t==`function`?(e._x_cleanups||=[],e._x_cleanups.push(t)):(t=e,ne.push(t))}function oe(e){te.push(e)}function se(e,t,n){e._x_attributeCleanups||={},e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function ce(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(e=>e()),delete e._x_attributeCleanups[n])})}var le=new MutationObserver(be),ue=!1;function de(){le.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),ue=!0}function fe(){me(),le.disconnect(),ue=!1}var _=[],pe=!1;function me(){_=_.concat(le.takeRecords()),_.length&&!pe&&(pe=!0,queueMicrotask(()=>{he(),pe=!1}))}function he(){be(_),_.length=0}function v(e){if(!ue)return e();fe();let t=e();return de(),t}var ge=!1,_e=[];function ve(){ge=!0}function ye(){ge=!1,be(_e),_e=[]}function be(e){if(ge){_e=_e.concat(e);return}let t=[],n=[],r=/* @__PURE__ */ new Map,i=/* @__PURE__ */ new Map;for(let a=0;ae.nodeType===1&&t.push(e)),e[a].removedNodes.forEach(e=>e.nodeType===1&&n.push(e))),e[a].type===`attributes`)){let t=e[a].target,n=e[a].attributeName,o=e[a].oldValue,s=()=>{r.has(t)||r.set(t,[]),r.get(t).push({name:n,value:t.getAttribute(n)})},c=()=>{i.has(t)||i.set(t,[]),i.get(t).push(n)};t.hasAttribute(n)&&o===null?s():t.hasAttribute(n)?(c(),s()):c()}i.forEach((e,t)=>{ce(t,e)}),r.forEach((e,t)=>{te.forEach(n=>n(t,e))});for(let e of n)if(!t.includes(e)&&(ne.forEach(t=>t(e)),e._x_cleanups))for(;e._x_cleanups.length;)e._x_cleanups.pop()();t.forEach(e=>{e._x_ignoreSelf=!0,e._x_ignore=!0});for(let e of t)n.includes(e)||e.isConnected&&(delete e._x_ignoreSelf,delete e._x_ignore,re.forEach(t=>t(e)),e._x_ignore=!0,e._x_ignoreSelf=!0);t.forEach(e=>{delete e._x_ignoreSelf,delete e._x_ignore}),t=null,n=null,r=null,i=null}function xe(e){return x(b(e))}function y(e,t,n){return e._x_dataStack=[t,...b(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(e=>e!==t)}}function b(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot==`function`&&e instanceof ShadowRoot?b(e.host):e.parentNode?b(e.parentNode):[]}function x(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap(e=>Object.keys(e)))),has:(t,n)=>e.some(e=>e.hasOwnProperty(n)),get:(n,r)=>(e.find(e=>{if(e.hasOwnProperty(r)){let n=Object.getOwnPropertyDescriptor(e,r);if(n.get&&n.get._x_alreadyBound||n.set&&n.set._x_alreadyBound)return!0;if((n.get||n.set)&&n.enumerable){let i=n.get,a=n.set,o=n;i&&=i.bind(t),a&&=a.bind(t),i&&(i._x_alreadyBound=!0),a&&(a._x_alreadyBound=!0),Object.defineProperty(e,r,{...o,get:i,set:a})}return!0}return!1})||{})[r],set:(t,n,r)=>{let i=e.find(e=>e.hasOwnProperty(n));return i?i[n]=r:e[e.length-1][n]=r,!0}});return t}function Se(e){let t=e=>typeof e==`object`&&!Array.isArray(e)&&e!==null,n=(r,i=``)=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([a,{value:o,enumerable:s}])=>{if(s===!1||o===void 0)return;let c=i===``?a:`${i}.${a}`;typeof o==`object`&&o&&o._x_interceptor?r[a]=o.initialize(e,c,a):t(o)&&o!==r&&!(o instanceof Element)&&n(o,c)})};return n(e)}function Ce(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(t,n,r){return e(this.initialValue,()=>we(t,n),e=>Te(t,n,e),n,r)}};return t(n),e=>{if(typeof e==`object`&&e&&e._x_interceptor){let t=n.initialize.bind(n);n.initialize=(r,i,a)=>{let o=e.initialize(r,i,a);return n.initialValue=o,t(r,i,a)}}else n.initialValue=e;return n}}function we(e,t){return t.split(`.`).reduce((e,t)=>e[t],e)}function Te(e,t,n){if(typeof t==`string`&&(t=t.split(`.`)),t.length===1)e[t[0]]=n;else if(t.length===0)throw error;else if(e[t[0]])return Te(e[t[0]],t.slice(1),n);else return e[t[0]]={},Te(e[t[0]],t.slice(1),n)}var Ee={};function S(e,t){Ee[e]=t}function De(e,t){return Object.entries(Ee).forEach(([n,r])=>{let i=null;function a(){if(i)return i;{let[e,n]=Ke(t);return i={interceptor:Ce,...e},ae(t,n),i}}Object.defineProperty(e,`$${n}`,{get(){return r(t,a())},enumerable:!1})}),e}function Oe(e,t,n,...r){try{return n(...r)}catch(n){C(n,e,t)}}function C(e,t,n=void 0){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message} - -${n?`Expression: "`+n+`" - -`:``}`,t),setTimeout(()=>{throw e},0)}var w=!0;function ke(e){let t=w;w=!1;let n=e();return w=t,n}function T(e,t,n={}){let r;return E(e,t)(e=>r=e,n),r}function E(...e){return Ae(...e)}var Ae=Me;function je(e){Ae=e}function Me(e,t){let n={};De(n,e);let r=[n,...b(e)],i=typeof t==`function`?Ne(r,t):Ie(r,t,e);return Oe.bind(null,e,t,i)}function Ne(e,t){return(n=()=>{},{scope:r={},params:i=[]}={})=>{Le(n,t.apply(x([r,...e]),i))}}var Pe={};function Fe(e,t){if(Pe[e])return Pe[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)\s/.test(e)?`(async()=>{ ${e} })()`:e,i=(()=>{try{return new n([`__self`,`scope`],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`)}catch(n){return C(n,t,e),Promise.resolve()}})();return Pe[e]=i,i}function Ie(e,t,n){let r=Fe(t,n);return(i=()=>{},{scope:a={},params:o=[]}={})=>{r.result=void 0,r.finished=!1;let s=x([a,...e]);if(typeof r==`function`){let e=r(r,s).catch(e=>C(e,n,t));r.finished?(Le(i,r.result,s,o,n),r.result=void 0):e.then(e=>{Le(i,e,s,o,n)}).catch(e=>C(e,n,t)).finally(()=>r.result=void 0)}}}function Le(e,t,n,r,i){if(w&&typeof t==`function`){let a=t.apply(n,r);a instanceof Promise?a.then(t=>Le(e,t,n,r)).catch(e=>C(e,i,t)):e(a)}else typeof t==`object`&&t instanceof Promise?t.then(t=>e(t)):e(t)}var Re=`x-`;function D(e=``){return Re+e}function ze(e){Re=e}var Be={};function O(e,t){return Be[e]=t,{before(t){if(!Be[t]){console.warn("Cannot find directive `${directive}`. `${name}` will use the default order of execution");return}let n=A.indexOf(t);A.splice(n>=0?n:A.indexOf(`DEFAULT`),0,e)}}}function Ve(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let n=Object.entries(e._x_virtualDirectives).map(([e,t])=>({name:e,value:t})),r=He(n);n=n.map(e=>r.find(t=>t.name===e.name)?{name:`x-bind:${e.name}`,value:`"${e.value}"`}:e),t=t.concat(n)}let r={};return t.map(Xe((e,t)=>r[e]=t)).filter($e).map(tt(r,n)).sort(rt).map(t=>qe(e,t))}function He(e){return Array.from(e).map(Xe()).filter(e=>!$e(e))}var Ue=!1,k=/* @__PURE__ */ new Map,We=Symbol();function Ge(e){Ue=!0;let t=Symbol();We=t,k.set(t,[]);let n=()=>{for(;k.get(t).length;)k.get(t).shift()();k.delete(t)};e(n),Ue=!1,n()}function Ke(e){let t=[],n=e=>t.push(e),[r,i]=ee(e);return t.push(i),[{Alpine:H,effect:r,cleanup:n,evaluateLater:E.bind(E,e),evaluate:T.bind(T,e)},()=>t.forEach(e=>e())]}function qe(e,t){let n=Be[t.type]||(()=>{}),[r,i]=Ke(e);se(e,t.original,i);let a=()=>{e._x_ignore||e._x_ignoreSelf||(n.inline&&n.inline(e,t,r),n=n.bind(n,e,t,r),Ue?k.get(We).push(n):n())};return a.runCleanups=i,a}var Je=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r}),Ye=e=>e;function Xe(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:i}=Ze.reduce((e,t)=>t(e),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var Ze=[];function Qe(e){Ze.push(e)}function $e({name:e}){return et().test(e)}var et=()=>RegExp(`^${Re}([^:^.]+)\\b`);function tt(e,t){return({name:n,value:r})=>{let i=n.match(et()),a=n.match(/:([a-zA-Z0-9\-:]+)/),o=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],s=t||e[n]||n;return{type:i?i[1]:null,value:a?a[1]:null,modifiers:o.map(e=>e.replace(`.`,``)),expression:r,original:s}}}var nt=`DEFAULT`,A=[`ignore`,`ref`,`data`,`id`,`bind`,`init`,`for`,`model`,`modelable`,`transition`,`show`,`if`,nt,`teleport`];function rt(e,t){let n=A.indexOf(e.type)===-1?nt:e.type,r=A.indexOf(t.type)===-1?nt:t.type;return A.indexOf(n)-A.indexOf(r)}function j(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function M(e,t){if(typeof ShadowRoot==`function`&&e instanceof ShadowRoot){Array.from(e.children).forEach(e=>M(e,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)M(r,t,!1),r=r.nextElementSibling}function N(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var it=!1;function at(){it&&N(`Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems.`),it=!0,document.body||N("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `