Browse Source

misc block and menus

bach 2 years ago
parent
commit
94b7a41cb1

+ 1 - 1
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'

+ 1 - 1
config/sync/block.block.logogouvcartouche.yml

@@ -26,5 +26,5 @@ settings:
 visibility:
   request_path:
     id: request_path
-    pages: '<front>'
+    pages: ''
     negate: true

+ 1 - 1
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'

+ 2 - 2
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

+ 1 - 1
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

+ 40 - 0
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 <div>.
+ *
+ * @ingroup themeable
+ */
+#}
+{%
+  set classes = [
+  'layout',
+  'layout--onecolthreerows',
+]
+%} content %}
+  <div{{ attributes.addClass(classes) }}>
+
+    {% if content.first %}
+      <div{{ region_attributes.first.addClass('layout__region', 'layout__region--first') }}>
+        {{ content.first }}
+      </div>
+    {% endif %}
+
+    {% if content.second %}
+      <div{{ region_attributes.second.addClass('layout__region', 'layout__region--second') }}>
+        {{ content.second }}
+      </div>
+    {% endif %}
+
+    {% if content.third %}
+      <div{{ region_attributes.third.addClass('layout__region', 'layout__region--third') }}>
+        {{ content.third }}
+      </div>
+    {% endif %}
+
+  </div>
+{% endif %}

+ 4 - 0
web/modules/custom/custom_panels_layout/_custom_panels_layout.libraries.yml

@@ -0,0 +1,4 @@
+oneplusfourgrid_section:
+  css:
+    theme:
+      layouts/onecolthreerows.css: {}

+ 6 - 0
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:

+ 18 - 0
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

+ 1 - 0
web/modules/custom/custom_panels_layout/custom_panels_layout.module

@@ -0,0 +1 @@
+<?php