created reha theme
This commit is contained in:
@@ -0,0 +1,22 @@
|
|||||||
|
uuid: a35fb258-59ab-4afc-a770-36a0cbbf9dce
|
||||||
|
langcode: fr
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
module:
|
||||||
|
- config_pages
|
||||||
|
theme:
|
||||||
|
- reha
|
||||||
|
id: reha_config_pages
|
||||||
|
theme: reha
|
||||||
|
region: header
|
||||||
|
weight: 2
|
||||||
|
provider: null
|
||||||
|
plugin: config_pages_block
|
||||||
|
settings:
|
||||||
|
id: config_pages_block
|
||||||
|
label: Contact
|
||||||
|
label_display: visible
|
||||||
|
provider: config_pages
|
||||||
|
config_page_type: contact
|
||||||
|
config_page_view_mode: full
|
||||||
|
visibility: { }
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
uuid: ac51b453-f5af-4d1e-92bd-2beee0250794
|
||||||
|
langcode: fr
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
module:
|
||||||
|
- config_pages
|
||||||
|
theme:
|
||||||
|
- reha
|
||||||
|
id: reha_config_pages_2
|
||||||
|
theme: reha
|
||||||
|
region: footer
|
||||||
|
weight: -1
|
||||||
|
provider: null
|
||||||
|
plugin: config_pages_block
|
||||||
|
settings:
|
||||||
|
id: config_pages_block
|
||||||
|
label: Partenaires
|
||||||
|
label_display: visible
|
||||||
|
provider: config_pages
|
||||||
|
config_page_type: partenaires
|
||||||
|
config_page_view_mode: full
|
||||||
|
visibility: { }
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
uuid: 24ad5df7-059e-426f-95da-7cca0443b0f4
|
||||||
|
langcode: fr
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
theme:
|
||||||
|
- reha
|
||||||
|
id: reha_connexionutilisateur
|
||||||
|
theme: reha
|
||||||
|
region: header
|
||||||
|
weight: 0
|
||||||
|
provider: null
|
||||||
|
plugin: user_login_block
|
||||||
|
settings:
|
||||||
|
id: user_login_block
|
||||||
|
label: Connexion
|
||||||
|
label_display: visible
|
||||||
|
provider: user
|
||||||
|
visibility:
|
||||||
|
user_role:
|
||||||
|
id: user_role
|
||||||
|
negate: false
|
||||||
|
context_mapping:
|
||||||
|
user: '@user.current_user_context:current_user'
|
||||||
|
roles:
|
||||||
|
anonymous: anonymous
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
uuid: f56d4cee-3f72-476c-880d-b762f6a9e0c4
|
||||||
|
langcode: fr
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
module:
|
||||||
|
- system
|
||||||
|
theme:
|
||||||
|
- reha
|
||||||
|
id: reha_contenudelapageprincipale
|
||||||
|
theme: reha
|
||||||
|
region: content
|
||||||
|
weight: 0
|
||||||
|
provider: null
|
||||||
|
plugin: system_main_block
|
||||||
|
settings:
|
||||||
|
id: system_main_block
|
||||||
|
label: 'Contenu de la page principale'
|
||||||
|
label_display: '0'
|
||||||
|
provider: system
|
||||||
|
visibility: { }
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
uuid: c8d52d07-a023-404b-86a3-b7a363254067
|
||||||
|
langcode: fr
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
content:
|
||||||
|
- 'block_content:logo_link:734a55bb-b11d-4498-bb55-5a6cb1924aa8'
|
||||||
|
module:
|
||||||
|
- block_content
|
||||||
|
theme:
|
||||||
|
- reha
|
||||||
|
id: reha_logoministere
|
||||||
|
theme: reha
|
||||||
|
region: header
|
||||||
|
weight: -2
|
||||||
|
provider: null
|
||||||
|
plugin: 'block_content:734a55bb-b11d-4498-bb55-5a6cb1924aa8'
|
||||||
|
settings:
|
||||||
|
id: 'block_content:734a55bb-b11d-4498-bb55-5a6cb1924aa8'
|
||||||
|
label: 'Logo ministère'
|
||||||
|
label_display: '0'
|
||||||
|
provider: block_content
|
||||||
|
status: true
|
||||||
|
info: ''
|
||||||
|
view_mode: full
|
||||||
|
visibility: { }
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
uuid: 2ab71765-d5c8-472f-beec-ba46ceae77b0
|
||||||
|
langcode: fr
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
content:
|
||||||
|
- 'block_content:logo_link:6aedcd97-72c8-4328-b52d-f4d2a5285b96'
|
||||||
|
module:
|
||||||
|
- block_content
|
||||||
|
theme:
|
||||||
|
- reha
|
||||||
|
id: reha_logoreha
|
||||||
|
theme: reha
|
||||||
|
region: header
|
||||||
|
weight: -1
|
||||||
|
provider: null
|
||||||
|
plugin: 'block_content:6aedcd97-72c8-4328-b52d-f4d2a5285b96'
|
||||||
|
settings:
|
||||||
|
id: 'block_content:6aedcd97-72c8-4328-b52d-f4d2a5285b96'
|
||||||
|
label: 'Logo reha'
|
||||||
|
label_display: '0'
|
||||||
|
provider: block_content
|
||||||
|
status: true
|
||||||
|
info: ''
|
||||||
|
view_mode: full
|
||||||
|
visibility: { }
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
uuid: 0ea21b35-747c-42c6-bce2-e18cae5ed543
|
||||||
|
langcode: fr
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
content:
|
||||||
|
- 'block_content:logo_link:6aedcd97-72c8-4328-b52d-f4d2a5285b96'
|
||||||
|
module:
|
||||||
|
- block_content
|
||||||
|
theme:
|
||||||
|
- reha
|
||||||
|
id: reha_logoreha_2
|
||||||
|
theme: reha
|
||||||
|
region: footer
|
||||||
|
weight: -4
|
||||||
|
provider: null
|
||||||
|
plugin: 'block_content:6aedcd97-72c8-4328-b52d-f4d2a5285b96'
|
||||||
|
settings:
|
||||||
|
id: 'block_content:6aedcd97-72c8-4328-b52d-f4d2a5285b96'
|
||||||
|
label: 'Logo reha'
|
||||||
|
label_display: '0'
|
||||||
|
provider: block_content
|
||||||
|
status: true
|
||||||
|
info: ''
|
||||||
|
view_mode: full
|
||||||
|
visibility: { }
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
uuid: 68cc1027-f227-46ae-a518-a1df0bf4d39d
|
||||||
|
langcode: fr
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
content:
|
||||||
|
- 'block_content:logo_link:bc48e271-75cf-4c3f-a4aa-ecc3c573c060'
|
||||||
|
module:
|
||||||
|
- block_content
|
||||||
|
theme:
|
||||||
|
- reha
|
||||||
|
id: reha_operateurduprogramme
|
||||||
|
theme: reha
|
||||||
|
region: footer
|
||||||
|
weight: -2
|
||||||
|
provider: null
|
||||||
|
plugin: 'block_content:bc48e271-75cf-4c3f-a4aa-ecc3c573c060'
|
||||||
|
settings:
|
||||||
|
id: 'block_content:bc48e271-75cf-4c3f-a4aa-ecc3c573c060'
|
||||||
|
label: 'Opérateur du programme'
|
||||||
|
label_display: visible
|
||||||
|
provider: block_content
|
||||||
|
status: true
|
||||||
|
info: ''
|
||||||
|
view_mode: full
|
||||||
|
visibility: { }
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
uuid: 2b27b1a3-1ae4-4364-8c92-dd12c41abe70
|
||||||
|
langcode: fr
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- system.menu.footer
|
||||||
|
module:
|
||||||
|
- menu_block
|
||||||
|
theme:
|
||||||
|
- reha
|
||||||
|
id: reha_pieddepage
|
||||||
|
theme: reha
|
||||||
|
region: footer
|
||||||
|
weight: -3
|
||||||
|
provider: null
|
||||||
|
plugin: 'menu_block:footer'
|
||||||
|
settings:
|
||||||
|
id: 'menu_block:footer'
|
||||||
|
label: 'Pied de page'
|
||||||
|
label_display: '0'
|
||||||
|
provider: menu_block
|
||||||
|
follow: false
|
||||||
|
follow_parent: child
|
||||||
|
label_link: false
|
||||||
|
label_type: block
|
||||||
|
level: 1
|
||||||
|
depth: 1
|
||||||
|
expand_all_items: false
|
||||||
|
parent: 'footer:'
|
||||||
|
suggestion: footer
|
||||||
|
visibility: { }
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
uuid: 891a59fa-4855-4b1d-9f51-afab3babde6c
|
||||||
|
langcode: fr
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- views.view.current_user_block
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
- views
|
||||||
|
theme:
|
||||||
|
- reha
|
||||||
|
id: reha_views_block__current_user_block_block_1
|
||||||
|
theme: reha
|
||||||
|
region: header
|
||||||
|
weight: 1
|
||||||
|
provider: null
|
||||||
|
plugin: 'views_block:current_user_block-block_1'
|
||||||
|
settings:
|
||||||
|
id: 'views_block:current_user_block-block_1'
|
||||||
|
label: ''
|
||||||
|
label_display: visible
|
||||||
|
provider: views
|
||||||
|
context_mapping: { }
|
||||||
|
views_label: ''
|
||||||
|
items_per_page: none
|
||||||
|
exposed: { }
|
||||||
|
visibility:
|
||||||
|
user_role:
|
||||||
|
id: user_role
|
||||||
|
negate: false
|
||||||
|
context_mapping:
|
||||||
|
user: '@user.current_user_context:current_user'
|
||||||
|
roles:
|
||||||
|
authenticated: authenticated
|
||||||
@@ -9,7 +9,7 @@ dependencies:
|
|||||||
id: stark_config_pages_2
|
id: stark_config_pages_2
|
||||||
theme: stark
|
theme: stark
|
||||||
region: footer
|
region: footer
|
||||||
weight: -2
|
weight: -1
|
||||||
provider: null
|
provider: null
|
||||||
plugin: config_pages_block
|
plugin: config_pages_block
|
||||||
settings:
|
settings:
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
uuid: d345f2e6-935f-4401-9a6a-f39ab0619b5e
|
||||||
|
langcode: fr
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
content:
|
||||||
|
- 'block_content:logo_link:6aedcd97-72c8-4328-b52d-f4d2a5285b96'
|
||||||
|
module:
|
||||||
|
- block_content
|
||||||
|
theme:
|
||||||
|
- stark
|
||||||
|
id: stark_logoreha_2
|
||||||
|
theme: stark
|
||||||
|
region: footer
|
||||||
|
weight: -4
|
||||||
|
provider: null
|
||||||
|
plugin: 'block_content:6aedcd97-72c8-4328-b52d-f4d2a5285b96'
|
||||||
|
settings:
|
||||||
|
id: 'block_content:6aedcd97-72c8-4328-b52d-f4d2a5285b96'
|
||||||
|
label: 'Logo reha'
|
||||||
|
label_display: '0'
|
||||||
|
provider: block_content
|
||||||
|
status: true
|
||||||
|
info: ''
|
||||||
|
view_mode: full
|
||||||
|
visibility: { }
|
||||||
@@ -11,7 +11,7 @@ dependencies:
|
|||||||
id: stark_operateurduprogramme
|
id: stark_operateurduprogramme
|
||||||
theme: stark
|
theme: stark
|
||||||
region: footer
|
region: footer
|
||||||
weight: -3
|
weight: -2
|
||||||
provider: null
|
provider: null
|
||||||
plugin: 'block_content:bc48e271-75cf-4c3f-a4aa-ecc3c573c060'
|
plugin: 'block_content:bc48e271-75cf-4c3f-a4aa-ecc3c573c060'
|
||||||
settings:
|
settings:
|
||||||
|
|||||||
@@ -5,20 +5,19 @@ dependencies:
|
|||||||
config:
|
config:
|
||||||
- system.menu.footer
|
- system.menu.footer
|
||||||
module:
|
module:
|
||||||
- block_class
|
|
||||||
- menu_block
|
- menu_block
|
||||||
theme:
|
theme:
|
||||||
- stark
|
- stark
|
||||||
id: stark_pieddepage
|
id: stark_pieddepage
|
||||||
theme: stark
|
theme: stark
|
||||||
region: footer
|
region: footer
|
||||||
weight: -4
|
weight: -3
|
||||||
provider: null
|
provider: null
|
||||||
plugin: 'menu_block:footer'
|
plugin: 'menu_block:footer'
|
||||||
settings:
|
settings:
|
||||||
id: 'menu_block:footer'
|
id: 'menu_block:footer'
|
||||||
label: 'Pied de page'
|
label: 'Pied de page'
|
||||||
label_display: visible
|
label_display: '0'
|
||||||
provider: menu_block
|
provider: menu_block
|
||||||
follow: false
|
follow: false
|
||||||
follow_parent: child
|
follow_parent: child
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
{ }
|
||||||
@@ -117,4 +117,5 @@ theme:
|
|||||||
seven: 0
|
seven: 0
|
||||||
adminimal_theme: 0
|
adminimal_theme: 0
|
||||||
stark: 0
|
stark: 0
|
||||||
|
reha: 0
|
||||||
profile: figli_starter_kit
|
profile: figli_starter_kit
|
||||||
|
|||||||
@@ -2,4 +2,4 @@ _core:
|
|||||||
default_config_hash: TpdA4rsOBAawnqeon9A-Ooht_4VO3hHKib79xyHcTyg
|
default_config_hash: TpdA4rsOBAawnqeon9A-Ooht_4VO3hHKib79xyHcTyg
|
||||||
langcode: fr
|
langcode: fr
|
||||||
admin: adminimal_theme
|
admin: adminimal_theme
|
||||||
default: stark
|
default: reha
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* reha behaviors.
|
||||||
|
*/
|
||||||
|
(function (Drupal) {
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
Drupal.behaviors.reha = {
|
||||||
|
attach: function (context, settings) {
|
||||||
|
|
||||||
|
console.log('It works!');
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
} (Drupal));
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="60">
|
||||||
|
<rect x="3" y="3" rx="10" ry="10" width="94" height="54" style="stroke: #187bb8; fill: #f5f5ff;"/>
|
||||||
|
<text x="50%" y="50%" text-anchor="middle" alignment-baseline="middle" style="font-family: Arial, 'Helvetica Neue', Helvetica; fill: #187bb8;">reha logo</text>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 335 B |
Generated
+2406
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"name": "rehatheme",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "",
|
||||||
|
"main": "index.js",
|
||||||
|
"scripts": {
|
||||||
|
"scss": "node-sass -w scss/ -o css/"
|
||||||
|
},
|
||||||
|
"author": "",
|
||||||
|
"license": "ISC",
|
||||||
|
"devDependencies": {
|
||||||
|
"node-sass": "^9.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
Sass
|
||||||
|
|
||||||
|
```
|
||||||
|
npm install
|
||||||
|
npm run scss
|
||||||
|
```
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
name: reha
|
||||||
|
type: theme
|
||||||
|
base theme: stark
|
||||||
|
description: reha drupal theme based on stark
|
||||||
|
package: reha
|
||||||
|
core: 8.x
|
||||||
|
core_version_requirement: ^8 || ^9
|
||||||
|
libraries:
|
||||||
|
- reha/global
|
||||||
|
regions:
|
||||||
|
header: 'Header'
|
||||||
|
primary_menu: 'Primary menu'
|
||||||
|
secondary_menu: 'Secondary menu'
|
||||||
|
page_top: 'Page top'
|
||||||
|
page_bottom: 'Page bottom'
|
||||||
|
featured: 'Featured'
|
||||||
|
breadcrumb: 'Breadcrumb'
|
||||||
|
content: 'Content'
|
||||||
|
sidebar_first: 'Sidebar first'
|
||||||
|
sidebar_second: 'Sidebar second'
|
||||||
|
footer: 'Footer'
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
# Main theme library.
|
||||||
|
global:
|
||||||
|
js:
|
||||||
|
js/reha.js: {}
|
||||||
|
css:
|
||||||
|
theme:
|
||||||
|
css/reha.css: {}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Functions to support theming in the reha theme.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Implements hook_preprocess_HOOK() for html.html.twig.
|
||||||
|
*/
|
||||||
|
function reha_preprocess_html(&$variables) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Implements hook_preprocess_HOOK() for page.html.twig.
|
||||||
|
*/
|
||||||
|
function reha_preprocess_page(&$variables) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Implements hook_preprocess_HOOK() for node.html.twig.
|
||||||
|
*/
|
||||||
|
function reha_preprocess_node(&$variables) {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
body{
|
||||||
|
// background-color: blue;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user