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

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

Returns theme information for the active theme -- dir, path, theme.xml, screenshot url
public static get_active_data ( $nopreview = false ) : array
Результат array An array of Theme data
    public static function get_active_data($nopreview = false)
    {
        $all_data = Themes::get_all_data();
        $active_theme_dir = basename(Themes::get_active_theme_dir($nopreview));
        $active_data = $all_data[$active_theme_dir];
        return $active_data;
    }