xxb/module/common/view/selecttheme.html.php
2023-10-23 15:51:36 +08:00

24 lines
977 B
PHP

<?php
/**
* The selectTheme view of common module of XXB.
*
* @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd., www.zentao.net)
* @license ZOSL (https://zpl.pub/page/zoslv1.html)
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
* @package common
* @version $Id: selecttheme.html.php 3138 2015-11-09 07:32:18Z chujilu $
* @link https://xuanim.com
*/
?>
<?php $clientTheme = $app->cookie->theme ? $app->cookie->theme : 'default';?>
<a href='###' data-toggle='dropdown' class='dropdown-toggle'><i class='icon icon-adjust'></i> <?php echo $lang->theme?></a>
<ul class='dropdown-menu'>
<?php
$themes = $lang->themes;
foreach($themes as $themeKey => $currentTheme)
{
echo "<li class='theme-option" . ($clientTheme == $themeKey ? " active" : '') . "'><a href='javascript:selectTheme(\"$themeKey\");' data-value='" . $themeKey . "'>" . $currentTheme . "</a></li>";
}
?>
</ul>