$title) { $class = 'step'; if ($disableTabs || ($currentStepReached && !$edition)) { $class .= ' disabled_step'; } if ($currentStep === $task) { $currentStepReached = true; $class .= ' current_step'; } $params = ''; if ($edition && $workflowMode && !$disableTabs) { $params .= 'data-task="edit" data-step="'.$task.'"'; $class .= ' acy_button_submit'; } $title = acym_translation($title); if (!$workflowMode) { $title = ''.$title.''; } $workflow[] = '
  • '.$title.'
  • '; if (!$edition) { $workflow[] = '
  • '; } if ($task == $this->disabledAfter) { $disableTabs = true; } } if (!$edition) { array_pop($workflow); } $result = ''; if (!$edition) { $result .= '
    '; } return $result; } }