placed some block on basic theme, corpus library is now loaded by entreesblock theme array
This commit is contained in:
@@ -14,8 +14,8 @@
|
||||
function edlp_corpus_page_attachments(array &$attachments) {
|
||||
//add here any conditions if you need to limit the pages
|
||||
if (\Drupal::service('path.matcher')->isFrontPage()) {
|
||||
$attachments['#attached']['library'][] = 'edlp_corpus/corpus';
|
||||
$attachments['#attached']['drupalSettings']['basepath'] = base_path();
|
||||
// $attachments['#attached']['library'][] = 'edlp_corpus/corpus';
|
||||
// $attachments['#attached']['drupalSettings']['basepath'] = base_path();
|
||||
// $attachments['#attached']['drupalSettings']['pathtoedlpcorpus'] = base_path() . drupal_get_path('module', 'edlp_corpus');
|
||||
// $attachments['#attached']['drupalSettings']['pathtotfiles'] = PublicStream::basePath();
|
||||
}
|
||||
|
||||
@@ -101,6 +101,12 @@ class BlockEntrees extends BlockBase {
|
||||
return array (
|
||||
'#theme' => 'item_list',
|
||||
'#items' => $entrees,
|
||||
'#attached'=>array(
|
||||
'library' => array('edlp_corpus/corpus'),
|
||||
'drupalSettings' => array(
|
||||
'basepath' => base_path()
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -10,3 +10,14 @@ ie_enabled_versions:
|
||||
_core:
|
||||
default_config_hash: ZV9Z7jcEXqz3IwhjCEyMDfl5AOKIFGvf5MieggpR950
|
||||
langcode: fr
|
||||
features:
|
||||
node_user_picture: false
|
||||
comment_user_picture: true
|
||||
comment_user_verification: true
|
||||
favicon: true
|
||||
logo:
|
||||
use_default: false
|
||||
path: ''
|
||||
favicon:
|
||||
use_default: false
|
||||
path: ''
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
uuid: c6003437-a86f-41f5-aa9d-e3cf89ee7bea
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- system.menu.account
|
||||
module:
|
||||
- system
|
||||
theme:
|
||||
- basic
|
||||
_core:
|
||||
default_config_hash: lp_9jG6_x-J2FD-uVf77Dhn1xr5eZ2fMqj-EM2fiRAo
|
||||
id: basic_account_menu
|
||||
theme: basic
|
||||
region: header
|
||||
weight: 0
|
||||
provider: null
|
||||
plugin: 'system_menu_block:account'
|
||||
settings:
|
||||
id: 'system_menu_block:account'
|
||||
label: 'User account menu'
|
||||
provider: system
|
||||
label_display: '0'
|
||||
level: 1
|
||||
depth: 1
|
||||
visibility: { }
|
||||
@@ -1,22 +0,0 @@
|
||||
uuid: b8421ac7-d942-4d33-a135-bf6a7e9597a4
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- system
|
||||
theme:
|
||||
- basic
|
||||
_core:
|
||||
default_config_hash: n-gMzD9v7goe52UY-PU6yRgg0EJkjEW619PCo6-DTro
|
||||
id: basic_breadcrumbs
|
||||
theme: basic
|
||||
region: content
|
||||
weight: -45
|
||||
provider: null
|
||||
plugin: system_breadcrumb_block
|
||||
settings:
|
||||
id: system_breadcrumb_block
|
||||
label: Breadcrumbs
|
||||
provider: system
|
||||
label_display: '0'
|
||||
visibility: { }
|
||||
@@ -11,7 +11,7 @@ _core:
|
||||
id: basic_help
|
||||
theme: basic
|
||||
region: help
|
||||
weight: -30
|
||||
weight: -6
|
||||
provider: null
|
||||
plugin: help_block
|
||||
settings:
|
||||
|
||||
@@ -9,7 +9,7 @@ _core:
|
||||
id: basic_local_actions
|
||||
theme: basic
|
||||
region: content
|
||||
weight: -20
|
||||
weight: -6
|
||||
provider: null
|
||||
plugin: local_actions_block
|
||||
settings:
|
||||
|
||||
@@ -9,7 +9,7 @@ _core:
|
||||
id: basic_local_tasks
|
||||
theme: basic
|
||||
region: content
|
||||
weight: -40
|
||||
weight: -6
|
||||
provider: null
|
||||
plugin: local_tasks_block
|
||||
settings:
|
||||
|
||||
@@ -9,7 +9,7 @@ _core:
|
||||
id: basic_page_title
|
||||
theme: basic
|
||||
region: content
|
||||
weight: -50
|
||||
weight: -6
|
||||
provider: null
|
||||
plugin: page_title_block
|
||||
settings:
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
uuid: d2866d14-b7ea-46ea-a92b-ec193022a03f
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- language
|
||||
theme:
|
||||
- basic
|
||||
id: selecteurdelangue
|
||||
theme: basic
|
||||
region: footer
|
||||
weight: 0
|
||||
provider: null
|
||||
plugin: 'language_block:language_interface'
|
||||
settings:
|
||||
id: 'language_block:language_interface'
|
||||
label: 'Sélecteur de langue'
|
||||
provider: language
|
||||
label_display: '0'
|
||||
visibility: { }
|
||||
@@ -0,0 +1,23 @@
|
||||
uuid: 68ad41ef-14d7-4cec-b0a1-7c23240667e9
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- system
|
||||
theme:
|
||||
- seven
|
||||
id: sitebranding
|
||||
theme: seven
|
||||
region: header
|
||||
weight: 0
|
||||
provider: null
|
||||
plugin: system_branding_block
|
||||
settings:
|
||||
id: system_branding_block
|
||||
label: 'Site branding'
|
||||
provider: system
|
||||
label_display: '0'
|
||||
use_site_logo: false
|
||||
use_site_name: true
|
||||
use_site_slogan: false
|
||||
visibility: { }
|
||||
@@ -0,0 +1,20 @@
|
||||
uuid: b1aee304-f2dc-472f-b3c7-d6df6fa30086
|
||||
langcode: fr
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- user
|
||||
theme:
|
||||
- basic
|
||||
id: userlogin_2
|
||||
theme: basic
|
||||
region: footer
|
||||
weight: 0
|
||||
provider: null
|
||||
plugin: user_login_block
|
||||
settings:
|
||||
id: user_login_block
|
||||
label: 'User login'
|
||||
provider: user
|
||||
label_display: visible
|
||||
visibility: { }
|
||||
@@ -1,2 +0,0 @@
|
||||
settings:
|
||||
label: 'User account menu'
|
||||
@@ -1,2 +0,0 @@
|
||||
settings:
|
||||
label: Breadcrumbs
|
||||
Reference in New Issue
Block a user