Elgg  Version 1.9
sidebar.php
Go to the documentation of this file.
1 <?php
9 $current_step = $vars['step'];
10 $steps = $vars['steps'];
11 
13 
14 echo '<ol>';
15 foreach ($steps as $index => $step) {
16  if ($index < $current_step_index) {
17  $class = 'past';
18  } elseif ($index == $current_step_index) {
19  $class = 'present';
20  } else {
21  $class = 'future';
22  }
23  $text = elgg_echo("install:$step");
24  echo "<li class=\"$class\">$text</li>";
25 }
26 echo '</ol>';
$current_step
Install sidebar.
Definition: sidebar.php:9
$step
Definition: install.php:19
if(isset($vars['id'])) $class
Definition: ajax_loader.php:19
$text
Definition: default.php:25
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$steps
Definition: sidebar.php:10
elgg echo
Translates a string.
Definition: languages.js:43
$current_step_index
Definition: sidebar.php:12
if(file_exists($welcome)) $vars
Definition: upgrade.php:93