Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
if(isset($vars['id'])) $class
Definition: ajax_loader.php:19
$vars['entity']
$text
Definition: default.php:25
$steps
Definition: sidebar.php:10
$current_step_index
Definition: sidebar.php:12