Elgg
Version 1.9
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
graphics
ajax_loader.php
Go to the documentation of this file.
1
<?php
13
$attributes
= array();
14
15
if
(isset(
$vars
[
'id'
])) {
16
$attributes
[
'id'
] =
$vars
[
'id'
];
17
}
18
19
$class
=
'elgg-ajax-loader'
;
20
if
(isset(
$vars
[
'class'
])) {
21
$class
=
"$class {$vars['class']}"
;
22
}
23
24
if
(
elgg_extract
(
'hidden'
,
$vars
,
true
)) {
25
$class
=
"$class hidden"
;
26
}
27
28
$attributes
[
'class'
] =
$class
;
29
30
$attrs
=
elgg_format_attributes
(
$attributes
);
31
32
$loader
= <<< END
33
34
<
div
$attrs
></
div
>
35
36
END;
37
38
echo
$loader
;
elgg_extract
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition:
elgglib.php:1464
div
fieldset div
Definition:
admin.php:462
$class
if(isset($vars['id'])) $class
Definition:
ajax_loader.php:19
echo
elgg echo
Translates a string.
Definition:
languages.js:43
elgg_format_attributes
elgg_format_attributes(array $attrs=array())
Converts an associative array into a string of well-formed attributes.
Definition:
output.php:118
$attrs
$attrs
Definition:
ajax_loader.php:30
$attributes
$attributes
Definition:
ajax_loader.php:13
$loader
$loader
Definition:
ajax_loader.php:32
$vars
if(file_exists($welcome)) $vars
Definition:
upgrade.php:93
Generated on Thu Oct 31 2024 00:03:33 for Elgg by
1.8.11