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

Make the current year available to twig templates.

This way we can forget about updating the copyright notice every year.
parent 50dc6f3e
No related branches found
No related tags found
No related merge requests found
...@@ -434,6 +434,8 @@ class Template extends Response ...@@ -434,6 +434,8 @@ class Template extends Response
if (!isset($this->data['pagetitle'])) { if (!isset($this->data['pagetitle'])) {
$this->data['pagetitle'] = 'SimpleSAMLphp'; $this->data['pagetitle'] = 'SimpleSAMLphp';
} }
$this->data['year'] = date('Y');
} }
......
<div id="footer"> <div id="footer">
<div class="wrap"> <div class="wrap">
<div class="center copyrights dark-bg"> <div class="center copyrights dark-bg">
<br>Copyright © 2007-2018 <br>Copyright © 2007-{{ year }}
<a href="https://simplesamlphp.org/">SimpleSAMLphp</a> <a href="https://simplesamlphp.org/">SimpleSAMLphp</a>
</div> </div>
<div class="logo-footer-right"> <div class="logo-footer-right">
<div class="logo-footer"> <div class="logo-footer">
<img class="pure-img" src="/{{ baseurlpath }}resources/icons/ssplogo-fish-small.png" alt="Small fish logo"> <img class="pure-img" src="/{{ baseurlpath }}resources/icons/ssplogo-fish-small.png" alt="Small fish logo">
</div>
</div>
</div> </div>
</div>
</div> </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