aboutsummaryrefslogtreecommitdiff
path: root/views/failsafe/install/sidebar.php
blob: 8136cd898940203abf1a0e08b345f540999986de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
 * Install sidebar
 *
 * @uses $vars['step'] Current step
 * @uses $vars['steps'] Array of steps
 */

$current_step = $vars['step'];
$steps = $vars['steps'];

$current_step_index = array_search($current_step, $steps);

echo '<ol>';
foreach ($steps as $index => $step) {
	if ($index < $current_step_index) {
		$class = 'past';
	} elseif ($index == $current_step_index) {
		$class = 'present';
	} else {
		$class = 'future';
	}
	$text = elgg_echo("install:$step");
	echo "<li class=\"$class\">$text</li>";
}
echo '</ol>';