<?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>
