getPages(); $finished = isset($success); $configPages = array_slice($pages, 2, count($pages) - 4, true); $currentPos = array_search($wizard->getCurrentPage(), $pages, true); list($configPagesLeft, $configPagesRight) = array_chunk($configPages, count($configPages) / 2, true); $visitedPages = array_keys($wizard->getPageData()); $maxProgress = @max(array_keys(array_filter( $pages, function ($page) use ($visitedPages) { return in_array($page->getName(), $visitedPages); } ))); ?>
img('img/logo_icinga_big.png'); ?>

0 ? 'complete' : ( $maxProgress > 0 ? 'visited' : 'active' ); ?>

1 ? ' complete' : ( $maxProgress > 1 ? ' visited' : ( $currentPos === 1 ? ' active' : '' ) ); ?>

$page): ?> 1 ? ' active' : '') ); ?>
$page): ?> 1 ? ' active' : '') ); ?>

count($pages) - 2 ? ' complete' : ( $maxProgress > count($pages) - 2 ? ' visited' : ($currentPos === count($pages) - 2 ? ' active' : '') ); ?>

render('index/parts/finish.phtml'); ?> render('index/parts/wizard.phtml'); ?>