Merge branch 'live' of gitea-figureslibres.io:bachir/drupal-quartiersdedemain into HEAD
This commit is contained in:
		@@ -134,6 +134,9 @@
 | 
			
		||||
            },
 | 
			
		||||
            "drupal/image_field_caption":{
 | 
			
		||||
                "Rewrite module to use default field storage https://www.drupal.org/project/image_field_caption/issues/3472997": "./patches/image_field_caption_3472997_12.patch"
 | 
			
		||||
            },
 | 
			
		||||
            "drupal/video_embed_field":{
 | 
			
		||||
                "Support Youtube Live urls https://www.drupal.org/project/video_embed_field/issues/3417567":"https://www.drupal.org/files/issues/2024-01-27/video_embed_field--support-live--3417567--2.patch"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        "oldpatches": {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										8
									
								
								config/sync/block_content.type.live_youtube.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								config/sync/block_content.type.live_youtube.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
uuid: dc650ace-a4b8-479c-bb14-fa42e7534214
 | 
			
		||||
langcode: fr
 | 
			
		||||
status: true
 | 
			
		||||
dependencies: {  }
 | 
			
		||||
id: live_youtube
 | 
			
		||||
label: live-youtube
 | 
			
		||||
revision: 0
 | 
			
		||||
description: ''
 | 
			
		||||
@@ -0,0 +1,49 @@
 | 
			
		||||
uuid: 9d4c0c8b-d55b-4f5d-a1b8-f1df7af95607
 | 
			
		||||
langcode: fr
 | 
			
		||||
status: true
 | 
			
		||||
dependencies:
 | 
			
		||||
  config:
 | 
			
		||||
    - block_content.type.live_youtube
 | 
			
		||||
    - field.field.block_content.live_youtube.field_descritpion
 | 
			
		||||
    - field.field.block_content.live_youtube.field_titre
 | 
			
		||||
    - field.field.block_content.live_youtube.field_youtube
 | 
			
		||||
  module:
 | 
			
		||||
    - text
 | 
			
		||||
    - video_embed_field
 | 
			
		||||
id: block_content.live_youtube.default
 | 
			
		||||
targetEntityType: block_content
 | 
			
		||||
bundle: live_youtube
 | 
			
		||||
mode: default
 | 
			
		||||
content:
 | 
			
		||||
  field_descritpion:
 | 
			
		||||
    type: text_textarea
 | 
			
		||||
    weight: 2
 | 
			
		||||
    region: content
 | 
			
		||||
    settings:
 | 
			
		||||
      rows: 5
 | 
			
		||||
      placeholder: ''
 | 
			
		||||
    third_party_settings: {  }
 | 
			
		||||
  field_titre:
 | 
			
		||||
    type: string_textfield
 | 
			
		||||
    weight: 1
 | 
			
		||||
    region: content
 | 
			
		||||
    settings:
 | 
			
		||||
      size: 60
 | 
			
		||||
      placeholder: ''
 | 
			
		||||
    third_party_settings: {  }
 | 
			
		||||
  field_youtube:
 | 
			
		||||
    type: video_embed_field_textfield
 | 
			
		||||
    weight: 3
 | 
			
		||||
    region: content
 | 
			
		||||
    settings: {  }
 | 
			
		||||
    third_party_settings: {  }
 | 
			
		||||
  info:
 | 
			
		||||
    type: string_textfield
 | 
			
		||||
    weight: 0
 | 
			
		||||
    region: content
 | 
			
		||||
    settings:
 | 
			
		||||
      size: 60
 | 
			
		||||
      placeholder: ''
 | 
			
		||||
    third_party_settings: {  }
 | 
			
		||||
hidden:
 | 
			
		||||
  langcode: true
 | 
			
		||||
@@ -0,0 +1,48 @@
 | 
			
		||||
uuid: a96096d1-f93c-48f3-9b6c-f9940f4ee2fc
 | 
			
		||||
langcode: fr
 | 
			
		||||
status: true
 | 
			
		||||
dependencies:
 | 
			
		||||
  config:
 | 
			
		||||
    - block_content.type.live_youtube
 | 
			
		||||
    - field.field.block_content.live_youtube.field_descritpion
 | 
			
		||||
    - field.field.block_content.live_youtube.field_titre
 | 
			
		||||
    - field.field.block_content.live_youtube.field_youtube
 | 
			
		||||
  module:
 | 
			
		||||
    - manage_display
 | 
			
		||||
    - text
 | 
			
		||||
    - video_embed_field
 | 
			
		||||
id: block_content.live_youtube.default
 | 
			
		||||
targetEntityType: block_content
 | 
			
		||||
bundle: live_youtube
 | 
			
		||||
mode: default
 | 
			
		||||
content:
 | 
			
		||||
  field_descritpion:
 | 
			
		||||
    type: text_default
 | 
			
		||||
    label: visually_hidden
 | 
			
		||||
    settings: {  }
 | 
			
		||||
    third_party_settings: {  }
 | 
			
		||||
    weight: 1
 | 
			
		||||
    region: content
 | 
			
		||||
  field_titre:
 | 
			
		||||
    type: title
 | 
			
		||||
    label: visually_hidden
 | 
			
		||||
    settings:
 | 
			
		||||
      link_to_entity: false
 | 
			
		||||
      tag: h2
 | 
			
		||||
    third_party_settings: {  }
 | 
			
		||||
    weight: 0
 | 
			
		||||
    region: content
 | 
			
		||||
  field_youtube:
 | 
			
		||||
    type: video_embed_field_video
 | 
			
		||||
    label: visually_hidden
 | 
			
		||||
    settings:
 | 
			
		||||
      autoplay: true
 | 
			
		||||
      responsive: true
 | 
			
		||||
      width: 854
 | 
			
		||||
      height: 480
 | 
			
		||||
    third_party_settings: {  }
 | 
			
		||||
    weight: 2
 | 
			
		||||
    region: content
 | 
			
		||||
hidden:
 | 
			
		||||
  langcode: true
 | 
			
		||||
  search_api_excerpt: true
 | 
			
		||||
@@ -0,0 +1,24 @@
 | 
			
		||||
uuid: e3139bc9-11e2-49a5-a296-5d6f08499a78
 | 
			
		||||
langcode: fr
 | 
			
		||||
status: true
 | 
			
		||||
dependencies:
 | 
			
		||||
  config:
 | 
			
		||||
    - block_content.type.live_youtube
 | 
			
		||||
    - field.storage.block_content.field_descritpion
 | 
			
		||||
    - filter.format.wysiwyg
 | 
			
		||||
  module:
 | 
			
		||||
    - text
 | 
			
		||||
id: block_content.live_youtube.field_descritpion
 | 
			
		||||
field_name: field_descritpion
 | 
			
		||||
entity_type: block_content
 | 
			
		||||
bundle: live_youtube
 | 
			
		||||
label: Description
 | 
			
		||||
description: ''
 | 
			
		||||
required: false
 | 
			
		||||
translatable: false
 | 
			
		||||
default_value: {  }
 | 
			
		||||
default_value_callback: ''
 | 
			
		||||
settings:
 | 
			
		||||
  allowed_formats:
 | 
			
		||||
    - wysiwyg
 | 
			
		||||
field_type: text_long
 | 
			
		||||
@@ -0,0 +1,19 @@
 | 
			
		||||
uuid: f32e837b-2b65-438e-9b1a-681267ed114d
 | 
			
		||||
langcode: fr
 | 
			
		||||
status: true
 | 
			
		||||
dependencies:
 | 
			
		||||
  config:
 | 
			
		||||
    - block_content.type.live_youtube
 | 
			
		||||
    - field.storage.block_content.field_titre
 | 
			
		||||
id: block_content.live_youtube.field_titre
 | 
			
		||||
field_name: field_titre
 | 
			
		||||
entity_type: block_content
 | 
			
		||||
bundle: live_youtube
 | 
			
		||||
label: Titre
 | 
			
		||||
description: ''
 | 
			
		||||
required: false
 | 
			
		||||
translatable: false
 | 
			
		||||
default_value: {  }
 | 
			
		||||
default_value_callback: ''
 | 
			
		||||
settings: {  }
 | 
			
		||||
field_type: string
 | 
			
		||||
@@ -0,0 +1,25 @@
 | 
			
		||||
uuid: 0557bdb1-03b5-4b9f-8941-63d7880a2e88
 | 
			
		||||
langcode: fr
 | 
			
		||||
status: true
 | 
			
		||||
dependencies:
 | 
			
		||||
  config:
 | 
			
		||||
    - block_content.type.live_youtube
 | 
			
		||||
    - field.storage.block_content.field_youtube
 | 
			
		||||
  module:
 | 
			
		||||
    - video_embed_field
 | 
			
		||||
id: block_content.live_youtube.field_youtube
 | 
			
		||||
field_name: field_youtube
 | 
			
		||||
entity_type: block_content
 | 
			
		||||
bundle: live_youtube
 | 
			
		||||
label: youtube
 | 
			
		||||
description: ''
 | 
			
		||||
required: false
 | 
			
		||||
translatable: false
 | 
			
		||||
default_value: {  }
 | 
			
		||||
default_value_callback: ''
 | 
			
		||||
settings:
 | 
			
		||||
  allowed_providers:
 | 
			
		||||
    youtube: youtube
 | 
			
		||||
    youtube_playlist: '0'
 | 
			
		||||
    vimeo: '0'
 | 
			
		||||
field_type: video_embed_field
 | 
			
		||||
@@ -0,0 +1,19 @@
 | 
			
		||||
uuid: 833e03f3-0e59-4537-b1eb-3d5b3eba9e0f
 | 
			
		||||
langcode: fr
 | 
			
		||||
status: true
 | 
			
		||||
dependencies:
 | 
			
		||||
  module:
 | 
			
		||||
    - block_content
 | 
			
		||||
    - text
 | 
			
		||||
id: block_content.field_descritpion
 | 
			
		||||
field_name: field_descritpion
 | 
			
		||||
entity_type: block_content
 | 
			
		||||
type: text_long
 | 
			
		||||
settings: {  }
 | 
			
		||||
module: text
 | 
			
		||||
locked: false
 | 
			
		||||
cardinality: 1
 | 
			
		||||
translatable: true
 | 
			
		||||
indexes: {  }
 | 
			
		||||
persist_with_no_fields: false
 | 
			
		||||
custom_storage: false
 | 
			
		||||
							
								
								
									
										21
									
								
								config/sync/field.storage.block_content.field_titre.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								config/sync/field.storage.block_content.field_titre.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
uuid: c8b30bc0-f7cb-49a0-8bb1-2a83fef02fb2
 | 
			
		||||
langcode: fr
 | 
			
		||||
status: true
 | 
			
		||||
dependencies:
 | 
			
		||||
  module:
 | 
			
		||||
    - block_content
 | 
			
		||||
id: block_content.field_titre
 | 
			
		||||
field_name: field_titre
 | 
			
		||||
entity_type: block_content
 | 
			
		||||
type: string
 | 
			
		||||
settings:
 | 
			
		||||
  max_length: 255
 | 
			
		||||
  case_sensitive: false
 | 
			
		||||
  is_ascii: false
 | 
			
		||||
module: core
 | 
			
		||||
locked: false
 | 
			
		||||
cardinality: 1
 | 
			
		||||
translatable: true
 | 
			
		||||
indexes: {  }
 | 
			
		||||
persist_with_no_fields: false
 | 
			
		||||
custom_storage: false
 | 
			
		||||
							
								
								
									
										19
									
								
								config/sync/field.storage.block_content.field_youtube.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								config/sync/field.storage.block_content.field_youtube.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
			
		||||
uuid: cc74fdc1-0972-4669-a610-c3ec2df20732
 | 
			
		||||
langcode: fr
 | 
			
		||||
status: true
 | 
			
		||||
dependencies:
 | 
			
		||||
  module:
 | 
			
		||||
    - block_content
 | 
			
		||||
    - video_embed_field
 | 
			
		||||
id: block_content.field_youtube
 | 
			
		||||
field_name: field_youtube
 | 
			
		||||
entity_type: block_content
 | 
			
		||||
type: video_embed_field
 | 
			
		||||
settings: {  }
 | 
			
		||||
module: video_embed_field
 | 
			
		||||
locked: false
 | 
			
		||||
cardinality: 1
 | 
			
		||||
translatable: true
 | 
			
		||||
indexes: {  }
 | 
			
		||||
persist_with_no_fields: false
 | 
			
		||||
custom_storage: false
 | 
			
		||||
@@ -6,7 +6,10 @@ dependencies:
 | 
			
		||||
    - page_manager.page.home
 | 
			
		||||
    - views.view.actus
 | 
			
		||||
    - views.view.presentation
 | 
			
		||||
  content:
 | 
			
		||||
    - 'block_content:live_youtube:1d330f27-3197-43ed-8f7f-a1b05826c25b'
 | 
			
		||||
  module:
 | 
			
		||||
    - block_content
 | 
			
		||||
    - config_pages
 | 
			
		||||
    - panels
 | 
			
		||||
    - views
 | 
			
		||||
@@ -30,7 +33,7 @@ variant_settings:
 | 
			
		||||
      items_per_page: none
 | 
			
		||||
      exposed: {  }
 | 
			
		||||
      region: content
 | 
			
		||||
      weight: 0
 | 
			
		||||
      weight: 1
 | 
			
		||||
      uuid: f1486b62-7ff8-475b-b6a1-e153b6b6fb89
 | 
			
		||||
      css_classes:
 | 
			
		||||
        - ''
 | 
			
		||||
@@ -60,7 +63,7 @@ variant_settings:
 | 
			
		||||
      config_page_type: deroulement
 | 
			
		||||
      config_page_view_mode: full
 | 
			
		||||
      region: content
 | 
			
		||||
      weight: 1
 | 
			
		||||
      weight: 2
 | 
			
		||||
      uuid: 346ce88d-2925-4bf8-884d-dfbca1e8d5b6
 | 
			
		||||
      css_classes:
 | 
			
		||||
        - ''
 | 
			
		||||
@@ -76,12 +79,28 @@ variant_settings:
 | 
			
		||||
      items_per_page: none
 | 
			
		||||
      exposed: {  }
 | 
			
		||||
      region: content
 | 
			
		||||
      weight: 2
 | 
			
		||||
      weight: 0
 | 
			
		||||
      uuid: d4d27033-dc91-45d7-adc0-8690fd0ab27a
 | 
			
		||||
      css_classes:
 | 
			
		||||
        - ''
 | 
			
		||||
      html_id: ''
 | 
			
		||||
      css_styles: ''
 | 
			
		||||
    e68622dd-ffb9-463b-af33-0955e75f8019:
 | 
			
		||||
      id: 'block_content:1d330f27-3197-43ed-8f7f-a1b05826c25b'
 | 
			
		||||
      label: 'Live 03-03-2025'
 | 
			
		||||
      label_display: visible
 | 
			
		||||
      provider: block_content
 | 
			
		||||
      status: true
 | 
			
		||||
      info: ''
 | 
			
		||||
      view_mode: full
 | 
			
		||||
      context_mapping: {  }
 | 
			
		||||
      region: content
 | 
			
		||||
      weight: -1
 | 
			
		||||
      uuid: e68622dd-ffb9-463b-af33-0955e75f8019
 | 
			
		||||
      css_classes:
 | 
			
		||||
        - ''
 | 
			
		||||
      html_id: ''
 | 
			
		||||
      css_styles: ''
 | 
			
		||||
  page_title: ''
 | 
			
		||||
  layout: layout_onecol
 | 
			
		||||
  layout_settings:
 | 
			
		||||
 
 | 
			
		||||
@@ -11,7 +11,7 @@
 | 
			
		||||
function q2d_mod_theme() {
 | 
			
		||||
  return array(
 | 
			
		||||
    'svg_mapsites' => array(
 | 
			
		||||
      'variables' => array('vpw' => null, 'vph' => null, 'sites' => []),
 | 
			
		||||
      'variables' => array('vpw' => null, 'vph' => null, 'sites' => [], 'label' => null),
 | 
			
		||||
    ),
 | 
			
		||||
  );
 | 
			
		||||
}
 | 
			
		||||
@@ -101,6 +101,7 @@ class SitesMap extends BlockBase {
 | 
			
		||||
      ],
 | 
			
		||||
      'svg_mapsites' => [
 | 
			
		||||
        '#theme' => 'svg_mapsites',
 | 
			
		||||
        '#label' => "Les 10 sites de projet",
 | 
			
		||||
        '#sites' => $sites_paths,
 | 
			
		||||
        '#vpw' => $vp_w,
 | 
			
		||||
        '#vph' => $vp_h,
 | 
			
		||||
@@ -117,6 +118,7 @@ class SitesMap extends BlockBase {
 | 
			
		||||
    //   '#markup' => $this->t('Hello, Sites Map!'),
 | 
			
		||||
    // ];
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  public function getCacheMaxAge() {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,7 @@
 | 
			
		||||
<div id="sites-map-container">
 | 
			
		||||
 | 
			
		||||
  <h2>{{label}}</h2>  
 | 
			
		||||
 | 
			
		||||
  {# <svg {{ svg_attributes }}>
 | 
			
		||||
    <path {{ path_attributes }}></path>
 | 
			
		||||
  </svg> #}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user