From 92113cc4094e15f558df3601d4253cff48dba7ee Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Fri, 11 Sep 2009 13:56:56 +0000 Subject: [PATCH] - Patch #513940 by Everett Zufelt: improved accessibility of the installer. --- includes/theme.maintenance.inc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/includes/theme.maintenance.inc b/includes/theme.maintenance.inc index a13c5330e0ab..701908639f44 100644 --- a/includes/theme.maintenance.inc +++ b/includes/theme.maintenance.inc @@ -87,16 +87,24 @@ function _theme_load_offline_registry($theme, $base_theme = NULL, $theme_engine */ function theme_task_list($items, $active = NULL) { $done = isset($items[$active]) || $active == NULL; - $output = '<ol class="task-list">'; + $output = '<h2 class="element-invisible">Installation tasks</h2>'; + $output .= '<ol class="task-list">'; + foreach ($items as $k => $item) { if ($active == $k) { $class = 'active'; + $status = '(' . t('active') . ')'; $done = FALSE; } else { $class = $done ? 'done' : ''; + $status = $done ? '(' . t('done') . ')' : ''; } - $output .= '<li class="' . $class . '">' . $item . '</li>'; + $output .= '<li'; + $output .= ($class ? ' class="' . $class . '"' : '') . '>'; + $output .= $item; + $output .= ($status ? '<span class="element-invisible">' . $status . '</span>' : ''); + $output .= '</li>'; } $output .= '</ol>'; return $output; -- GitLab