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; }