Elgg
Version 1.9
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
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
elgg_view_menu
elgg_view_menu($menu_name, array $vars=array())
Render a menu.
Definition:
views.php:687
echo
elgg echo
Translates a string.
Definition:
languages.js:43
$title
if(isset($vars['header'])) $title
Header for layouts.
Definition:
header.php:16
elgg_view_title
elgg_view_title($title, $vars=array())
Renders a title.
Definition:
views.php:1105
$vars
if(file_exists($welcome)) $vars
Definition:
upgrade.php:93
Generated on Sat Dec 21 2024 00:00:36 for Elgg by
1.8.11