diff --git a/dockerbuild/config/config.php b/dockerbuild/config/config.php index 2ceed2f..d5932b1 100644 --- a/dockerbuild/config/config.php +++ b/dockerbuild/config/config.php @@ -977,7 +977,7 @@ * the 'theme.controller' configuration option to a class that implements the * \SimpleSAML\XHTML\TemplateControllerInterface interface to use it. */ - //'theme.controller' => '', + 'theme.controller' => '\SimpleSAML\Module\material\MaterialController', /* * Templating options diff --git a/modules/expirychecker/public/about2expire.php b/modules/expirychecker/public/about2expire.php index 3e64a7a..7200a7b 100644 --- a/modules/expirychecker/public/about2expire.php +++ b/modules/expirychecker/public/about2expire.php @@ -55,8 +55,6 @@ $globalConfig = Configuration::getInstance(); $t = new Template($globalConfig, 'expirychecker:about2expire'); -$t->data['theme_color_scheme'] = $globalConfig->getOptionalString('theme.color-scheme', null); -$t->data['analytics_tracking_id'] = $globalConfig->getOptionalString('analytics.trackingId', ''); $t->data['form_target'] = Module::getModuleURL('expirychecker/about2expire.php'); $t->data['form_data'] = ['StateId' => $stateId]; $t->data['days_left'] = $state['daysLeft']; diff --git a/modules/expirychecker/public/expired.php b/modules/expirychecker/public/expired.php index be4bfa9..95c42d4 100644 --- a/modules/expirychecker/public/expired.php +++ b/modules/expirychecker/public/expired.php @@ -48,8 +48,6 @@ $globalConfig = Configuration::getInstance(); $t = new Template($globalConfig, 'expirychecker:expired'); -$t->data['theme_color_scheme'] = $globalConfig->getOptionalString('theme.color-scheme', null); -$t->data['analytics_tracking_id'] = $globalConfig->getOptionalString('analytics.trackingId', ''); $t->data['form_target'] = Module::getModuleURL('expirychecker/expired.php'); $t->data['form_data'] = ['StateId' => $stateId]; $t->send(); diff --git a/modules/material/src/MaterialController.php b/modules/material/src/MaterialController.php new file mode 100644 index 0000000..e3c3a5f --- /dev/null +++ b/modules/material/src/MaterialController.php @@ -0,0 +1,34 @@ +getOptionalString('theme.color-scheme', null); + $data['analytics_tracking_id'] = $globalConfig->getOptionalString('analytics.trackingId', ''); + } +} diff --git a/modules/material/themes/material/default/header.twig b/modules/material/themes/material/default/header.twig index 36adee5..1c66c1f 100644 --- a/modules/material/themes/material/default/header.twig +++ b/modules/material/themes/material/default/header.twig @@ -5,7 +5,7 @@ -{% if analytics_tracking_id is defined and analytics_tracking_id is not empty %} +{% if analytics_tracking_id is not empty %}