Think/View.php
private function getTemplateTheme()
    {
        // 指定模板主题
        if ($this->theme) {
            $_theme = $this->theme;
        } else {
            /* 获取模板主题名称 */
            $_theme = C('DEFAULT_THEME');
            // 自动侦测模板主题
            if (C('TMPL_DETECT_THEME')) {
                $t = C('VAR_TEMPLATE');
                if (isset($_GET[$t])) {
                    $_theme = $_GET[$t];
                } elseif (cookie('think_template')) {
                    $_theme = cookie('think_template');
                }
                if (!in_array($_theme, explode(',', C('THEME_LIST')))) {
                    $_theme = C('DEFAULT_THEME');
                }
                cookie('think_template', $_theme, 864000);
            }
        }
        // 当前模板主题名称
        defined('THEME_NAME') || define('THEME_NAME', $_theme);

        return $_theme ? $_theme.'/' : '';
    }
private function getTemplateTheme()
    {
        // 指定模板主题
        if ($this->theme) {
            $_theme = $this->theme;
        } else {
            /* 获取模板主题名称 */
            $_theme = C('DEFAULT_THEME');
            // 自动侦测模板主题
            if (C('TMPL_DETECT_THEME')) {
                $t = C('VAR_TEMPLATE');
                if (isset($_GET[$t])) {
                    $_theme = $_GET[$t];
                } elseif (cookie('think_template')) {
                    $_theme = cookie('think_template');
                }
                if (!in_array($_theme, explode(',', C('THEME_LIST')))) {
                    $_theme = C('DEFAULT_THEME');
                }
                cookie('think_template', $_theme, 864000);
            }
        }
        // 当前模板主题名称
        defined('THEME_NAME') || define('THEME_NAME', $_theme);

        return $_theme ? $_theme.'/' : '';
    }
获取当前的模板主题
@return string