Skip to content
Snippets Groups Projects
Unverified Commit ff1a73ab authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Allow changing or removing the header of every page by configuration.

This introduces a "theme.header" configuration option in order to achieve that.
parent a9e91370
No related branches found
No related tags found
No related merge requests found
......@@ -786,6 +786,12 @@ $config = [
*/
'theme.use' => 'default',
/*
* Set this option to the text you would like to appear at the header of each page. Set to false if you don't want
* any text to appear in the header.
*/
//'theme.header' => 'SimpleSAMLphp'
/*
* Templating options
*
......
......@@ -462,6 +462,8 @@ class Template extends Response
}
$this->data['year'] = date('Y');
$this->data['header'] = $this->configuration->getValue('theme.header', 'SimpleSAMLphp');
}
......
......@@ -3,7 +3,16 @@
<div class="left">
<div class="v-center logo-header">
<div id="logo">
<span class="simple">Simple</span><span class="saml">SAML</span><span class="simple">php</span>
{%- if header == 'SimpleSAMLphp' %}
<span class="simple">Simple</span>{# -#}
<span class="saml">SAML</span>{# -#}
<span class="simple">php</span>
{%- else %}
{{ header }}
{%- endif %}
<img class="pure-img hidden" src="" alt="LOGO">
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment