Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
page
layouts
admin.php
Go to the documentation of this file.
1
<?php
10
$class
=
elgg_extract_class
(
$vars
, [
11
'elgg-layout'
,
12
'elgg-layout-admin'
,
13
]);
14
unset(
$vars
[
'class'
]);
15
16
$vars
[
'sidebar'
] =
elgg_view
(
'admin/sidebar'
,
$vars
);
17
18
$sidebar
=
elgg_view
(
'page/layouts/elements/sidebar'
,
$vars
);
19
$body
=
elgg_view
(
'page/layouts/elements/body'
,
$vars
);
20
21
$class
[] =
$sidebar
?
'elgg-layout-one-sidebar'
:
'elgg-layout-one-column'
;
22
23
echo
elgg_format_element
(
'div'
, [
'class'
=>
$class
],
$sidebar
.
$body
);
$body
$body
Definition:
admin.php:37
elgg_view
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition:
views.php:156
$vars
$vars['sidebar']
Definition:
admin.php:16
$class
$class
Elgg Admin Area Canvas.
Definition:
admin.php:10
$sidebar
$sidebar
Definition:
admin.php:18
elgg_format_element
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition:
output.php:145
elgg_extract_class
elgg_extract_class(array $array, array|string $existing=[], string $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition:
elgglib.php:277
Generated on Sat Dec 21 2024 00:02:53 for Elgg by
1.8.11