Compare commits

...

3 Commits

36 changed files with 766 additions and 542 deletions

133
composer.lock generated
View File

@ -2339,17 +2339,17 @@
},
{
"name": "drupal/block_class",
"version": "4.0.0",
"version": "2.0.12",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/block_class.git",
"reference": "4.0.0"
"reference": "2.0.12"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/block_class-4.0.0.zip",
"reference": "4.0.0",
"shasum": "4ed97a78db9b52f28e46d377947fecfb3a8c9580"
"url": "https://ftp.drupal.org/files/projects/block_class-2.0.12.zip",
"reference": "2.0.12",
"shasum": "cc3945f8038bcc9bb48eff897df332aa952d62e6"
},
"require": {
"drupal/core": "^9 || ^10 || ^11"
@ -2357,8 +2357,8 @@
"type": "drupal-module",
"extra": {
"drupal": {
"version": "4.0.0",
"datestamp": "1730640283",
"version": "2.0.12",
"datestamp": "1723243074",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
@ -2618,30 +2618,27 @@
},
{
"name": "drupal/config_ignore",
"version": "3.3.0",
"version": "2.4.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/config_ignore.git",
"reference": "8.x-3.3"
"reference": "8.x-2.4"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/config_ignore-8.x-3.3.zip",
"reference": "8.x-3.3",
"shasum": "4446811ecb023820a57c227d35c034e0d4363a70"
"url": "https://ftp.drupal.org/files/projects/config_ignore-8.x-2.4.zip",
"reference": "8.x-2.4",
"shasum": "e0e45dde2d6927c5d26de59f352792fb6cf26554"
},
"require": {
"drupal/core": "^8.8 || ^9 || ^10 || ^11"
},
"require-dev": {
"drupal/config_filter": "^1.8||^2.2",
"drush/drush": "^10 || ^11 || ^12"
"drupal/config_filter": "^1 || ^2",
"drupal/core": "^8 || ^9 || ^10"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "8.x-3.3",
"datestamp": "1713299496",
"version": "8.x-2.4",
"datestamp": "1676045435",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
@ -2669,11 +2666,12 @@
"homepage": "https://www.drupal.org/user/413139"
}
],
"description": "Ignore certain configuration during import and export.",
"description": "Ignore certain configuration during import.",
"homepage": "http://drupal.org/project/config_ignore",
"support": {
"source": "https://git.drupalcode.org/project/config_ignore",
"issues": "http://drupal.org/project/config_ignore"
"issues": "https://drupal.org/project/config_ignore",
"irc": "irc://irc.freenode.org/drupal-contribute"
}
},
{
@ -4129,26 +4127,26 @@
},
{
"name": "drupal/extlink",
"version": "2.0.4",
"version": "1.7.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/extlink.git",
"reference": "2.0.4"
"reference": "8.x-1.7"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/extlink-2.0.4.zip",
"reference": "2.0.4",
"shasum": "0331ef3457d3a1701f01e04f8256bdd823ea3512"
"url": "https://ftp.drupal.org/files/projects/extlink-8.x-1.7.zip",
"reference": "8.x-1.7",
"shasum": "38650688b5a58496db59f40b2a7f36c4bedcbfb4"
},
"require": {
"drupal/core": "^10 || ^11"
"drupal/core": "^8 || ^9 || ^10"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "2.0.4",
"datestamp": "1732565828",
"version": "8.x-1.7",
"datestamp": "1665770295",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
@ -4864,21 +4862,20 @@
},
{
"name": "drupal/inline_entity_form",
"version": "3.0.0-rc20",
"version": "1.0.0-rc17",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/inline_entity_form.git",
"reference": "3.0.0-rc20"
"reference": "8.x-1.0-rc17"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/inline_entity_form-3.0.0-rc20.zip",
"reference": "3.0.0-rc20",
"shasum": "c9ad4572bce4260d1d233a0c3196e4ff0915e4ee"
"url": "https://ftp.drupal.org/files/projects/inline_entity_form-8.x-1.0-rc17.zip",
"reference": "8.x-1.0-rc17",
"shasum": "626622e01cf7a2d2977fdc06ae09afd5a814e09b"
},
"require": {
"drupal/core": "^8.8 || ^9 || ^10 || ^11",
"drupal/rat": "^1.0.0@stable",
"drupal/core": "^8.8 || ^9 || ^10",
"php": ">=7.1"
},
"require-dev": {
@ -4887,8 +4884,8 @@
"type": "drupal-module",
"extra": {
"drupal": {
"version": "3.0.0-rc20",
"datestamp": "1722000368",
"version": "8.x-1.0-rc17",
"datestamp": "1703020130",
"security-coverage": {
"status": "not-covered",
"message": "RC releases are not covered by Drupal security advisories."
@ -6716,48 +6713,6 @@
"source": "https://git.drupalcode.org/project/profile"
}
},
{
"name": "drupal/rat",
"version": "1.0.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/rat.git",
"reference": "28202b02262a39ac8dbbfd43696b67c0c8c46b71"
},
"dist": {
"type": "zip",
"url": "https://git.drupalcode.org/api/v4/projects/project%2Frat/repository/archive.zip?sha=28202b02262a39ac8dbbfd43696b67c0c8c46b71",
"reference": "28202b02262a39ac8dbbfd43696b67c0c8c46b71",
"shasum": ""
},
"require": {
"php": "^7.4 || ^8.0"
},
"require-dev": {
"drupal/core": "^9.4",
"drupal/core-dev": "^9.4"
},
"type": "library",
"autoload": {
"psr-4": {
"Drupal\\rat\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"gpl-2.0-or-later"
],
"authors": [
{
"name": "Merlin",
"email": "merlin@geeks4change.net"
}
],
"support": {
"source": "https://git.drupalcode.org/project/rat/-/tree/1.0.0"
},
"time": "2023-07-19T22:22:22+00:00"
},
{
"name": "drupal/redirect",
"version": "1.11.0",
@ -7979,21 +7934,20 @@
},
{
"name": "drupal/views_bulk_edit",
"version": "3.0.0",
"version": "2.9.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/views_bulk_edit.git",
"reference": "3.0.0"
"reference": "8.x-2.9"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/views_bulk_edit-3.0.0.zip",
"reference": "3.0.0",
"shasum": "3b16079aa95fb4834561fcfd1197cce73b7f4b88"
"url": "https://ftp.drupal.org/files/projects/views_bulk_edit-8.x-2.9.zip",
"reference": "8.x-2.9",
"shasum": "db45a8cc9ac629859374b24974eafcef257e4387"
},
"require": {
"drupal/core": "^9.4 || ^10 || ^11",
"php": ">=8.1"
"drupal/core": "^9.4 || ^10"
},
"require-dev": {
"drupal/views_bulk_operations": "~4.2.4"
@ -8004,8 +7958,8 @@
"type": "drupal-module",
"extra": {
"drupal": {
"version": "3.0.0",
"datestamp": "1725358398",
"version": "8.x-2.9",
"datestamp": "1690222256",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
@ -13161,6 +13115,7 @@
"drupal/agreement": 15,
"drupal/bulkdelete": 20,
"drupal/config_devel": 20,
"drupal/config_ignore": 5,
"drupal/config_update": 15,
"drupal/context": 5,
"drupal/date_range_formatter": 20,

View File

@ -1,4 +1,4 @@
_core:
default_config_hash: LzdDtE3Im_Ysio7g1Eo8ymSMq0mgSQMPzv0khsr_J64
mode: simple
ignored_config_entities: { }
mode: simple

View File

@ -11,7 +11,6 @@ dependencies:
- field.field.node.projet.field_diaporama
- field.field.node.projet.field_intro
- field.field.node.projet.field_legende_carte
- field.field.node.projet.field_libelles_carte
- field.field.node.projet.field_liens
- field.field.node.projet.field_localisation_textuel
- field.field.node.projet.field_pieces_jointes
@ -27,7 +26,6 @@ dependencies:
- field_group
- file
- image
- leaflet
- link
- paragraphs
- path
@ -46,7 +44,7 @@ third_party_settings:
label: Tabs
region: content
parent_name: ''
weight: 3
weight: 1
format_type: tabs
format_settings:
classes: ''
@ -59,10 +57,10 @@ third_party_settings:
children:
- field_sous_titre
- field_localisation_textuel
- field_intro
- field_texte
- field_chiffres_clefs
- field_chronologie
- field_intro
label: Contenus
region: content
parent_name: group_tabs
@ -78,9 +76,8 @@ third_party_settings:
required_fields: true
group_carte:
children:
- field_carte
- field_libelles_carte
- field_legende_carte
- field_carte
label: carte
region: content
parent_name: group_tabs
@ -136,7 +133,7 @@ third_party_settings:
label: Details
region: content
parent_name: ''
weight: 4
weight: 2
format_type: details_sidebar
format_settings:
classes: ''
@ -212,69 +209,22 @@ content:
placeholder: ''
third_party_settings: { }
field_carte:
type: leaflet_widget_default
weight: 3
type: paragraphs
weight: 4
region: content
settings:
map:
leaflet_map: 'OSM Mapnik'
height: 400
auto_center: 1
map_position:
force: true
center:
lat: 46.751944
lon: 2.416667
zoomControlPosition: topleft
zoom: 5
minZoom: 1
maxZoom: 18
zoomFiner: 0
scroll_zoom_enabled: 1
input:
show: true
readonly: false
toolbar:
position: topright
marker: defaultMarker
drawPolyline: true
drawRectangle: true
drawPolygon: true
drawCircle: false
drawText: false
editMode: false
dragMode: false
cutPolygon: false
removalMode: false
rotateMode: false
reset_map:
control: false
options: '{"position":"topleft","title":"Reset View"}'
map_scale:
control: false
options: '{"position":"bottomright","maxWidth":100,"metric":true,"imperial":false,"updateWhenIdle":false}'
fullscreen:
control: false
options: '{"position":"topleft","pseudoFullscreen":false}'
path: '{"color":"#3388ff","opacity":"1.0","stroke":true,"weight":3,"fill":"depends","fillColor":"*","fillOpacity":"0.2","radius":"6"}'
locate:
control: false
options: '{"position":"topright","setView":"untilPanOrZoom","returnToPrevBounds":true,"keepCurrentZoomLevel":true,"strings":{"title":"Locate my position"}}'
automatic: false
geocoder:
control: false
settings:
position: topright
input_size: 20
providers: { }
min_terms: 4
delay: 800
zoom: 16
popup: false
options: ''
geometry_validation: 0
feature_properties:
values: ''
title: Paragraphe
title_plural: Paragraphs
edit_mode: open
closed_mode: summary
autocollapse: none
closed_mode_threshold: 0
add_mode: dropdown
form_display_mode: default
default_paragraph_type: ''
features:
collapse_edit_all: collapse_edit_all
duplicate: duplicate
third_party_settings: { }
field_chiffres_clefs:
type: paragraphs
@ -348,26 +298,12 @@ content:
third_party_settings: { }
field_legende_carte:
type: text_textarea
weight: 32
weight: 3
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
field_libelles_carte:
type: string_textfield
weight: 4
region: content
settings:
size: 60
placeholder: 'Un libellé par repère ou zone'
third_party_settings:
maxlength:
maxlength_js: null
maxlength_js_label: 'Contenu limité à @limit caractères, restant : <strong>@remaining</strong>'
maxlength_js_enforce: false
advanced_text_formatter:
show_token_tree: 0
field_liens:
type: link_default
weight: 5

View File

@ -0,0 +1,99 @@
uuid: c23cab46-cadb-4b78-a0f1-48212974f8a5
langcode: fr
status: true
dependencies:
config:
- field.field.paragraph.geofield_projet.field_carte
- field.field.paragraph.geofield_projet.field_libele
- field.field.paragraph.geofield_projet.field_principal
- paragraphs.paragraphs_type.geofield_projet
module:
- leaflet
id: paragraph.geofield_projet.default
targetEntityType: paragraph
bundle: geofield_projet
mode: default
content:
field_carte:
type: leaflet_widget_default
weight: 1
region: content
settings:
map:
leaflet_map: 'OSM Mapnik'
height: 400
auto_center: 1
map_position:
force: false
center:
lat: 0.0
lon: 0.0
zoomControlPosition: topleft
zoom: 5
minZoom: 1
maxZoom: 18
zoomFiner: 0
scroll_zoom_enabled: 1
input:
show: true
readonly: false
toolbar:
position: topright
marker: defaultMarker
drawPolyline: true
drawRectangle: true
drawPolygon: true
drawCircle: false
drawText: false
editMode: true
dragMode: true
cutPolygon: false
removalMode: true
rotateMode: false
reset_map:
control: false
options: '{"position": "topleft", "title": "Reset View"}'
map_scale:
control: false
options: '{"position":"bottomright","maxWidth":100,"metric":true,"imperial":false,"updateWhenIdle":false}'
fullscreen:
control: false
options: '{"position":"topleft","pseudoFullscreen":false}'
path: '{"color":"#3388ff","opacity":"1.0","stroke":true,"weight":3,"fill":"depends","fillColor":"*","fillOpacity":"0.2","radius":"6"}'
locate:
control: false
options: '{"position": "topright", "setView": "untilPanOrZoom", "returnToPrevBounds":true, "keepCurrentZoomLevel": true, "strings": {"title": "Locate my position"}}'
automatic: false
geocoder:
control: false
settings:
position: topright
input_size: 20
providers: { }
min_terms: 4
delay: 800
zoom: 16
popup: false
options: ''
geometry_validation: false
feature_properties:
values: ''
third_party_settings: { }
field_libele:
type: string_textfield
weight: 2
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_principal:
type: boolean_checkbox
weight: 0
region: content
settings:
display_label: true
third_party_settings: { }
hidden:
created: true
status: true

View File

@ -11,7 +11,6 @@ dependencies:
- field.field.node.projet.field_diaporama
- field.field.node.projet.field_intro
- field.field.node.projet.field_legende_carte
- field.field.node.projet.field_libelles_carte
- field.field.node.projet.field_liens
- field.field.node.projet.field_localisation_textuel
- field.field.node.projet.field_pieces_jointes
@ -25,7 +24,6 @@ dependencies:
module:
- entity_reference_revisions
- file
- geofield
- image
- link
- text
@ -44,13 +42,13 @@ content:
weight: 14
region: content
field_carte:
type: geofield_default
type: entity_reference_revisions_entity_view
label: above
settings:
output_format: wkt
output_escape: true
view_mode: default
link: ''
third_party_settings: { }
weight: 11
weight: 20
region: content
field_chiffres_clefs:
type: entity_reference_revisions_entity_view
@ -104,14 +102,6 @@ content:
third_party_settings: { }
weight: 19
region: content
field_libelles_carte:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 12
region: content
field_liens:
type: link
label: hidden

View File

@ -12,7 +12,6 @@ dependencies:
- field.field.node.projet.field_diaporama
- field.field.node.projet.field_intro
- field.field.node.projet.field_legende_carte
- field.field.node.projet.field_libelles_carte
- field.field.node.projet.field_liens
- field.field.node.projet.field_localisation_textuel
- field.field.node.projet.field_pieces_jointes
@ -28,7 +27,6 @@ dependencies:
- entity_reference_revisions
- file
- image_field_caption
- leaflet
- link
- text
- user
@ -38,96 +36,11 @@ bundle: projet
mode: full
content:
field_carte:
type: leaflet_formatter_default
label: visually_hidden
type: entity_reference_revisions_entity_view
label: above
settings:
multiple_map: false
leaflet_map: 'OSM Mapnik'
height: 400
height_unit: px
hide_empty_map: false
disable_wheel: false
gesture_handling: false
fitbounds_options: '{"padding":[0,0]}'
reset_map:
control: false
options: '{"position":"topleft","title":"Reset View"}'
map_scale:
control: false
options: '{"position":"bottomright","maxWidth":100,"metric":true,"imperial":false,"updateWhenIdle":false}'
locate:
control: false
options: '{"position":"topright","setView":"untilPanOrZoom","returnToPrevBounds":true,"keepCurrentZoomLevel":true,"strings":{"title":"Locate my position"}}'
automatic: false
leaflet_tooltip:
value: ''
options: '{"permanent":false,"direction":"center"}'
popup: false
popup_content: ''
leaflet_popup:
control: '0'
content: '[node:field_libelles_carte]'
options: '{"maxWidth":"300","minWidth":"50","autoPan":true}'
map_position:
force: false
center:
lat: 0.0
lon: 0.0
zoomControlPosition: topleft
zoom: 5
minZoom: 1
maxZoom: 18
zoomFiner: 0
icon:
iconType: marker
iconUrl: ''
shadowUrl: ''
className: ''
iconSize:
x: ''
'y': ''
iconAnchor:
x: ''
'y': ''
shadowSize:
x: ''
'y': ''
shadowAnchor:
x: ''
'y': ''
popupAnchor:
x: ''
'y': ''
html: '<div></div>'
html_class: leaflet-map-divicon
circle_marker_options: '{"radius":100,"color":"red","fillColor":"#f03","fillOpacity":0.5}'
leaflet_markercluster:
control: false
options: '{"spiderfyOnMaxZoom":true,"showCoverageOnHover":true,"removeOutsideVisibleBounds": false}'
excluded: ''
include_path: false
fullscreen:
control: false
options: '{"position":"topleft","pseudoFullscreen":false}'
path: '{"color":"#3388ff","opacity":"1.0","stroke":true,"weight":3,"fill":"depends","fillColor":"*","fillOpacity":"0.2","radius":"6"}'
feature_properties:
values: ''
geocoder:
control: false
settings:
autocomplete:
placeholder: 'Search Address'
title: 'Search an Address on the Map'
position: topright
input_size: 20
providers: { }
min_terms: 4
delay: 800
zoom: 16
popup: false
options: ''
map_lazy_load:
lazy_load: false
view_mode: default
link: ''
third_party_settings: { }
weight: 7
region: content
@ -147,7 +60,7 @@ content:
view_mode: default
link: ''
third_party_settings: { }
weight: 10
weight: 9
region: content
field_collectif_du_projet:
type: entity_reference_revisions_entity_view
@ -156,7 +69,7 @@ content:
view_mode: default
link: ''
third_party_settings: { }
weight: 11
weight: 10
region: content
field_diaporama:
type: image_caption
@ -181,14 +94,6 @@ content:
label: above
settings: { }
third_party_settings: { }
weight: 9
region: content
field_libelles_carte:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 8
region: content
field_liens:
@ -201,7 +106,7 @@ content:
rel: ''
target: ''
third_party_settings: { }
weight: 14
weight: 13
region: content
field_localisation_textuel:
type: string
@ -217,7 +122,7 @@ content:
settings:
use_description_as_link_text: true
third_party_settings: { }
weight: 13
weight: 12
region: content
field_pour_aller_plus_loin:
type: entity_reference_label
@ -225,7 +130,7 @@ content:
settings:
link: true
third_party_settings: { }
weight: 12
weight: 11
region: content
field_sous_titre:
type: string

View File

@ -12,7 +12,6 @@ dependencies:
- field.field.node.projet.field_diaporama
- field.field.node.projet.field_intro
- field.field.node.projet.field_legende_carte
- field.field.node.projet.field_libelles_carte
- field.field.node.projet.field_liens
- field.field.node.projet.field_localisation_textuel
- field.field.node.projet.field_pieces_jointes
@ -52,7 +51,6 @@ hidden:
field_diaporama: true
field_intro: true
field_legende_carte: true
field_libelles_carte: true
field_liens: true
field_localisation_textuel: true
field_pieces_jointes: true

View File

@ -12,7 +12,6 @@ dependencies:
- field.field.node.projet.field_diaporama
- field.field.node.projet.field_intro
- field.field.node.projet.field_legende_carte
- field.field.node.projet.field_libelles_carte
- field.field.node.projet.field_liens
- field.field.node.projet.field_localisation_textuel
- field.field.node.projet.field_pieces_jointes
@ -77,7 +76,6 @@ hidden:
field_collectif_du_projet: true
field_intro: true
field_legende_carte: true
field_libelles_carte: true
field_liens: true
field_pieces_jointes: true
field_poids: true

View File

@ -0,0 +1,124 @@
uuid: 6e0e14d8-dc29-4d65-9f7f-5f510d33ce93
langcode: fr
status: true
dependencies:
config:
- field.field.paragraph.geofield_projet.field_carte
- field.field.paragraph.geofield_projet.field_libele
- field.field.paragraph.geofield_projet.field_principal
- paragraphs.paragraphs_type.geofield_projet
module:
- leaflet
id: paragraph.geofield_projet.default
targetEntityType: paragraph
bundle: geofield_projet
mode: default
content:
field_carte:
type: leaflet_formatter_default
label: hidden
settings:
multiple_map: false
leaflet_map: 'OSM Mapnik'
height: 400
height_unit: px
hide_empty_map: false
disable_wheel: false
gesture_handling: false
fitbounds_options: '{"padding":[0,0]}'
reset_map:
control: false
options: '{"position": "topleft", "title": "Reset View"}'
map_scale:
control: false
options: '{"position":"bottomright","maxWidth":100,"metric":true,"imperial":false,"updateWhenIdle":false}'
locate:
control: false
options: '{"position": "topright", "setView": "untilPanOrZoom", "returnToPrevBounds":true, "keepCurrentZoomLevel": true, "strings": {"title": "Locate my position"}}'
automatic: false
leaflet_tooltip:
value: ''
options: '{"permanent":false,"direction":"center"}'
popup: false
popup_content: ''
leaflet_popup:
control: ''
content: ''
options: '{"maxWidth":"300","minWidth":"50", "autoPan": true}'
value: ''
view_mode: full
map_position:
force: false
center:
lat: 0.0
lon: 0.0
zoomControlPosition: topleft
zoom: 5
minZoom: 1
maxZoom: 18
zoomFiner: 0
weight: '0'
icon:
iconType: marker
iconUrl: ''
shadowUrl: ''
className: ''
iconSize:
x: null
'y': null
iconAnchor:
x: null
'y': null
shadowSize:
x: null
'y': null
shadowAnchor:
x: null
'y': null
popupAnchor:
x: null
'y': null
html: '<div></div>'
html_class: leaflet-map-divicon
circle_marker_options: '{"radius": 100, "color": "red", "fillColor": "#f03", "fillOpacity": 0.5}'
leaflet_markercluster:
control: false
options: '{"spiderfyOnMaxZoom":true,"showCoverageOnHover":true,"removeOutsideVisibleBounds": false}'
excluded: ''
include_path: false
fullscreen:
control: false
options: '{"position":"topleft","pseudoFullscreen":false}'
path: '{"color":"#3388ff","opacity":"1.0","stroke":true,"weight":3,"fill":"depends","fillColor":"*","fillOpacity":"0.2","radius":"6"}'
feature_properties:
values: ''
geocoder:
control: false
settings:
autocomplete:
placeholder: 'Search Address'
title: 'Search an Address on the Map'
position: topright
input_size: 20
providers: { }
min_terms: 4
delay: 800
zoom: 16
popup: false
options: ''
map_lazy_load:
lazy_load: false
third_party_settings: { }
weight: 0
region: content
field_libele:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 1
region: content
hidden:
field_principal: true
search_api_excerpt: true

View File

@ -3,26 +3,26 @@ _core:
langcode: fr
extlink_target: false
extlink_target_no_override: false
extlink_title_no_override: false
extlink_nofollow: false
extlink_follow_no_override: false
extlink_subdomains: true
extlink_alert: false
extlink_alert_text: 'Ce lien vous dirige vers un site externe. Nous ne sommes pas responsables de son contenu.'
extlink_additional_link_classes: ''
extlink_additional_mailto_classes: ''
extlink_additional_tel_classes: ''
extlink_exclude: ''
extlink_include: ''
extlink_exclude_noreferrer: ''
extlink_class: ext
extlink_label: '(le lien est externe)'
extlink_img_class: false
extlink_css_exclude: ''
extlink_css_include: ''
extlink_css_explicit: ''
extlink_mailto_class: mailto
extlink_mailto_label: '(link sends email)'
extlink_title_no_override: false
extlink_additional_link_classes: ''
extlink_additional_mailto_classes: ''
extlink_additional_tel_classes: ''
extlink_exclude_noreferrer: ''
extlink_css_include: ''
extlink_tel_class: ''
extlink_tel_label: '(link is a phone number)'
extlink_prevent_orphan: false

View File

@ -1,12 +1,13 @@
uuid: ef45349c-ea3f-4769-92fe-dd544c52ce0f
uuid: ef45c217-f669-4116-8b44-97bd898619cf
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_carte
- node.type.projet
- paragraphs.paragraphs_type.geofield_projet
module:
- geofield
- entity_reference_revisions
id: node.projet.field_carte
field_name: field_carte
entity_type: node
@ -17,5 +18,29 @@ required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: geofield
settings:
handler: 'default:paragraph'
handler_settings:
target_bundles:
geofield_projet: geofield_projet
negate: 0
target_bundles_drag_drop:
chiffre_clef:
weight: 8
enabled: false
chronologie:
weight: 9
enabled: false
collectif_projet:
weight: 10
enabled: false
geofield_projet:
weight: 7
enabled: true
intertitre_texte:
weight: 11
enabled: false
membre_equipe:
weight: 12
enabled: false
field_type: entity_reference_revisions

View File

@ -1,19 +0,0 @@
uuid: 62b4f37c-e8b3-4084-a17e-525f51421f11
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_libelles_carte
- node.type.projet
id: node.projet.field_libelles_carte
field_name: field_libelles_carte
entity_type: node
bundle: projet
label: libelles_carte
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

View File

@ -0,0 +1,21 @@
uuid: 61590666-a4d6-46f7-87a6-9232dad72908
langcode: fr
status: true
dependencies:
config:
- field.storage.paragraph.field_carte
- paragraphs.paragraphs_type.geofield_projet
module:
- geofield
id: paragraph.geofield_projet.field_carte
field_name: field_carte
entity_type: paragraph
bundle: geofield_projet
label: Carte
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: geofield

View File

@ -0,0 +1,19 @@
uuid: a7bd1c91-48b4-4f7f-8d51-7bd563a6c81e
langcode: fr
status: true
dependencies:
config:
- field.storage.paragraph.field_libele
- paragraphs.paragraphs_type.geofield_projet
id: paragraph.geofield_projet.field_libele
field_name: field_libele
entity_type: paragraph
bundle: geofield_projet
label: Libélé
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

View File

@ -0,0 +1,23 @@
uuid: 75e5c9a2-a9af-4ac0-b98a-e30623a3f940
langcode: fr
status: true
dependencies:
config:
- field.storage.paragraph.field_principal
- paragraphs.paragraphs_type.geofield_projet
id: paragraph.geofield_projet.field_principal
field_name: field_principal
entity_type: paragraph
bundle: geofield_projet
label: Principal
description: ''
required: false
translatable: false
default_value:
-
value: 0
default_value_callback: ''
settings:
on_label: oui
off_label: non
field_type: boolean

View File

@ -1,17 +1,18 @@
uuid: b67c3939-1668-44af-9284-04aa909b60be
uuid: 8d023e8b-b8ba-4de5-a688-b9c39647d78f
langcode: fr
status: true
dependencies:
module:
- geofield
- entity_reference_revisions
- node
- paragraphs
id: node.field_carte
field_name: field_carte
entity_type: node
type: geofield
type: entity_reference_revisions
settings:
backend: geofield_backend_default
module: geofield
target_type: paragraph
module: entity_reference_revisions
locked: false
cardinality: -1
translatable: true

View File

@ -0,0 +1,20 @@
uuid: f964953a-8d0b-4519-80e1-a7c0f1993f7d
langcode: fr
status: true
dependencies:
module:
- geofield
- paragraphs
id: paragraph.field_carte
field_name: field_carte
entity_type: paragraph
type: geofield
settings:
backend: geofield_backend_default
module: geofield
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -1,12 +1,12 @@
uuid: fbdd3f5f-1614-4c89-bfae-983cdea74493
uuid: 1e47a81a-0d7c-41a8-8f4c-5ee00a4d5d3a
langcode: fr
status: true
dependencies:
module:
- node
id: node.field_libelles_carte
field_name: field_libelles_carte
entity_type: node
- paragraphs
id: paragraph.field_libele
field_name: field_libele
entity_type: paragraph
type: string
settings:
max_length: 255
@ -14,7 +14,7 @@ settings:
is_ascii: false
module: core
locked: false
cardinality: -1
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false

View File

@ -0,0 +1,18 @@
uuid: 32ff69db-9da5-4d96-913d-b66b72b064c4
langcode: fr
status: true
dependencies:
module:
- paragraphs
id: paragraph.field_principal
field_name: field_principal
entity_type: paragraph
type: boolean
settings: { }
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -60,6 +60,9 @@ variant_settings:
builder: standard
storage_type: page_manager
storage_id: home-panels_variant-0
css_classes: { }
html_id: ''
css_styles: ''
page: home
selection_criteria: { }
selection_logic: and

View File

@ -0,0 +1,10 @@
uuid: 1d2b719d-2cd0-4376-8c6f-13fb3c392f27
langcode: fr
status: true
dependencies: { }
id: geofield_projet
label: 'geofield projet'
icon_uuid: null
icon_default: null
description: ''
behavior_plugins: { }

View File

@ -77,6 +77,7 @@ display:
type: mini
options:
offset: 0
pagination_heading_level: h4
items_per_page: 10
total_pages: null
id: 0
@ -91,7 +92,6 @@ display:
items_per_page_options_all_label: '- Tout -'
offset: false
offset_label: Décalage
pagination_heading_level: h4
exposed_form:
type: basic
options:
@ -119,7 +119,7 @@ display:
group_type: group
admin_label: ''
plugin_id: datetime
order: ASC
order: DESC
expose:
label: ''
field_identifier: ''
@ -224,51 +224,6 @@ display:
plugin_id: bundle
value:
actualite: actualite
field_date_end_value:
id: field_date_end_value
table: node__field_date
field: field_date_end_value
relationship: none
group_type: group
admin_label: ''
plugin_id: datetime
operator: '>'
value:
min: ''
max: ''
value: 'now -1 day'
type: date
group: 1
exposed: false
expose:
operator_id: ''
label: ''
description: ''
use_operator: false
operator: ''
operator_limit_selection: false
operator_list: { }
identifier: ''
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
min_placeholder: ''
max_placeholder: ''
placeholder: ''
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
promote:
id: promote
table: node_field_data

View File

@ -6,7 +6,7 @@ dependencies:
- core.entity_view_mode.node.full
- node.type.partenaire
content:
- 'config_pages:partenaires:8ec9ecf0-611e-4dfb-b1e4-11e5856c211a'
- 'config_pages:partenaires:f290f948-2dd5-4625-9f1b-bc2d63f3a13f'
module:
- node
- user
@ -157,7 +157,7 @@ display:
admin_label: ''
plugin_id: entity
empty: false
target: 8ec9ecf0-611e-4dfb-b1e4-11e5856c211a
target: f290f948-2dd5-4625-9f1b-bc2d63f3a13f
view_mode: default
tokenize: true
bypass_access: false

View File

@ -10,7 +10,6 @@
* @see index.php
* @see core/install.php
* @see core/rebuild.php
* @see core/modules/statistics/statistics.php
*/
return require __DIR__ . '/../vendor/autoload.php';

View File

@ -26,10 +26,12 @@
transition: opacity 0.3s ease;
opacity: 0;
pointer-events: none;
max-width: 25vw;
}
#popup h3,
#popup p {
text-align: center;
margin: 0;
font-size: 0.8rem !important;
}

View File

@ -272,6 +272,9 @@ document.addEventListener('DOMContentLoaded', () => {
})
if (containerImg.complete) {
placeProjectsIcons(projectsIcons, containerImg);
window.addEventListener('resize', () => {
placeProjectsIcons(projectsIcons, containerImg);
});
}
});

View File

@ -7,6 +7,7 @@ use Drupal\Core\Block\Attribute\Block;
// use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Link;
use Drupal\Core\Render\Markup;
use Drupal\paragraphs\Entity\Paragraph;
/**
* Provides a 'Sites Map' Block.
@ -32,25 +33,46 @@ class SitesMap extends BlockBase {
$sites_paths = "";
foreach($allSites as $index => $site){
$title = $site->get('title')->getString();
$subtitle = $site->get('field_sous_titre')->getString();
$place = $site->get('field_localisation_textuel')->getString();
// Check if the node has the paragraph field and it's not empty.
if ($site->hasField('field_carte') && !$site->get('field_carte')->isEmpty()) {
// Iterate through the referenced paragraph entities.
foreach ($site->get('field_carte')->referencedEntities() as $carte_paragraph) {
if ($carte_paragraph instanceof Paragraph) {
$geofield = $carte_paragraph->get('field_carte');
$principal = $carte_paragraph->get('field_principal')->value;
$link_options = ['absolute' => FALSE, 'attributes' => ['class' => 'site-link']];
$site_link_object = Link::createFromRoute("voir le site", 'entity.node.canonical', ['node' => $site->id()], $link_options);
$href = $site_link_object->getUrl()->toString();
if ($geofield && $principal) {
$geofield = $site->get('field_carte')->get(0);
$lon = $geofield->lon;
$lat = $geofield->lat;
$title = $site->get('title')->getString();
$subtitle = $site->get('field_sous_titre')->getString();
$place = $site->get('field_localisation_textuel')->getString();
$link_options = ['absolute' => FALSE, 'attributes' => ['class' => 'site-link']];
$site_link_object = Link::createFromRoute("voir le site", 'entity.node.canonical', ['node' => $site->id()], $link_options);
$href = $site_link_object->getUrl()->toString();
$lon = $geofield->lon;
$lat = $geofield->lat;
$svg_template_path = DRUPAL_ROOT . '/modules/custom/erable_mod/assets/svg/feuille.svg';
$svg_template= file_get_contents($svg_template_path);
$sites_paths .= str_replace(
['$index', '$lon', '$lat', '$href', '$title', '$place'],
[$index, $lon, $lat, $href, $title, $place],
$svg_template
);
$svg_template_path = DRUPAL_ROOT . '/modules/custom/erable_mod/assets/svg/feuille.svg';
$svg_template= file_get_contents($svg_template_path);
$sites_paths .= str_replace(
['$index', '$lon', '$lat', '$href', '$title', '$place'],
[$index, $lon, $lat, $href, $title, $place],
$svg_template
);
break;
}
}
}
}
}
$return = [

@ -1 +1 @@
Subproject commit 0072fa85fb15b168503b63af2b7df56f2a5e2b67
Subproject commit 6122ad5f5b1519bcca5014ea331ae61415480ea3

View File

@ -459,29 +459,33 @@ em {
width: 100%;
background-color: white;
margin-top: 50px;
padding: 0 3vw;
padding: 0 3vw !important;
}
@media screen and (min-width: 1080px) {
.layout-container > footer {
width: calc(100% - 50vw);
margin-left: 25vw;
}
}
.layout-container > footer #footer_middle {
display: flex;
}
.layout-container > footer #footer_middle #footer_left > div {
margin-top: 5px;
display: flex;
justify-content: space-between;
justify-content: start;
align-items: center;
flex-wrap: nowrap;
}
.layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logorep {
width: 30vw;
max-width: 100px;
}
.layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logorep img {
width: 100%;
height: auto;
}
@media (min-width: 760px) {
.layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logorep {
width: 10vw;
}
}
.layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logoepau {
width: 50vw;
max-width: 150px;
}
.layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logoepau img {
width: 100%;
@ -489,16 +493,9 @@ em {
}
@media (min-width: 760px) {
.layout-container > footer #footer_middle #footer_left > div #block-erabletheme-logoepau {
width: 15vw;
padding-left: 2vw;
}
}
@media (min-width: 760px) {
.layout-container > footer #footer_middle #footer_left > div {
width: 25vw;
padding-left: 3vw;
}
}
.layout-container > footer #footer_middle #footer_section {
display: flex;
width: 100%;
@ -509,30 +506,38 @@ em {
position: relative;
}
.layout-container > footer #footer_middle #footer_section #footer_center {
padding-left: 2vw;
width: 50%;
width: 100%;
}
.layout-container > footer #footer_middle #footer_section #footer_center nav ul {
.layout-container > footer #footer_middle #footer_section #footer_center > div {
display: flex;
justify-content: space-around;
}
.layout-container > footer #footer_middle #footer_section #footer_center > div nav ul {
display: flex;
justify-content: space-between;
}
.layout-container > footer #footer_middle #footer_section #footer_center nav ul li a {
.layout-container > footer #footer_middle #footer_section #footer_center > div nav ul li a {
color: #314e41;
font-size: 0.8rem;
font-family: "Marianne", sans-serif;
font-weight: 800;
text-decoration: underline;
font-size: 0.6rem;
text-align: center;
display: inline-block;
line-height: 1.2;
}
@media (min-width: 760px) {
.layout-container > footer #footer_middle #footer_section #footer_center nav ul {
width: 50vw;
padding: 0 15vw;
}
.layout-container > footer #footer_middle #footer_section #footer_center > div nav ul li:last-of-type {
margin-left: 1rem;
}
.layout-container > footer #footer_middle #footer_section #footer_center > div nav ul:first-of-type {
margin-left: 1rem;
}
.layout-container > footer #footer_middle #footer_section #footer_center > div nav ul:last-of-type {
margin-right: 1rem;
}
@media (min-width: 760px) {
.layout-container > footer #footer_middle #footer_section #footer_center {
padding-left: 0;
width: auto;
}
}
.layout-container > footer #footer_middle #footer_section #footer_right {
@ -540,28 +545,30 @@ em {
}
.layout-container > footer #footer_middle #footer_section #footer_right #block-erabletheme-socialmedialinks-2 ul {
display: flex;
justify-content: space-between;
justify-content: end;
}
.layout-container > footer #footer_middle #footer_section #footer_right #block-erabletheme-socialmedialinks-2 ul li a span {
font-weight: lighter;
font-size: 1.4rem;
width: 2.2rem;
height: 2.2rem;
padding: 0.4rem;
border-radius: 1.1rem;
font-size: 0.8rem;
width: 1.6rem;
height: 1.6rem;
padding-top: 0.2rem;
border-radius: 0.8rem;
color: white;
background-color: #038788;
display: flex;
justify-content: center;
align-items: center;
}
.layout-container > footer #footer_middle #footer_section #footer_right #block-erabletheme-socialmedialinks-2 ul li a svg.ext {
display: none;
}
.layout-container > footer #footer_middle #footer_section #footer_right #block-erabletheme-socialmedialinks-2 ul li:last-of-type {
margin-left: 25px;
margin-left: 5px;
}
@media (min-width: 760px) {
.layout-container > footer #footer_middle #footer_section #footer_right {
width: auto;
margin-right: 25px;
}
}
@media (min-width: 760px) {
@ -571,6 +578,7 @@ em {
}
@media (min-width: 760px) {
.layout-container > footer {
display: block;
padding: 0;
}
}
@ -776,6 +784,9 @@ em {
padding: 5px 3vw;
padding-left: 0 !important;
}
.views-row article.actu-teaser .preview_sous_titre .sous_titre {
line-height: 1.3 !important;
}
@media (min-width: 760px) {
.views-row article.actu-teaser .preview_sous_titre {
padding-left: unset;
@ -1386,11 +1397,15 @@ main.main-login .login > div > div:not(.hidden) form .button:hover, main.main-lo
margin-bottom: 1rem;
}
.layout-content .fullpage .fullpage_content .sous_titre {
font-size: 1.2rem;
padding: 0 3vw;
font-family: "Marianne", sans-serif;
font-size: 1rem;
line-height: 1.4;
font-family: "Barlow", sans-serif;
color: black;
font-size: 1.2rem;
}
@media (min-width: 760px) {
.layout-content .fullpage .fullpage_content .sous_titre {
font-size: 1.6rem;
}
}
.layout-content .fullpage .fullpage_content p {
padding: 0 3vw;
@ -1861,6 +1876,16 @@ aside.layout-sidebar-first:has(#block-erabletheme-views-block-projets-block-1) >
}
}
*/
.content_partenaires header {
font-family: "Marianne", sans-serif;
font-size: 1rem;
line-height: 1.4;
margin-bottom: 4vh;
margin-top: -5vh;
}
.content_partenaires header p {
margin: 1rem 3vw;
}
.content_partenaires .views-row {
margin-bottom: 2vh;
}
@ -2956,25 +2981,31 @@ aside.layout-sidebar-first:has(#block-erabletheme-views-block-projets-block-1) >
margin: 0 3vw;
margin-top: 4rem;
}
.fullpage.projet_full .carte > div > div:first-of-type {
display: none;
}
.fullpage.projet_full .carte .leaflet-pane path {
stroke: #00ff80;
stroke-width: 2;
fill: #00ff80;
fill-opacity: 0.2;
}
.fullpage.projet_full .carte #leaflet-popup {
position: fixed;
.fullpage.projet_full .carte .popup .leaflet-popup-tip {
background: rgba(0, 0, 0, 0) !important;
box-shadow: none !important;
}
.fullpage.projet_full .carte .popup .leaflet-popup-content-wrapper {
padding: 0.3rem 0.8rem;
background-color: white;
font-size: 0.8rem !important;
opacity: 0;
transition: opacity 0.3s ease;
box-shadow: none;
border-radius: unset;
font-family: "Marianne", sans-serif;
font-size: 1rem;
line-height: 1.4;
}
.fullpage.projet_full .libelles-carte {
display: none;
.fullpage.projet_full .carte .popup .leaflet-popup-content-wrapper .leaflet-popup-content {
margin: 0;
}
.fullpage.projet_full .legende-carte > div > div:first-of-type {
display: none;

File diff suppressed because one or more lines are too long

View File

@ -335,10 +335,10 @@
//
document.querySelectorAll('p, li, h1, h2, h3, h4, h5, h6').forEach((content) => {
content.innerHTML = content.innerHTML.replaceAll(' ;', '&nbsp;');
content.innerHTML = content.innerHTML.replaceAll(' :', '&nbsp;');
content.innerHTML = content.innerHTML.replaceAll(' ?', '&nbsp;');
content.innerHTML = content.innerHTML.replaceAll(' !', '&nbsp;');
content.innerHTML = content.innerHTML.replaceAll(' ;', '&nbsp;;');
content.innerHTML = content.innerHTML.replaceAll(' :', '&nbsp;:');
content.innerHTML = content.innerHTML.replaceAll(' ?', '&nbsp;?');
content.innerHTML = content.innerHTML.replaceAll(' !', '&nbsp;!');
content.innerHTML = content.innerHTML.replaceAll('« ', '«&nbsp;');
content.innerHTML = content.innerHTML.replaceAll(' »', '&nbsp;»');
content.innerHTML = content.innerHTML.replaceAll('(« ', '(«&nbsp;');
@ -393,58 +393,114 @@
}
}
let firstMap = null;
Drupal.behaviors.customLeafletInteraction = {
attach: function (context, settings) {
$(context).on('leafletMapInit', function (e, settings, map, mapid, markers) {
//
// on projects pages, replace leaflet icons with erable leafs
//
const leafletIcons = document.querySelectorAll('.leaflet-marker-pane img');
for (let icon of leafletIcons) {
icon.setAttribute('src', '/themes/erabletheme/assets/leaf.svg');
}
//
// set hover on leaflet marker and zones
//
if (document.querySelector('.projet_full')) {
// map on the projects page
const leafletPlaces = document.querySelectorAll('.leaflet-marker-pane img, .leaflet-overlay-pane path');
const libelles = document.querySelectorAll('.libelles-carte > div > div > div');
let customIcon = L.icon({
iconUrl: '/themes/erabletheme/assets/leaf.svg',
iconSize: [20, 20],
iconAnchor: [10, 20],
popupAnchor: [0, -20]
});
for (let i = 0; i < leafletPlaces.length; i++) {
const carte = document.querySelector('.carte');
let initiatedMap = document.querySelector(`#${mapid}`);
const currentLibelle = initiatedMap.parentElement.nextElementSibling.innerText;
initiatedMap.parentElement.nextElementSibling.remove();
if (document.querySelectorAll('.leaflet-container').length <= 1) {
firstMap = map;
let bounds = L.latLngBounds();
map.eachLayer(function (layer) {
if (layer instanceof L.Marker && !layer._popup) {
layer.bindPopup(currentLibelle, { closeButton: false, className: 'popup' })
.setIcon(customIcon)
.on('mouseover', function () {
this.openPopup();
})
.on('mouseout', function () {
this.closePopup();
});
leafletPlaces[i].addEventListener('mouseenter', () => {
let div = document.createElement('div');
div.setAttribute('id', 'leaflet-popup');
div.style.zIndex = '100';
const x = leafletPlaces[i].getBoundingClientRect().left + leafletPlaces[i].getBoundingClientRect().width / 2;
const y = leafletPlaces[i].getBoundingClientRect().top;
setTimeout(() => {
div.style.opacity = 1;
const divHeight = div.getBoundingClientRect().height;
const divWidth = div.getBoundingClientRect().width;
bounds.extend(layer.getLatLng());
map.fitBounds(bounds, { padding: [30, 30], maxZoom: 18 });
}
});
} else {
// map on the projects index
document.querySelector(`#${mapid}`).parentElement.parentElement.parentElement.remove();
const firstMarker = Object.values(markers)[0];
let newMarker = L.marker([firstMarker._latlng.lat, firstMarker._latlng.lng], { icon: customIcon })
.addTo(firstMap)
.bindPopup(currentLibelle, { closeButton: false, className: 'popup' })
.on('mouseover', function () {
this.openPopup();
})
.on('mouseout', function () {
this.closePopup();
});
firstMap.fitBounds(
firstMap.getBounds().extend(newMarker.getLatLng()),
{ padding: [30, 30], maxZoom: 18 }
);
}
} else {
//
// on projects pages, replace leaflet icons with erable leafs
//
const currentMap = document.querySelector('.leaflet-container');
const leafletIcons = document.querySelectorAll('.leaflet-marker-pane img');
for (let icon of leafletIcons) {
icon.setAttribute('src', '/themes/erabletheme/assets/leaf.svg');
}
//
// set hover on leaflet marker and zones
//
const leafletPlaces = document.querySelectorAll('.leaflet-marker-pane img, .leaflet-overlay-pane path');
const libelles = document.querySelectorAll('.libelles-carte > div > div > div');
for (let i = 0; i < leafletPlaces.length; i++) {
const carte = document.querySelector('.carte');
leafletPlaces[i].addEventListener('mouseenter', () => {
let div = document.createElement('div');
div.setAttribute('id', 'leaflet-popup');
div.style.zIndex = '100';
const x = leafletPlaces[i].getBoundingClientRect().left + leafletPlaces[i].getBoundingClientRect().width / 2;
const y = leafletPlaces[i].getBoundingClientRect().top;
setTimeout(() => {
div.style.left = `${x - divWidth / 2}px`;
div.style.top = `${y - divHeight}px`;
div.style.opacity = 1;
const divHeight = div.getBoundingClientRect().height;
const divWidth = div.getBoundingClientRect().width;
setTimeout(() => {
div.style.left = `${x - divWidth / 2}px`;
div.style.top = `${y - divHeight}px`;
}, 10);
}, 10);
}, 10);
div.innerText = libelles[i].innerText;
carte.appendChild(div);
});
leafletPlaces[i].addEventListener('mouseleave', () => {
let divs = document.querySelectorAll('#leaflet-popup');
for (let div of divs) {
div.style.opacity = 0;
setTimeout(() => {
div.remove();
}, 300);
}
});
div.innerText = libelles[i].innerText;
carte.appendChild(div);
});
leafletPlaces[i].addEventListener('mouseleave', () => {
let divs = document.querySelectorAll('#leaflet-popup');
for (let div of divs) {
div.style.opacity = 0;
setTimeout(() => {
div.remove();
}, 300);
}
});
}
}
});
}
}

View File

@ -27,9 +27,8 @@
}
.sous_titre {
font-size: $l_font_size;
padding: 0 $x_margin;
@include main_text_content();
@include sous_titre_alt();
}
p {

View File

@ -1,4 +1,12 @@
.content_partenaires {
header {
@include main_text_content();
margin-bottom: 4vh;
margin-top: -5vh;
p {
margin: 1rem $x_margin;
}
}
.views-row {
margin-bottom: 2vh;
article {

View File

@ -307,6 +307,9 @@
width: auto;
margin: 0 $x_margin;
margin-top: 4rem;
> div > div:first-of-type {
display: none;
}
.leaflet-pane {
path {
stroke: $fluo_green;
@ -315,19 +318,24 @@
fill-opacity: 0.2;
}
}
#leaflet-popup {
position: fixed;
padding: 0.3rem 0.8rem;
background-color: white;
font-size: $sm_font_size !important;
opacity: 0;
transition: opacity 0.3s ease;
@include main_text_content();
.popup {
.leaflet-popup-tip {
background: rgba(0, 0, 0, 0) !important;
box-shadow: none !important;
}
.leaflet-popup-content-wrapper {
padding: 0.3rem 0.8rem;
background-color: white;
font-size: $sm_font_size !important;
box-shadow: none;
border-radius: unset;
@include main_text_content();
.leaflet-popup-content {
margin: 0;
}
}
}
}
.libelles-carte {
display: none;
}
.legende-carte {
> div > div:first-of-type {
display: none;

View File

@ -47,6 +47,9 @@
font-size: $m_font_size;
padding: 5px $x_margin;
padding-left: 0 !important;
.sous_titre {
line-height: 1.3 !important;
}
@media (min-width: $breakpoint_tablet) {
padding-left: unset;
font-size: $l_font_size;

View File

@ -2,39 +2,36 @@
width: 100%;
background-color: white;
margin-top: 50px;
padding: 0 $x_margin;
padding: 0 $x_margin !important;
@media screen and (min-width: $breakpoint_desktop) {
width: calc(100% - 50vw);
margin-left: 25vw;
}
#footer_middle {
display: flex;
#footer_left > div {
margin-top: 5px;
display: flex;
justify-content: space-between;
justify-content: start;
align-items: center;
flex-wrap: nowrap;
#block-erabletheme-logorep {
width: 30vw;
max-width: 100px;
img {
width: 100%;
height: auto;
}
@media (min-width: $breakpoint_tablet) {
width: 10vw;
}
}
#block-erabletheme-logoepau {
width: 50vw;
max-width: 150px;
img {
width: 100%;
height: auto;
}
@media (min-width: $breakpoint_tablet) {
width: 15vw;
padding-left: 2vw;
}
}
@media (min-width: $breakpoint_tablet) {
width: 25vw;
padding-left: $x_margin;
}
}
#footer_section {
display: flex;
@ -45,26 +42,38 @@
margin-bottom: 20px;
position: relative;
#footer_center {
padding-left: 2vw;
width: 50%;
nav ul {
width: 100%;
> div {
display: flex;
justify-content: space-between;
li a {
color: $dark_green;
font-size: $sm_font_size;
font-family: 'Marianne', sans-serif;
font-weight: 800;
text-decoration: underline;
}
@media (min-width: $breakpoint_tablet) {
width: 50vw;
padding: 0 15vw;
justify-content: space-around;
nav ul {
display: flex;
justify-content: space-between;
li {
a {
color: $dark_green;
font-family: 'Marianne', sans-serif;
font-weight: 800;
text-decoration: underline;
font-size: 0.6rem;
text-align: center;
display: inline-block;
line-height: 1.2;
}
&:last-of-type {
margin-left: 1rem;
}
}
&:first-of-type {
margin-left: 1rem;
}
&:last-of-type {
margin-right: 1rem;
}
}
}
@media (min-width: $breakpoint_tablet) {
padding-left: 0;
width: auto;
}
}
@ -72,31 +81,33 @@
width: 30%;
#block-erabletheme-socialmedialinks-2 ul {
display: flex;
justify-content: space-between;
justify-content: end;
li {
a {
span {
font-weight: lighter;
font-size: 1.4rem;
width: 2.2rem;
height: 2.2rem;
padding: 0.4rem;
border-radius: 1.1rem;
font-size: 0.8rem;
width: 1.6rem;
height: 1.6rem;
padding-top: 0.2rem;
border-radius: 0.8rem;
color: white;
background-color: $teal;
display: flex;
justify-content: center;
align-items: center;
}
svg.ext {
display: none;
}
}
&:last-of-type {
margin-left: 25px;
margin-left: 5px;
}
}
}
@media (min-width: $breakpoint_tablet) {
width: auto;
margin-right: 25px;
}
}
@ -106,6 +117,7 @@
}
}
@media (min-width: $breakpoint_tablet) {
display: block;
padding: 0;
}
}