From e837a4ef9d05ea795d598aa1f6859633e929aeb1 Mon Sep 17 00:00:00 2001 From: rdrew Date: Mon, 22 Jun 2026 13:47:41 -0300 Subject: [PATCH] view people --- .php-cs-fixer.dist.php | 28 ++++++++++++++++++++++++++++ css/components/islandora_mods.css | 5 +++++ olivesbooks.theme | 9 +++++++++ 3 files changed, 42 insertions(+) create mode 100644 .php-cs-fixer.dist.php diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php new file mode 100644 index 0000000..4324ce9 --- /dev/null +++ b/.php-cs-fixer.dist.php @@ -0,0 +1,28 @@ +setRiskyAllowed(false) + ->setRules([ + '@auto' => true + ]) + // 💡 by default, Fixer looks for `*.php` files excluding `./vendor/` - here, you can groom this config + ->setFinder( + (new Finder()) + // 💡 root folder to check + ->in(__DIR__) + // 💡 additional files, eg bin entry file + // ->append([__DIR__.'/bin-entry-file']) + // 💡 folders to exclude, if any + // ->exclude([/* ... */]) + // 💡 path patterns to exclude, if any + // ->notPath([/* ... */]) + // 💡 extra configs + // ->ignoreDotFiles(false) // true by default in v3, false in v4 or future mode + // ->ignoreVCS(true) // true by default + ) +; diff --git a/css/components/islandora_mods.css b/css/components/islandora_mods.css index 6b919cc..6abb857 100755 --- a/css/components/islandora_mods.css +++ b/css/components/islandora_mods.css @@ -418,3 +418,8 @@ div#block-views-block-media-display-blocks-source { } } } + + +.view-solr-search-content .view-header { + display: none; +} \ No newline at end of file diff --git a/olivesbooks.theme b/olivesbooks.theme index 3ea110b..7902abc 100755 --- a/olivesbooks.theme +++ b/olivesbooks.theme @@ -44,6 +44,15 @@ function olivesbooks_preprocess_html(&$variables) { 'href' => $variables['olivesbooks_path'] . '/css/components/navigation/nav-primary-no-js.css?' . $query_string, ], ]; + + // Retrieve the node object from the current route. + $node = \Drupal::routeMatch()->getParameter('node'); + + // Check if the current route contains a node. + if ($node instanceof \Drupal\node\NodeInterface) { + // Add the class 'node-{nid}' to the body tag. + $variables['attributes']['class'][] = 'node-' . $node->id(); + } }