Elgg
Version 2.3
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
page
layouts
elements
header.php
Go to the documentation of this file.
1
<?php
9
if
(isset(
$vars
[
'header'
])) {
10
echo
'<div class="elgg-head clearfix">'
;
11
echo
$vars
[
'header'
];
12
echo
'</div>'
;
13
return
;
14
}
15
16
$title
=
elgg_extract
(
'title'
,
$vars
,
''
);
17
18
$buttons
=
elgg_view_menu
(
'title'
, array(
19
'sort_by'
=>
'priority'
,
20
'class'
=>
'elgg-menu-hz'
,
21
));
22
23
if
(
$title
||
$buttons
) {
24
echo
'<div class="elgg-head clearfix">'
;
25
// @todo .elgg-heading-main supports action buttons - maybe rename class name?
26
echo
$buttons
;
27
echo
elgg_view_title
(
$vars
[
'title'
], array(
'class'
=>
'elgg-heading-main'
));
28
echo
'</div>'
;
29
}
$buttons
$buttons
Definition:
header.php:18
$vars
$vars['entity']
Definition:
plugin_settings.php:15
$title
if(!($widget instanceof\ElggWidget)) $title
Definition:
header.php:13
echo
elgg echo
Translates a string.
Definition:
languages.js:48
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
elgg_view_menu
elgg_view_menu($menu, array $vars=array())
Render a menu.
Definition:
views.php:775
elgg_view_title
elgg_view_title($title, array $vars=array())
Renders a title.
Definition:
views.php:1160
Generated on Sat Dec 21 2024 00:01:05 for Elgg by
1.8.11