Elgg  Version master
sidebar.php
Go to the documentation of this file.
1 <?php
11 if (empty($steps)) {
12  return;
13 }
14 
16 
18 foreach ($steps as $index => $step) {
20  $class = 'past';
22  $class = 'present';
23  } else {
24  $class = 'future';
25  }
26 
27  $list_items .= elgg_format_element('li', ['class' => $class], elgg_echo("install:{$step}"));
28 }
29 
30 echo elgg_format_element('ol', [], $list_items);
31 
33 foreach (_elgg_services()->translator->getInstalledTranslations() as $key => $value) {
35 }
36 
37 echo elgg_view_field([
38  '#type' => 'select',
39  '#label' => elgg_echo('install:change_language'),
40  'class' => 'elgg-install-language',
41  'name' => 'installer_language',
43  'options_values' => $options_values,
44 ]);
elgg_get_current_language()
Get the current system/user language or &#39;en&#39;.
Definition: languages.php:27
$current_step
Install sidebar.
Definition: sidebar.php:9
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1112
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
if($item instanceof\ElggEntity) elseif($item instanceof\ElggRiverItem) elseif($item instanceof\ElggRelationship) elseif(is_callable([$item, 'getType']))
Definition: item.php:48
$value
Definition: generic.php:51
$class
Definition: summary.php:44
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:254
$steps
Definition: sidebar.php:10
$options_values
Definition: sidebar.php:32
elgg_get_current_url()
Returns the current page&#39;s complete URL.
$list_items
Definition: sidebar.php:17
elgg_http_add_url_query_elements(string $url, array $elements)
Sets elements in a URL&#39;s query string.
Definition: elgglib.php:181
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key
Definition: summary.php:44
$step
Definition: time.php:40
$vars
Definition: theme.php:5
_elgg_services()
Get the global service provider.
Definition: elgglib.php:351
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145
$index
Definition: gallery.php:40
if(empty($steps)) $current_step_index
Definition: sidebar.php:15