From e1084c76da465428fcd06304f8b99ee1d4db2c70 Mon Sep 17 00:00:00 2001 From: Sebastian Zoglowek <55794780+zoglo@users.noreply.github.com> Date: Wed, 30 Oct 2024 17:42:46 +0100 Subject: [PATCH] Semantic html * wrap main_above and main_below in main * change #main to div * write migration --- config/migrations.yaml | 7 ++ contao/templates/frontend/fe_page.html5 | 70 ++++++++------- .../scss/ctm_layout/_article-spacing.scss | 2 +- .../CustomLayoutSectionMigration.php | 86 +++++++++++++++++++ 4 files changed, 131 insertions(+), 34 deletions(-) create mode 100644 src/Migration/Version220/CustomLayoutSectionMigration.php diff --git a/config/migrations.yaml b/config/migrations.yaml index d0c7eb6..53780dd 100644 --- a/config/migrations.yaml +++ b/config/migrations.yaml @@ -19,3 +19,10 @@ services: - '@contao.framework' tags: - { name: contao.migration, priority: 0 } + + ContaoThemeManager\Core\Migration\Version220\CustomLayoutSectionMigration: + arguments: + - '@database_connection' + - '@contao.framework' + tags: + - { name: contao.migration, priority: 0 } diff --git a/contao/templates/frontend/fe_page.html5 b/contao/templates/frontend/fe_page.html5 index ef53d0f..9e9c8a4 100644 --- a/contao/templates/frontend/fe_page.html5 +++ b/contao/templates/frontend/fe_page.html5 @@ -45,42 +45,46 @@ sections('before'); ?> block('container'); ?> - main || $this->left || $this->right): ?> -