forked from giterlizzi/dokuwiki-template-bootstrap3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tpl_badges.php
executable file
·44 lines (33 loc) · 1.67 KB
/
tpl_badges.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* DokuWiki Bootstrap3 Template: Badges
*
* @link http://dokuwiki.org/template:bootstrap3
* @author Giuseppe Di Terlizzi <[email protected]>
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// must be run from within DokuWiki
if (!defined('DOKU_INC')) die();
if (bootstrap3_conf('showBadges')):
$target = ($conf['target']['extern']) ? 'target="'.$conf['target']['extern'].'"' : '';
$dw_path = dirname(tpl_basedir());
?>
<div class="text-center hidden-print">
<?php echo tpl_license('button', true, false, false); // license button, no wrapper ?>
<a href="http://getbootstrap.com" title="Built with Bootstrap 3" <?php echo $target ?>>
<img src="<?php echo tpl_basedir(); ?>images/button-bootstrap3.png" width="80" height="15" alt="Built with Bootstrap 3" />
</a>
<a href="http://www.php.net" title="Powered by PHP" <?php echo $target ?>>
<img src="<?php echo $dw_path ?>/dokuwiki/images/button-php.gif" width="80" height="15" alt="Powered by PHP" />
</a>
<a href="http://validator.w3.org/check/referer" title="Valid HTML5" <?php echo $target ?>>
<img src="<?php echo $dw_path ?>/dokuwiki/images/button-html5.png" width="80" height="15" alt="Valid HTML5" />
</a>
<a href="http://jigsaw.w3.org/css-validator/check/referer?profile=css3" title="Valid CSS" <?php echo $target ?>>
<img src="<?php echo $dw_path ?>/dokuwiki/images/button-css.png" width="80" height="15" alt="Valid CSS" />
</a>
<a href="http://dokuwiki.org/" title="Driven by DokuWiki" <?php echo $target ?>>
<img src="<?php echo $dw_path ?>/dokuwiki/images/button-dw.png" width="80" height="15" alt="Driven by DokuWiki" />
</a>
</div>
<?php endif; ?>