Elgg  Version 3.0
sidebar.php
Go to the documentation of this file.
1 <?php
11 if (empty($steps)) {
12  return;
13 }
14 
16 
17 echo '<ol>';
18 foreach ($steps as $index => $step) {
20  $class = 'past';
22  $class = 'present';
23  } else {
24  $class = 'future';
25  }
26  $text = elgg_echo("install:$step");
27  echo "<li class=\"$class\">$text</li>";
28 }
29 echo '</ol>';
$current_step
Install sidebar.
Definition: sidebar.php:9
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$text
Definition: default.php:28
$class
Definition: field.php:29
$steps
Definition: sidebar.php:10
elgg echo
Translates a string.
Definition: languages.js:43
if($item instanceof\ElggEntity) elseif($item instanceof\ElggRiverItem) elseif(is_callable([$item, 'getType']))
Definition: item.php:39
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1131
$step
Definition: time.php:39
$vars['type']
Definition: save.php:11
$index
Definition: gallery.php:47
if(empty($steps)) $current_step_index
Definition: sidebar.php:15