getPages(); $finished = isset($success); $configPages = array_slice($pages, 3, count($pages) - 4, true); $currentPos = array_search($wizard->getCurrentPage(), $pages, true); list($configPagesLeft, $configPagesRight) = array_chunk($configPages, (int)(count($configPages) / 2), true); $setupStyle = (new Style()) ->setSelector('.setup-header > .progress-bar') ->setNonce(Csp::getStyleNonce()); $visitedPages = array_keys($wizard->getPageData()); $maxProgress = max(array_merge([0], array_keys(array_filter( $pages, function ($page) use ($visitedPages) { return in_array($page->getName(), $visitedPages); } )))); $setupStyle->add( '.width-percent-10', ['width' => '10%'] )->add( '.width-percent-60', ['width' => '60%'] ); ?>
img('img/icinga-logo-big.png'); ?>

translate('Welcome', 'setup.progress'); ?>

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

translate('Modules', 'setup.progress'); ?>

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

translate('Requirements', 'setup.progress'); ?>

2 ? ' complete' : ( $maxProgress > 2 ? ' visited' : ( $currentPos === 2 ? ' active' : '' ) ); ?>
= $currentPos && $maxProgress === 2)): ?> restartForm ?>

translate('Configuration', 'setup.progress'); ?>

$page): ?> 2 ? ' active' : '') ); ?> add( '.step .left-line-' . $pos, [ 'float' => 'left', 'width' => sprintf( '%.2F%%', 100 - (count($configPagesLeft) - 1) * $lineWidth ), 'margin-right' => 0 ] ); ?>
add( '.step .left-line-' . $pos, [ 'float' => 'left', 'width' => $lineWidth . '%', 'margin-right' => '-0.1em' ] ); ?>
add( '.step .left-line-' . $pos, [ 'float' => 'left', 'width' => $lineWidth . '%' ] ); ?>
$page): ?> 2 ? ' active' : '') ); ?> add( '.step .right-line-' . $pos, [ 'float' => 'left', 'width' => $lineWidth . '%', 'margin-right' => '-0.1em' ] ); ?>
add( '.step .right-line-' . $pos, [ 'float' => 'left', 'width' => sprintf( '%.2F%%', 100 - (count($configPagesRight) - 1) * $lineWidth ), 'margin-right' => 0 ] ); ?>
add( '.step .right-line-' . $pos, [ 'float' => 'left', 'width' => $lineWidth . '%' ] ); ?>
2 || $currentPos > 2): ?> restartForm ?>

translate('Finish', 'setup.progress'); ?>

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