Elgg
Version 2.3
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
installation
page
elements
sidebar.php
Go to the documentation of this file.
1
<?php
9
$current_step
=
$vars
[
'step'
];
10
$steps
=
$vars
[
'steps'
];
11
12
$current_step_index
= array_search(
$current_step
,
$steps
);
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
$current_step
Install sidebar.
Definition:
sidebar.php:9
elgg_echo
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition:
languages.php:21
$class
$class
Definition:
field.php:20
$vars
$vars['entity']
Definition:
plugin_settings.php:15
$text
$text
Definition:
default.php:25
$steps
$steps
Definition:
sidebar.php:10
echo
elgg echo
Translates a string.
Definition:
languages.js:48
$index
$index
Definition:
gallery.php:49
$current_step_index
$current_step_index
Definition:
sidebar.php:12
Generated on Sat Dec 21 2024 00:01:05 for Elgg by
1.8.11