ZBlogPHP::LoadThemes PHP Method

LoadThemes() public method

载入主题列表
public LoadThemes ( )
    public function LoadThemes()
    {
        $allthemes = array();
        $dirs = GetDirsInDir($this->usersdir . 'theme/');
        natcasesort($dirs);
        array_unshift($dirs, $this->theme);
        $dirs = array_unique($dirs);
        foreach ($dirs as $id) {
            $app = new App();
            if ($app->LoadInfoByXml('theme', $id) == true) {
                $allthemes[] = $app;
            }
        }
        return $allthemes;
    }
ZBlogPHP