From 7f4bbd42c24bf7b8880cd971ed61ec6bc1ab19e2 Mon Sep 17 00:00:00 2001 From: Dominik Frantisek Bucik <bucik.dominik@gmail.com> Date: Fri, 29 Apr 2022 12:33:54 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Fixed=20missing=20Head=20?= =?UTF-8?q?inject?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/elixir/default/includes/header.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/themes/elixir/default/includes/header.php b/themes/elixir/default/includes/header.php index c9a7826..5429f41 100644 --- a/themes/elixir/default/includes/header.php +++ b/themes/elixir/default/includes/header.php @@ -48,9 +48,21 @@ header('X-Frame-Options: SAMEORIGIN'); <link href="<?php echo Module::getModuleUrl('elixir/res/css/cmservice.css'); ?>" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="/<?php echo $this->data['baseurlpath']; ?>resources/script.js"></script> <title><?php echo (array_key_exists('header', $this->data)) ? $this->data['header'] : 'SimpleSAMLphp'; ?></title> + <?php + if (!empty($this->data['htmlinject']['htmlContentHead'])) { + foreach ($this->data['htmlinject']['htmlContentHead'] as $c) { + echo $c; + } + } + ?> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet"> + <?php + if (array_key_exists('head', $this->data)) { + echo '<!-- head -->' . $this->data['head'] . '<!-- /head -->'; + } + ?> </head> <body> <div class="row"> -- GitLab