fix: DockerSecretsResolver - don't normalize absolute paths like /var/www/html/...
Some checks failed
Deploy Application / deploy (push) Has been cancelled
Some checks failed
Deploy Application / deploy (push) Has been cancelled
This commit is contained in:
164
config/cms/block-templates.php
Normal file
164
config/cms/block-templates.php
Normal file
@@ -0,0 +1,164 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* CMS Block Templates Configuration
|
||||
*
|
||||
* Predefined block combinations that can be applied to content.
|
||||
* These templates serve as starting points for common content structures.
|
||||
*
|
||||
* Structure:
|
||||
* - 'template-id' => [
|
||||
* 'name' => 'Display Name',
|
||||
* 'description' => 'Template description',
|
||||
* 'blocks' => [
|
||||
* ['type' => 'block-type', 'data' => [...], 'settings' => [...]],
|
||||
* ...
|
||||
* ]
|
||||
* ]
|
||||
*/
|
||||
|
||||
return [
|
||||
'landing-page' => [
|
||||
'name' => 'Landing Page',
|
||||
'description' => 'Standard landing page with hero, content sections, and CTA',
|
||||
'blocks' => [
|
||||
[
|
||||
'type' => 'hero',
|
||||
'data' => [
|
||||
'title' => 'Welcome to Our Website',
|
||||
'subtitle' => 'Discover amazing content',
|
||||
'ctaText' => 'Get Started',
|
||||
'ctaLink' => '#',
|
||||
'backgroundImage' => null,
|
||||
],
|
||||
],
|
||||
[
|
||||
'type' => 'text',
|
||||
'data' => [
|
||||
'content' => '<p>This is a standard landing page template. Customize the content to match your needs.</p>',
|
||||
'alignment' => 'center',
|
||||
'maxWidth' => '800px',
|
||||
],
|
||||
],
|
||||
[
|
||||
'type' => 'cta',
|
||||
'data' => [
|
||||
'title' => 'Ready to Get Started?',
|
||||
'description' => 'Join us today and experience the difference',
|
||||
'buttonText' => 'Sign Up Now',
|
||||
'buttonLink' => '#',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
'article' => [
|
||||
'name' => 'Article',
|
||||
'description' => 'Standard article layout with title, content, and image',
|
||||
'blocks' => [
|
||||
[
|
||||
'type' => 'text',
|
||||
'data' => [
|
||||
'content' => '<h1>Article Title</h1>',
|
||||
'alignment' => 'left',
|
||||
'maxWidth' => '100%',
|
||||
],
|
||||
],
|
||||
[
|
||||
'type' => 'image',
|
||||
'data' => [
|
||||
'imageId' => null,
|
||||
'imageUrl' => null,
|
||||
'alt' => 'Article featured image',
|
||||
'caption' => null,
|
||||
],
|
||||
],
|
||||
[
|
||||
'type' => 'text',
|
||||
'data' => [
|
||||
'content' => '<p>Article content goes here...</p>',
|
||||
'alignment' => 'left',
|
||||
'maxWidth' => '800px',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
'hero-only' => [
|
||||
'name' => 'Hero Only',
|
||||
'description' => 'Simple hero section',
|
||||
'blocks' => [
|
||||
[
|
||||
'type' => 'hero',
|
||||
'data' => [
|
||||
'title' => 'Hero Title',
|
||||
'subtitle' => 'Hero subtitle',
|
||||
'ctaText' => 'Learn More',
|
||||
'ctaLink' => '#',
|
||||
'backgroundImage' => null,
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
'text-content' => [
|
||||
'name' => 'Text Content',
|
||||
'description' => 'Simple text content block',
|
||||
'blocks' => [
|
||||
[
|
||||
'type' => 'text',
|
||||
'data' => [
|
||||
'content' => '<p>Your content here...</p>',
|
||||
'alignment' => 'left',
|
||||
'maxWidth' => '800px',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
'image-gallery' => [
|
||||
'name' => 'Image Gallery',
|
||||
'description' => 'Gallery of images',
|
||||
'blocks' => [
|
||||
[
|
||||
'type' => 'text',
|
||||
'data' => [
|
||||
'content' => '<h2>Gallery</h2>',
|
||||
'alignment' => 'center',
|
||||
],
|
||||
],
|
||||
[
|
||||
'type' => 'gallery',
|
||||
'data' => [
|
||||
'images' => [],
|
||||
'columns' => 3,
|
||||
'spacing' => 'medium',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
'columns-layout' => [
|
||||
'name' => 'Columns Layout',
|
||||
'description' => 'Two-column content layout',
|
||||
'blocks' => [
|
||||
[
|
||||
'type' => 'columns',
|
||||
'data' => [
|
||||
'columns' => [
|
||||
[
|
||||
'content' => '<p>Left column content</p>',
|
||||
],
|
||||
[
|
||||
'content' => '<p>Right column content</p>',
|
||||
],
|
||||
],
|
||||
'layout' => '2-columns',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
32
config/cms/default-content-types.php
Normal file
32
config/cms/default-content-types.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* Default CMS Content Types Configuration
|
||||
*
|
||||
* This file defines the standard content types that will be seeded
|
||||
* when running the DefaultContentTypesSeeder.
|
||||
*
|
||||
* You can modify this file to customize the default content types
|
||||
* without changing the seeder code.
|
||||
*/
|
||||
|
||||
return [
|
||||
'page' => [
|
||||
'name' => 'Page',
|
||||
'description' => 'Standard pages for general content',
|
||||
'isSystem' => true,
|
||||
],
|
||||
'post' => [
|
||||
'name' => 'Post',
|
||||
'description' => 'Blog posts and news articles',
|
||||
'isSystem' => true,
|
||||
],
|
||||
'landing_page' => [
|
||||
'name' => 'Landing Page',
|
||||
'description' => 'Marketing landing pages for campaigns',
|
||||
'isSystem' => true,
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user