theme_task_list

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

includes/theme.maintenance.inc, строка 83

Версии
6
theme_task_list($items, $active = NULL)

Возвращает темизированный список эксплуатационных задач для выполнения.

Связанные темы

▾ 2 функции вызывают theme_task_list()

install_task_list in ./install.php
Add the installation task list to the current page.
update_task_list in ./update.php
Add the update task list to the current page.

Код

<?php
function theme_task_list($items, $active = NULL) {
  $done = isset($items[$active]) || $active == NULL;
  $output = '<ol class="task-list">';
  foreach ($items as $k => $item) {
    if ($active == $k) {
      $class = 'active';
      $done = false;
    }
    else {
      $class = $done ? 'done' : '';
    }
    $output .= '<li class="'. $class .'">'. $item .'</li>';
  }
  $output .= '</ol>';
  return $output;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему