Elgg  Version 4.3
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>';
30 
32 foreach (_elgg_services()->translator->getInstalledTranslations() as $key => $value) {
34 }
35 
37  '#type' => 'select',
38  '#label' => elgg_echo('install:change_language'),
39  'class' => 'elgg-install-language',
40  'name' => 'installer_language',
42  'options_values' => $options_values,
43 ]);
elgg_get_current_language()
Get the current system/user language or "en".
Definition: languages.php:29
$current_step
Install sidebar.
Definition: sidebar.php:9
elgg_http_add_url_query_elements($url, array $elements)
Sets elements in a URL&#39;s query string.
Definition: elgglib.php:481
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1143
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
Definition: languages.php:18
$value
Definition: generic.php:51
$class
Definition: summary.php:44
$steps
Definition: sidebar.php:10
$options_values
Definition: sidebar.php:31
elgg_get_current_url()
Returns the current page&#39;s complete URL.
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:547
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key
Definition: summary.php:44
$step
Definition: time.php:41
if($item instanceof\ElggEntity) elseif($item instanceof\ElggRiverItem) elseif($item instanceof ElggRelationship) elseif(is_callable([$item, 'getType']))
Definition: item.php:48
_elgg_services()
Get the global service provider.
Definition: elgglib.php:638
elgg echo
Translates a string.
Definition: deprecated.js:530
$vars['head']
Definition: html.php:24
$index
Definition: gallery.php:40
$text
Definition: button.php:32
if(empty($steps)) $current_step_index
Definition: sidebar.php:15