forked from giterlizzi/dokuwiki-template-bootstrap3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tpl_theme_switcher.php
executable file
·34 lines (29 loc) · 1.34 KB
/
tpl_theme_switcher.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
<?php
/**
* DokuWiki Bootstrap3 Template: Theme Switcher
*
* @link http://dokuwiki.org/template:bootstrap3
* @author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
$themes = array('cerulean', 'cosmo', 'cyborg', 'darkly', 'flatly', 'journal', 'lumen', 'paper', 'readable', 'sandstone', 'simplex', 'slate', 'spacelab', 'superhero', 'united', 'yeti');
?>
<?php if ($showThemeSwitcher && $bootstrapTheme == 'bootswatch'): ?>
<!-- theme-switcher -->
<ul class="nav navbar-nav" id="dw__themes">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><i class="glyphicon glyphicon-tint"></i> <span class="hidden-lg hidden-md hidden-sm"><?php echo tpl_getLang('themes') ?></span> <span class="caret"></span></a>
<ul class="dropdown-menu" aria-labelledby="themes">
<li class="dropdown-header"><i class="glyphicon glyphicon-tint"></i> Bootswatch Themes</li>
<?php foreach ($themes as $theme): ?>
<?php if(! in_array($theme, $hideInThemeSwitcher)): ?>
<li<?php echo ($bootswatchTheme == $theme) ? ' class="active"' : '' ?>>
<a href="?bootswatchTheme=<?php echo $theme ?>"><?php echo ucfirst($theme) ?></a>
</li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
</li>
</ul>
<!-- /theme-switcher -->
<?php endif; ?>