setup theme rorschach ok

This commit is contained in:
2023-06-09 18:09:16 +02:00
parent 9beeb37aaa
commit d36fe35360
247 changed files with 289 additions and 43736 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
uuid: a4296401-2fee-4887-afbb-09a6fc9a7cc1
langcode: en
status: true
status: false
dependencies:
module:
- book
@@ -9,7 +9,7 @@ dependencies:
- rorschach
id: booknavigation
theme: rorschach
region: sidebar_first
region: header
weight: 0
provider: null
plugin: book_navigation
@@ -0,0 +1,41 @@
uuid: 1958eed1-8068-47d7-b6f6-4ba5762f0f41
langcode: en
status: false
dependencies:
module:
- book
- context
theme:
- rorschach
id: booknavigation_2
theme: rorschach
region: content
weight: 0
provider: null
plugin: book_navigation
settings:
id: book_navigation
label: 'Book navigation'
label_display: visible
provider: book
block_mode: 'all pages'
visibility:
context:
id: context
negate: null
values: ''
context_all:
id: context_all
negate: null
values: ''
user_status:
id: user_status
negate: false
context_mapping:
user: '@user.current_user_context:current_user'
user_status:
viewing_profile: '0'
logged_viewing_profile: '0'
own_page_true: '0'
field_value: '0'
user_fields: uid
@@ -0,0 +1,41 @@
uuid: c17ec623-45c0-4121-8256-a55e7386b58c
langcode: en
status: true
dependencies:
module:
- book
- context
theme:
- rorschach
id: booknavigation_3
theme: rorschach
region: sidebar
weight: 0
provider: null
plugin: book_navigation
settings:
id: book_navigation
label: 'Book navigation'
label_display: visible
provider: book
block_mode: 'all pages'
visibility:
context:
id: context
negate: null
values: ''
context_all:
id: context_all
negate: null
values: ''
user_status:
id: user_status
negate: false
context_mapping:
user: '@user.current_user_context:current_user'
user_status:
viewing_profile: '0'
logged_viewing_profile: '0'
own_page_true: '0'
field_value: '0'
user_fields: uid
+2 -2
View File
@@ -9,8 +9,8 @@ dependencies:
- rorschach
id: breadcrumbs
theme: rorschach
region: header_bottom
weight: 0
region: breadcrumb
weight: -7
provider: null
plugin: system_breadcrumb_block
settings:
@@ -0,0 +1,40 @@
uuid: 8b7f73cd-a98a-45b7-978d-a91a8d94f589
langcode: en
status: true
dependencies:
module:
- context
- language
theme:
- rorschach
id: languageswitcher
theme: rorschach
region: header
weight: 0
provider: null
plugin: 'language_block:language_interface'
settings:
id: 'language_block:language_interface'
label: 'Language switcher'
label_display: visible
provider: language
visibility:
context:
id: context
negate: null
values: ''
context_all:
id: context_all
negate: null
values: ''
user_status:
id: user_status
negate: false
context_mapping:
user: '@user.current_user_context:current_user'
user_status:
viewing_profile: '0'
logged_viewing_profile: '0'
own_page_true: '0'
field_value: '0'
user_fields: uid
+49
View File
@@ -0,0 +1,49 @@
uuid: 6ffd95d7-9145-499a-ac4a-729ac435bbc5
langcode: en
status: true
dependencies:
module:
- context
- ctools_block
theme:
- rorschach
id: menulink
theme: rorschach
region: header
weight: 0
provider: null
plugin: 'entity_field:node:menu_link'
settings:
id: 'entity_field:node:menu_link'
label: 'Menu link'
label_display: visible
provider: ctools_block
context_mapping:
entity: '@node.node_route_context:node'
formatter:
type: entity_reference_label
weight: 0
label: above
settings:
link: true
third_party_settings: { }
visibility:
context:
id: context
negate: null
values: ''
context_all:
id: context_all
negate: null
values: ''
user_status:
id: user_status
negate: false
context_mapping:
user: '@user.current_user_context:current_user'
user_status:
viewing_profile: '0'
logged_viewing_profile: '0'
own_page_true: '0'
field_value: '0'
user_fields: uid
+39
View File
@@ -0,0 +1,39 @@
uuid: 33d466fd-102d-4bda-ad98-c2751e6bafa3
langcode: en
status: true
dependencies:
module:
- context
theme:
- rorschach
id: pagetitle
theme: rorschach
region: content_above
weight: -6
provider: null
plugin: page_title_block
settings:
id: page_title_block
label: 'Page title'
label_display: '0'
provider: core
visibility:
context:
id: context
negate: null
values: ''
context_all:
id: context_all
negate: null
values: ''
user_status:
id: user_status
negate: false
context_mapping:
user: '@user.current_user_context:current_user'
user_status:
viewing_profile: '0'
logged_viewing_profile: '0'
own_page_true: '0'
field_value: '0'
user_fields: uid
@@ -1,6 +1,6 @@
uuid: d134e704-c899-4ded-ad6d-6195ac27cd8e
langcode: en
status: true
status: false
dependencies:
config:
- system.menu.account
@@ -13,8 +13,8 @@ _core:
default_config_hash: gmxYWWHmgbe0Pnv8y48ZLSLH5mEHejOjAP6RLxUfdzU
id: rorschach_account_menu
theme: rorschach
region: header_top_rigth
weight: -4
region: header
weight: -2
provider: null
plugin: 'system_menu_block:account'
settings:
+3 -3
View File
@@ -1,6 +1,6 @@
uuid: ecd47807-917c-47d9-b958-a317320666af
langcode: en
status: true
status: false
dependencies:
module:
- context
@@ -11,8 +11,8 @@ _core:
default_config_hash: VfPFqqxfkomud5CO8DUijw85QIl9GIxh_nIxLOYESxg
id: rorschach_help
theme: rorschach
region: footer_bottom_right
weight: 0
region: header
weight: 1
provider: null
plugin: help_block
settings:
@@ -13,8 +13,8 @@ _core:
default_config_hash: KWAiziL39uEzmOJEql_wbUP2RtqGceL3WM2CfxhMelE
id: rorschach_main_menu
theme: rorschach
region: header_top_rigth
weight: 0
region: header
weight: 2
provider: null
plugin: 'system_menu_block:main'
settings:
@@ -1,6 +1,6 @@
uuid: 3acaeb3c-9a4d-4369-97d6-2ded5589bd09
langcode: en
status: true
status: false
dependencies:
module:
- system
@@ -10,8 +10,8 @@ _core:
default_config_hash: BZ5tpW7H8X4PVGRm3MImTIHd2tN0eF7zOtp4SpRYUA0
id: rorschach_messages
theme: rorschach
region: header_top_left
weight: -5
region: header
weight: -3
provider: null
plugin: system_messages_block
settings:
@@ -1,6 +1,6 @@
uuid: 96b25742-cdf8-42c9-9067-4dba2d8df2e0
langcode: en
status: true
status: false
dependencies:
module:
- context
@@ -10,8 +10,8 @@ _core:
default_config_hash: 6aOgWsNTXjqrDm98TXSAjP6qd2nCijD1xw45MrnbK-Y
id: rorschach_page_title
theme: rorschach
region: header_top_left
weight: -5
region: header
weight: -4
provider: null
plugin: page_title_block
settings:
@@ -10,7 +10,7 @@ _core:
default_config_hash: Q9_2whdOj1YIomfvsIfopROW4FT_X5pY0DjdOiOaQ5U
id: rorschach_primary_admin_actions
theme: rorschach
region: header_top_rigth
region: header
weight: -5
provider: null
plugin: local_actions_block
@@ -10,8 +10,8 @@ _core:
default_config_hash: nGE3EoPQQaQCuqTUtZgw0-KIzmrqdKDzdNQf2JyPUt4
id: rorschach_primary_local_tasks
theme: rorschach
region: header_top_left
weight: -4
region: content_above
weight: -7
provider: null
plugin: local_tasks_block
settings:
@@ -1,6 +1,6 @@
uuid: 9d7f36a0-dd8e-4a20-a733-851b9cb65772
langcode: en
status: true
status: false
dependencies:
module:
- context
@@ -10,8 +10,8 @@ _core:
default_config_hash: ydSxdq7R66I8UMC460rOzlfzvlUL4VRbdwc6z9DWaUI
id: rorschach_secondary_local_tasks
theme: rorschach
region: header_top_left
weight: -2
region: header
weight: -1
provider: null
plugin: local_tasks_block
settings:
@@ -11,14 +11,14 @@ _core:
default_config_hash: n_nlgjggHVfQt2H__zvLOKB2YtjPDbQ5tHijF9LE1aM
id: rorschach_site_branding
theme: rorschach
region: header_top_left
weight: 0
region: header
weight: -7
provider: null
plugin: system_branding_block
settings:
id: system_branding_block
label: 'Site branding'
label_display: visible
label_display: '0'
provider: system
use_site_logo: true
use_site_name: true
@@ -1,8 +0,0 @@
uuid: ef46aabc-d469-4edb-b6b9-67724df8cc92
langcode: en
status: true
dependencies: { }
id: header_page_book
label: 'header page book'
revision: 0
description: ''
@@ -1,47 +0,0 @@
uuid: 1c4da34b-c402-46f1-9ef3-d4ad819d9385
langcode: en
status: true
dependencies:
config:
- block_content.type.header_page_book
- field.field.block_content.header_page_book.body
module:
- field_layout
- layout_discovery
- text
third_party_settings:
field_layout:
id: layout_threecol_25_50_25
settings:
label: ''
id: block_content.header_page_book.default
targetEntityType: block_content
bundle: header_page_book
mode: default
content:
body:
type: text_textarea_with_summary
weight: 26
region: second
settings:
rows: 9
summary_rows: 3
placeholder: ''
show_summary: false
third_party_settings: { }
info:
type: string_textfield
weight: -5
region: second
settings:
size: 60
placeholder: ''
third_party_settings: { }
langcode:
type: language_select
weight: 2
region: second
settings:
include_locked: true
third_party_settings: { }
hidden: { }
@@ -15,7 +15,7 @@ dependencies:
- text
third_party_settings:
field_layout:
id: layout_threecol_25_50_25
id: layout_onecol
settings:
label: ''
_core:
@@ -28,7 +28,7 @@ content:
body:
type: text_textarea_with_summary
weight: 7
region: second
region: content
settings:
rows: 9
summary_rows: 3
@@ -38,13 +38,13 @@ content:
created:
type: datetime_timestamp
weight: 3
region: second
region: content
settings: { }
third_party_settings: { }
field_articles:
type: paragraphs
weight: 26
region: second
region: content
settings:
title: Paragraph
title_plural: Paragraphs
@@ -62,54 +62,54 @@ content:
langcode:
type: language_select
weight: 1
region: second
region: content
settings:
include_locked: true
third_party_settings: { }
path:
type: path
weight: 8
region: second
region: content
settings: { }
third_party_settings: { }
promote:
type: boolean_checkbox
weight: 5
region: second
region: content
settings:
display_label: true
third_party_settings: { }
status:
type: boolean_checkbox
weight: 10
region: second
region: content
settings:
display_label: true
third_party_settings: { }
sticky:
type: boolean_checkbox
weight: 6
region: second
region: content
settings:
display_label: true
third_party_settings: { }
title:
type: string_textfield
weight: 0
region: second
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
translation:
weight: 4
region: second
region: content
settings: { }
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 2
region: second
region: content
settings:
match_operator: CONTAINS
match_limit: 10
@@ -118,7 +118,7 @@ content:
third_party_settings: { }
url_redirects:
weight: 9
region: second
region: content
settings: { }
third_party_settings: { }
hidden:
@@ -1,24 +0,0 @@
uuid: 85c19d40-4d56-491d-b2a4-df9ff867e7a8
langcode: en
status: true
dependencies:
config:
- block_content.type.header_page_book
- field.field.block_content.header_page_book.body
module:
- text
id: block_content.header_page_book.default
targetEntityType: block_content
bundle: header_page_book
mode: default
content:
body:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 0
region: content
hidden:
langcode: true
search_api_excerpt: true
@@ -1,89 +1,21 @@
uuid: ad519a4e-4bd9-436f-8290-4edf24cebbc0
langcode: fr
langcode: en
status: true
dependencies:
config:
- field.field.node.book.body
- field.field.node.book.field_articles
- field.field.node.book.field_paragraph_chapitre
- field.field.node.book.layout_builder__layout
- node.type.book
module:
- entity_reference_revisions
- layout_builder
- layout_discovery
- text
- user
third_party_settings:
layout_builder:
enabled: true
enabled: false
allow_custom: false
sections:
-
layout_id: layout_onecol
layout_settings:
label: ''
components:
02e6b38b-9950-41a0-89be-cf1621990ea8:
uuid: 02e6b38b-9950-41a0-89be-cf1621990ea8
region: content
configuration:
id: 'field_block:node:book:body'
label_display: '0'
context_mapping:
entity: layout_builder.entity
formatter:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 0
additional: { }
740a49e8-f79c-4a10-a202-8ae3530f27fe:
uuid: 740a49e8-f79c-4a10-a202-8ae3530f27fe
region: content
configuration:
id: 'extra_field_block:node:book:links'
label_display: '0'
context_mapping:
entity: layout_builder.entity
weight: 1
additional: { }
097834bd-f387-43bf-b662-92b0306c52ac:
uuid: 097834bd-f387-43bf-b662-92b0306c52ac
region: content
configuration:
id: 'field_block:node:book:field_paragraph_chapitre'
label_display: '0'
context_mapping:
entity: layout_builder.entity
formatter:
type: entity_reference_revisions_entity_view
label: above
settings:
view_mode: default
link: ''
third_party_settings: { }
weight: 2
additional: { }
3d710b40-bdb2-460a-9fb5-3848201aa31b:
uuid: 3d710b40-bdb2-460a-9fb5-3848201aa31b
region: content
configuration:
id: 'field_block:node:book:field_articles'
label_display: '0'
context_mapping:
entity: layout_builder.entity
formatter:
type: entity_reference_revisions_entity_view
label: above
settings:
view_mode: default
link: ''
third_party_settings: { }
weight: 3
additional: { }
third_party_settings: { }
_core:
default_config_hash: W620wooZmJ02Ua5mnXNKBCOpI0abjSOOSKEkSQhuWNA
id: node.book.default
@@ -96,7 +28,7 @@ content:
label: hidden
settings: { }
third_party_settings: { }
weight: 100
weight: 0
region: content
field_articles:
type: entity_reference_revisions_entity_view
@@ -105,7 +37,7 @@ content:
view_mode: default
link: ''
third_party_settings: { }
weight: 104
weight: 3
region: content
field_paragraph_chapitre:
type: entity_reference_revisions_entity_view
@@ -114,12 +46,12 @@ content:
view_mode: default
link: ''
third_party_settings: { }
weight: 103
weight: 2
region: content
links:
settings: { }
third_party_settings: { }
weight: 101
weight: 1
region: content
hidden:
langcode: true
@@ -1,6 +1,6 @@
uuid: f5f0f21e-0502-4a46-888d-c91564b90198
langcode: en
status: false
status: true
dependencies:
config:
- core.entity_view_mode.node.full
@@ -11,6 +11,7 @@ dependencies:
module:
- entity_reference_revisions
- layout_builder
- layout_discovery
- text
- user
third_party_settings:
@@ -9,8 +9,8 @@ dependencies:
- field.field.node.book.field_paragraph_chapitre
- node.type.book
module:
- entity_reference_revisions
- layout_builder
- layout_discovery
- text
- user
third_party_settings:
@@ -30,15 +30,23 @@ content:
settings:
trim_length: 600
third_party_settings: { }
weight: 100
weight: 0
region: content
field_articles:
type: entity_reference_revisions_entity_view
label: above
settings:
view_mode: default
link: ''
third_party_settings: { }
weight: 2
region: content
links:
settings: { }
third_party_settings: { }
weight: 101
weight: 1
region: content
hidden:
field_articles: true
field_paragraph_chapitre: true
langcode: true
search_api_excerpt: true
@@ -1,23 +0,0 @@
uuid: 06d1aa1f-6876-4243-b158-4a23178037b7
langcode: en
status: true
dependencies:
config:
- block_content.type.header_page_book
- field.storage.block_content.body
module:
- text
id: block_content.header_page_book.body
field_name: body
entity_type: block_content
bundle: header_page_book
label: Body
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
display_summary: false
required_summary: false
field_type: text_with_summary
@@ -1,11 +0,0 @@
uuid: 621176f8-442b-403d-b43b-39cae955b51c
langcode: en
status: true
dependencies:
config:
- block_content.type.header_page_book
id: block_content.header_page_book
target_entity_type_id: block_content
target_bundle: header_page_book
default_langcode: site_default
language_alterable: false
+3 -1
View File
@@ -6,5 +6,7 @@ features:
favicon: true
node_user_picture: false
logo:
path: 'public://rorschach.png'
path: 'public://logo_iri.png'
use_default: false
mobile_menu_all_widths: 0
site_branding_bg_color: default
+1 -1
View File
@@ -2,7 +2,7 @@ _core:
default_config_hash: KpKfgMpPrABs7m0Uqd8VFuYXns2cRXsuYy0QL4SRE14
langcode: fr
uuid: eb24bc99-64ef-496d-beb3-b02a8573f75f
name: 'Rorschach Institute'
name: 'International Rorschach Institute'
mail: dev@figureslibres.io
slogan: ''
page:
+1 -1
View File
@@ -2,4 +2,4 @@ _core:
default_config_hash: TpdA4rsOBAawnqeon9A-Ooht_4VO3hHKib79xyHcTyg
langcode: fr
admin: adminimal_theme
default: olivero
default: rorschach
@@ -1,5 +0,0 @@
# Schema for the configuration files of the eql theme.
eql.settings:
type: theme_settings
label: 'EQL settings'
@@ -1,2 +0,0 @@
.body {
margin: 0; }
@@ -1 +0,0 @@
/* Colors used for EQL */
@@ -1,3 +0,0 @@
.field--name-field-textes {
grid-column-start: 2;
grid-column-end: 7; }
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
-18
View File
@@ -1,18 +0,0 @@
eql.mobile:
label: mobile
mediaQuery: '(min-width: 0px)'
weight: 0
multipliers:
- 1x
eql.narrow:
label: narrow
mediaQuery: 'all and (min-width: 480px) and (max-width: 959px)'
weight: 1
multipliers:
- 1x
eql.wide:
label: wide
mediaQuery: 'all and (min-width: 960px)'
weight: 2
multipliers:
- 1x
-27
View File
@@ -1,27 +0,0 @@
name: EQL
type: theme
description: 'EQL theme.'
package: Core
version: VERSION
core_version_requirement: ^8.8 || ^9
base theme: false
libraries:
- eql/global-css
- eql/global-js
regions:
header_top_left: 'Header top left'
header_top_rigth: 'Header top right'
header_bottom: 'Header Bottom'
help: Help
page_top: 'Page top'
content: Content
sidebar_first: 'Sidebar first'
sidebar_second: 'Sidebar second'
page_bottom: 'Page bottom'
footer_top: 'Footer top'
footer_bottom_left: 'Footer bottom left'
footer_bottom_middle: 'Footer bottom middle'
footer_bottom_right: 'Footer bottom right'
-11
View File
@@ -1,11 +0,0 @@
global-css:
css:
theme:
css-compiled/styles.css: {}
# css-prefixed/styles.css: {}
global-js:
js:
scripts/main.js: {}
dependencies:
- core/jquery
-123
View File
@@ -1,123 +0,0 @@
<?php
/*
* @files
* Theme Template Funtions
*/
// use Drupal\Core\Template\Attribute;
// use Drupal\Core\Link;
// use Drupal\Core\Url;
function eql_preprocess_html(&$variables) {
$node = \Drupal::routeMatch()->getParameter('node');
if ($node){
$variables['attributes']['class'][] = 'node-type-' . $node->bundle();
$variables['attributes']['class'][] = 'node-id-' . $node->id();
}
}
function eql_preprocess_node(&$variables){
$node = &$variables['node'];
$variables['attributes']['class'][] = 'node-type-' . $node->gettype();
if($node->gettype() == "actualite") {
$actu_type = $node->get('field_actu_type')->getString();
$variables['attributes']['class'][] = 'actu-type-' . $actu_type;
}
if($node->gettype() == "offre_de_service") {
$type_protagoniste = $node->get('field_type_de_protagoniste')->getString();
$variables['attributes']['class'][] = 'type-de-protagoniste-' . $type_protagoniste;
}
}
function eql_preprocess_field(&$variables) {
$node = \Drupal::routeMatch()->getParameter('node');
$field_name = &$variables['field_name'];
if($node) {
if ($field_name == 'field_type_de_protagoniste'){
$type_protagoniste = $node->get('field_type_de_protagoniste')->getString();
$variables['attributes']['class'][] = 'type-de-protagoniste-' . $type_protagoniste;
}
}
}
//////////////////////////////////////////////////
// function eql_preprocess_field(&$variables){
// $node = &$variables['node'];
// $variables['attributes']['class'][] = 'node-type-' . $node->gettype();
// if($node->gettype() == "offre_de_service") {
// $type_protagoniste = $node->get('field_type_de_protagoniste')->getString();
// $variables['attributes']['class'][] = 'type-de-protagoniste-' . $type_protagoniste;
// }
// }
// function MYTHEME_preprocess_field__MYFIELD(&$variables) {
// if ($variables['element']['#entity_type'] === 'node') {
// $node = $variables['element']['#object'];
// $nid = $node->id();
// $variables['myurl'] = \Drupal::service('path.alias_manager')->getAliasByPath('/node/' . $nid);
// }
// }
// function template_preprocess_block(&$variables) {
// $node = &$variables['node'];
// $variables['attributes']['class'][] = 'node-type-' . $node->gettype();
// if($node->gettype() == "offre_de_service") {
// $type_protagoniste = $node->get('field_type_de_protagoniste')->getString();
// $variables['attributes']['class'][] = 'type-de-protagoniste-' . $type_protagoniste;
// }
// }
///////////////////////////////////////////////////
///////////////////////////////////////////////////
// counter pour id
// function eql_preprocess_field(&$variables) {
// // static $counter = 0;
// // $variables['counter'] = $counter++;
// $variables['elements']['#paragraph']->item_id;
// }
// la fonction suivante ne fonctionne pas
// function eql_preprocess_field(&$variables) {
// $paragraph = &$variables['paragraph'];
// $variables['attributes']['class'][] = 'paragraph-type-' . $paragraph->id();
// $hook_id = $paragraph->get('paragraph-id--')->getString();
// $variables['attributes']['class'][] = 'hook-id-' . $hook_id;
// }
//might be useful for if-clause: $variables['field_name'] and $variables['field_type']
// if ($paragraph && $paragraph->getEntityTypeId() == 'paragraph' . $paragraph->id() ) {
//whatever logic you need goes here, e.g. something like
//$variables['attributes']['data-from-parent-paragraph'] = $parentEntity->getYourStuff();
// }
// function yourtheme_preprocess_field(&$variables, $hook) {
// $element = $variables['element'];
// $parentEntity = $element['#object'];
// //might be useful for if-clause: $variables['field_name'] and $variables['field_type']
// if ($parentEntity && $parentEntity->getEntityTypeId() == 'paragraph' ) {
// //whatever logic you need goes here, e.g. something like
// //$variables['attributes']['data-from-parent-paragraph'] = $parentEntity->getYourStuff();
// }
// }
// $variables['elements']['#entity']->item_id;
// function MYTHEME_preprocess_views_view_fields__view_machine_name(&$vars) {
// static $counter = 0;
// $vars['counter'] = $counter++;
// }
File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 434 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 169 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 144 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 296 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 977 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 120 KiB

Some files were not shown because too many files have changed in this diff Show More