From 94b7a41cb11445d31fe0782340269e87ae5a73e5 Mon Sep 17 00:00:00 2001 From: bach Date: Mon, 30 Aug 2021 16:12:29 +0200 Subject: [PATCH] misc block and menus --- config/sync/block.block.logogouv.yml | 2 +- config/sync/block.block.logogouvcartouche.yml | 2 +- config/sync/block.block.logopuca.yml | 2 +- config/sync/structure_sync.data.yml | 4 +- config/sync/views.view.projets.yml | 2 +- .../Layouts/layout--onecolthreerows.twig | 40 +++++++++++++++++++ .../_custom_panels_layout.libraries.yml | 4 ++ .../custom_panels_layout.info.yml | 6 +++ .../custom_panels_layout.layouts.yml | 18 +++++++++ .../custom_panels_layout.module | 1 + 10 files changed, 75 insertions(+), 6 deletions(-) create mode 100644 web/modules/custom/custom_panels_layout/Layouts/layout--onecolthreerows.twig create mode 100644 web/modules/custom/custom_panels_layout/_custom_panels_layout.libraries.yml create mode 100644 web/modules/custom/custom_panels_layout/custom_panels_layout.info.yml create mode 100644 web/modules/custom/custom_panels_layout/custom_panels_layout.layouts.yml create mode 100644 web/modules/custom/custom_panels_layout/custom_panels_layout.module diff --git a/config/sync/block.block.logogouv.yml b/config/sync/block.block.logogouv.yml index 372429db..4404e826 100644 --- a/config/sync/block.block.logogouv.yml +++ b/config/sync/block.block.logogouv.yml @@ -1,6 +1,6 @@ uuid: 98cced88-96ab-4187-bf85-9d9c6d087dad langcode: fr -status: true +status: false dependencies: content: - 'block_content:logo_block:68fcdff8-7b8c-4414-a84b-6ce173b5dc8b' diff --git a/config/sync/block.block.logogouvcartouche.yml b/config/sync/block.block.logogouvcartouche.yml index b92b0775..fc661b95 100644 --- a/config/sync/block.block.logogouvcartouche.yml +++ b/config/sync/block.block.logogouvcartouche.yml @@ -26,5 +26,5 @@ settings: visibility: request_path: id: request_path - pages: '' + pages: '' negate: true diff --git a/config/sync/block.block.logopuca.yml b/config/sync/block.block.logopuca.yml index 4863d39b..e7229edc 100644 --- a/config/sync/block.block.logopuca.yml +++ b/config/sync/block.block.logopuca.yml @@ -1,6 +1,6 @@ uuid: eba5d343-685c-4271-9243-cf6c308d2a60 langcode: fr -status: true +status: false dependencies: content: - 'block_content:logo_block:52af228a-19dd-4eb5-bce4-6d7b3e4acff1' diff --git a/config/sync/structure_sync.data.yml b/config/sync/structure_sync.data.yml index 657c1b0a..5ac1c374 100644 --- a/config/sync/structure_sync.data.yml +++ b/config/sync/structure_sync.data.yml @@ -167,7 +167,7 @@ menus: uri: 'internal:/node/218' link_title: '' description: null - enabled: '1' + enabled: '0' expanded: '0' weight: '-49' langcode: fr @@ -179,7 +179,7 @@ menus: uri: 'internal:/node/216' link_title: '' description: null - enabled: '1' + enabled: '0' expanded: '0' weight: '-47' langcode: fr diff --git a/config/sync/views.view.projets.yml b/config/sync/views.view.projets.yml index 37bea21a..3ee69534 100644 --- a/config/sync/views.view.projets.yml +++ b/config/sync/views.view.projets.yml @@ -66,7 +66,7 @@ display: name_field: title description_field: '#rendered_view_fields' view_mode: full - leaflet_map: stamen-toner-lite + leaflet_map: '~popsu home' height: '800' height_unit: px hide_empty_map: false diff --git a/web/modules/custom/custom_panels_layout/Layouts/layout--onecolthreerows.twig b/web/modules/custom/custom_panels_layout/Layouts/layout--onecolthreerows.twig new file mode 100644 index 00000000..5bac5d84 --- /dev/null +++ b/web/modules/custom/custom_panels_layout/Layouts/layout--onecolthreerows.twig @@ -0,0 +1,40 @@ +{# +/** + * @file + * Default theme implementation to display a one col three rows layout. + * + * Available variables: + * - content: The content for this layout. + * - attributes: HTML attributes for the layout
. + * + * @ingroup themeable + */ +#} +{% + set classes = [ + 'layout', + 'layout--onecolthreerows', +] +%} content %} + + + {% if content.first %} + + {{ content.first }} +
+ {% endif %} + + {% if content.second %} + + {{ content.second }} + + {% endif %} + + {% if content.third %} + + {{ content.third }} + + {% endif %} + + +{% endif %} \ No newline at end of file diff --git a/web/modules/custom/custom_panels_layout/_custom_panels_layout.libraries.yml b/web/modules/custom/custom_panels_layout/_custom_panels_layout.libraries.yml new file mode 100644 index 00000000..e05a4011 --- /dev/null +++ b/web/modules/custom/custom_panels_layout/_custom_panels_layout.libraries.yml @@ -0,0 +1,4 @@ +oneplusfourgrid_section: + css: + theme: + layouts/onecolthreerows.css: {} \ No newline at end of file diff --git a/web/modules/custom/custom_panels_layout/custom_panels_layout.info.yml b/web/modules/custom/custom_panels_layout/custom_panels_layout.info.yml new file mode 100644 index 00000000..fbf66c2d --- /dev/null +++ b/web/modules/custom/custom_panels_layout/custom_panels_layout.info.yml @@ -0,0 +1,6 @@ +name: Custom Panels Layout +type: module +description: misc panels layout. +core_version_requirement: ^8.8 || ^9 +package: Custom +dependencies: diff --git a/web/modules/custom/custom_panels_layout/custom_panels_layout.layouts.yml b/web/modules/custom/custom_panels_layout/custom_panels_layout.layouts.yml new file mode 100644 index 00000000..1f04aa01 --- /dev/null +++ b/web/modules/custom/custom_panels_layout/custom_panels_layout.layouts.yml @@ -0,0 +1,18 @@ +layout_onecolthreerows: + label: 'One Column Three Rows' + path: layouts + template: layout--onecolthreerows + # library: custom_panels_layout/onecolthreerows + category: 'Custom' + default_region: first + icon_map: + - [first] + - [second] + - [third] + regions: + first: + label: First + second: + label: Second + third: + label: Third diff --git a/web/modules/custom/custom_panels_layout/custom_panels_layout.module b/web/modules/custom/custom_panels_layout/custom_panels_layout.module new file mode 100644 index 00000000..b3d9bbc7 --- /dev/null +++ b/web/modules/custom/custom_panels_layout/custom_panels_layout.module @@ -0,0 +1 @@ +