Elgg  Version 2.3
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) {
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
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$class
Definition: field.php:20
$vars['entity']
$text
Definition: default.php:25
$steps
Definition: sidebar.php:10
elgg echo
Translates a string.
Definition: languages.js:48
$index
Definition: gallery.php:49
$current_step_index
Definition: sidebar.php:12