Elgg
Version 2.3
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
;
$class
if(isset($vars['id'])) $class
Definition:
ajax_loader.php:19
$vars
$vars['entity']
Definition:
plugin_settings.php:15
div
fieldset div
Definition:
admin.css.php:485
echo
elgg echo
Translates a string.
Definition:
languages.js:48
elgg_format_attributes
elgg_format_attributes(array $attrs=array())
Converts an associative array into a string of well-formed HTML/XML attributes Returns a concatenated...
Definition:
output.php:129
elgg_extract
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:1375
$attrs
$attrs
Definition:
ajax_loader.php:30
$attributes
$attributes
Definition:
ajax_loader.php:13
$loader
$loader
Definition:
ajax_loader.php:32
Generated on Thu Oct 31 2024 00:06:13 for Elgg by
1.8.11