1<?php
2/**
3 * Template footer, included in the main and detail files
4 */
5
6// must be run from within DokuWiki
7if (!defined('DOKU_INC')) die();
8
9/* Check for logged in user name */
10$loginname = "";
11if (!empty($conf["useacl"])) {
12    if (isset($_SERVER["REMOTE_USER"]) && //no empty() but isset(): "0" may be a valid username...
13        $_SERVER["REMOTE_USER"] !== ""){
14        $loginname = $_SERVER["REMOTE_USER"]; //$INFO["client"] would not work here (-> e.g. when
15                                              //current IP differs from the one used to login)
16    }
17}
18
19
20?>
21        <footer>
22            <nav class="footer_actions_left"><?php
23                echo "[&#160;";
24                if (tpl_getConf('footer_start_link')) {
25                    tpl_link(wl(), 'Startseite');
26                    echo "&#160;|&#160;";
27                }
28                tpl_actionlink("top");
29                if (actionOK("index")) {
30                    echo "&#160;|&#160;";
31                    tpl_actionlink("index");
32                }
33                echo "&#160;]";
34            ?></nav>
35
36            <nav class="footer_actions_right"><?php if ($conf['useacl']) {
37                echo "[&#160;";
38                if (!empty($INFO["isadmin"])) {
39                    if (actionOK("admin")) {
40                        tpl_actionlink("admin");
41                        echo "&#160;|&#160;";
42                    }
43                    if (actionOK("media")) {
44                        tpl_actionlink("media");
45                        echo "&#160;|&#160;";
46                    }
47                }
48
49                tpl_actionlink("login"); //"login" handles both login/logout
50                echo "&#160;]";
51            } ?></nav>
52            <div class="clearer"></div>
53            <div class="licence"><?php if ($customLicence == '') { tpl_license(''); } else { echo $customLicence; } ?></div>
54            <?php if (tpl_getConf('footer_buttons')): ?>
55            <div class="buttons">
56                <?php
57                    if ($customLicence == '') {
58                        tpl_license('button', true, false, false); // license button, no wrapper
59                    }
60                    $target = ($conf['target']['extern']) ? 'target="'.$conf['target']['extern'].'"' : '';
61                ?>
62                <a href="http://www.dokuwiki.org/donate" title="Donate" <?php echo $target?>><img
63                    src="<?php echo tpl_basedir(); ?>images/button-donate.gif" width="80" height="15" alt="Donate" /></a>
64                <a href="http://www.php.net" title="Powered by PHP" <?php echo $target?>><img
65                    src="<?php echo tpl_basedir(); ?>images/button-php.gif" width="80" height="15" alt="Powered by PHP" /></a>
66                <a href="http://validator.w3.org/check/referer" title="Valid HTML5" <?php echo $target?>><img
67                    src="<?php echo tpl_basedir(); ?>images/button-html5.png" width="80" height="15" alt="Valid HTML5" /></a>
68                <a href="http://jigsaw.w3.org/css-validator/check/referer?profile=css3" title="Valid CSS" <?php echo $target?>><img
69                    src="<?php echo tpl_basedir(); ?>images/button-css.png" width="80" height="15" alt="Valid CSS" /></a>
70                <a href="http://dokuwiki.org/" title="Driven by DokuWiki" <?php echo $target?>><img
71                    src="<?php echo tpl_basedir(); ?>images/button-dw.png" width="80" height="15" alt="Driven by DokuWiki" /></a>
72            </div><?php endif; ?>
73
74        </footer>
75