Habari\Themes::get_active PHP Метод

get_active() публичный статический Метод

Returns the active theme information from the database
public static get_active ( $nopreview = false ) : QueryRecord
Результат QueryRecord An array of Theme data
    public static function get_active($nopreview = false)
    {
        $theme = array();
        $theme['theme_dir'] = Themes::get_active_theme_dir($nopreview);
        $data = simplexml_load_file(Utils::end_in_slash($theme['theme_dir']) . 'theme.xml');
        foreach ($data as $name => $value) {
            $theme[$name] = (string) $value;
        }
        $theme['xml'] = $data;
        return $theme;
    }