xref: /template/sprintdoc/tpl/main-footer.php (revision 9603fc81cf9963bd5e1c71804fc993200048a066)
1*9603fc81SAndreas Gohr<?php
2*9603fc81SAndreas Gohrglobal $conf;
3*9603fc81SAndreas Gohr
4*9603fc81SAndreas Gohrif ($conf['license']) {
5*9603fc81SAndreas Gohr    echo '<p>';
6*9603fc81SAndreas Gohr    tpl_license($img = false, $imgonly = false, $return = false, $wrap = false);
7*9603fc81SAndreas Gohr    echo '</p>';
8*9603fc81SAndreas Gohr}
9*9603fc81SAndreas Gohr
10*9603fc81SAndreas Gohrif (tpl_getConf('copyright')) {
11*9603fc81SAndreas Gohr    $copy = str_replace(
12*9603fc81SAndreas Gohr        [
13*9603fc81SAndreas Gohr            '%year%',
14*9603fc81SAndreas Gohr            '%title%',
15*9603fc81SAndreas Gohr            '%TITLE%',
16*9603fc81SAndreas Gohr        ],
17*9603fc81SAndreas Gohr        [
18*9603fc81SAndreas Gohr            date('Y'),
19*9603fc81SAndreas Gohr            $conf['title'],
20*9603fc81SAndreas Gohr            dokuwiki\Utf8\PhpString::strtoupper($conf['title']),
21*9603fc81SAndreas Gohr        ],
22*9603fc81SAndreas Gohr        tpl_getConf('copyright')
23*9603fc81SAndreas Gohr    );
24*9603fc81SAndreas Gohr    echo '<p>' . $copy . '</p>';
25*9603fc81SAndreas Gohr}
26