Compare commits

..

No commits in common. '224c72e80a546c2ee9f5f2af2504a754fa699b8a' and '660fc8566343d4cbb1e1d6f0e9546ddf6a04c4be' have entirely different histories.

  1. 15
      olivesnews.theme
  2. 2
      templates/block/block--views-block--download-media-issue-block-1.html.twig
  3. 2
      templates/content/node--islandora-object.html.twig

15
olivesnews.theme

@ -44,20 +44,6 @@ function olivesnews_preprocess_html(&$variables) {
'href' => $variables['olivesnews_path'] . '/css/components/navigation/nav-primary-no-js.css?' . $query_string, 'href' => $variables['olivesnews_path'] . '/css/components/navigation/nav-primary-no-js.css?' . $query_string,
], ],
]; ];
// Use routeMatch — this is the modern, preferred way.
$node = \Drupal::routeMatch()->getParameter('node');
if ($node instanceof \Drupal\node\NodeInterface) {
// Add a simple node-ID class (most common format today).
$variables['attributes']['class'][] = 'node-' . $node->id();
// Optional: Add the classic Drupal 7-style class if you prefer / need it for legacy CSS.
// $variables['attributes']['class'][] = 'page-node-' . $node->id();
// Optional extras people often add at the same time:
// $variables['attributes']['class'][] = 'node-type-' . $node->bundle();
// $variables['attributes']['class'][] = 'node-' . $node->bundle();
}
} }
@ -742,4 +728,3 @@ function olivesnews_preprocess_mirador(&$variables) {
]); ]);
} }
*/ */

2
templates/block/block--views-block--download-media-issue-block-1.html.twig

@ -49,7 +49,7 @@ layout ? 'layout--' ~ layout|clean_class,
{{ title_suffix }} {{ title_suffix }}
{% block content %} {% block content %}
<details> <details>
<summary class="main">Show All Pages</summary> <summary>Show All Pages</summary>
<div{{ content_attributes.addClass('block__content') }}> <div{{ content_attributes.addClass('block__content') }}>
{{ content }} {{ content }}
</div> </div>

2
templates/content/node--islandora-object.html.twig

@ -12,7 +12,7 @@ view_mode ? 'node--view-mode-' ~ view_mode|clean_class,
] ]
%} %}
<details> <details>
<summary class="button">About</summary> <summary>About</summary>
<article{{ attributes.addClass(classes) }}> <article{{ attributes.addClass(classes) }}>
<header class="{{ layout }}"> <header class="{{ layout }}">
{{ title_prefix }} {{ title_prefix }}

Loading…
Cancel
Save