diff --git a/css/components/sdu_kiosk.css b/css/components/sdu_kiosk.css new file mode 100644 index 0000000..91229f2 --- /dev/null +++ b/css/components/sdu_kiosk.css @@ -0,0 +1,9 @@ +.kiosk { + div#page-wrapper { + max-width: 100%; + } + + + + +} diff --git a/olivessdu.libraries.yml b/olivessdu.libraries.yml index 91bb258..bf2c279 100755 --- a/olivessdu.libraries.yml +++ b/olivessdu.libraries.yml @@ -53,6 +53,7 @@ global-styling: css/components/wide-image.css: {} css/components/unsorted.css: {} css/components/islandora_mods.css: {} + css/components/sdu_kiosk.css: {} js: js/checkbox.js: {} diff --git a/olivessdu.theme b/olivessdu.theme index 166b7f1..311dd28 100755 --- a/olivessdu.theme +++ b/olivessdu.theme @@ -698,6 +698,21 @@ function _olivessdu_hex_to_hsl(string $hex_string) { return [$h, $s, $l]; } +/** + * Implements hook_theme_suggestions_page_alter(). + */ +function olivessdu_theme_suggestions_page_alter(array &$suggestions, array $variables) { + // Check if the current route is a node page. + if ($node = \Drupal::routeMatch()->getParameter('node')) { + // Ensure it's a node object and get the content type. + if ($node instanceof \Drupal\node\NodeInterface) { + $content_type = $node->getType(); + // Add a template suggestion like page--node--[content-type].html.twig + $suggestions[] = 'page__node__' . $content_type; + } + } +} + /* function olivessdu_preprocess_mirador(&$variables) { $block = \Drupal::service('plugin.manager.block')->createInstance($viewer . 'mirador_block', [ diff --git a/templates/kiosk/page--node--kiosk-image-slideshow.html.twig b/templates/kiosk/page--node--kiosk-image-slideshow.html.twig new file mode 100755 index 0000000..8bd809e --- /dev/null +++ b/templates/kiosk/page--node--kiosk-image-slideshow.html.twig @@ -0,0 +1,84 @@ +