Browse Source

view people

master
rdrew 2 weeks ago
parent
commit
e837a4ef9d
  1. 28
      .php-cs-fixer.dist.php
  2. 5
      css/components/islandora_mods.css
  3. 9
      olivesbooks.theme

28
.php-cs-fixer.dist.php

@ -0,0 +1,28 @@
<?php
declare(strict_types=1);
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
return (new Config())
->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
)
;

5
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;
}

9
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();
}
}

Loading…
Cancel
Save