Elgg
Version 1.12
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
page
elements
title.php
Go to the documentation of this file.
1
<?php
9
$title
=
elgg_extract
(
'title'
,
$vars
);
10
if
(!is_string(
$title
) ||
$title
===
''
) {
11
return
;
12
}
13
14
$attributes
= [];
15
$class
=
elgg_extract
(
'class'
,
$vars
);
16
if
(!empty(
$class
)) {
17
$attributes
[
'class'
] =
$class
;
18
}
19
20
echo
elgg_format_element
(
'h2'
,
$attributes
,
$title
);
$class
$class
Definition:
title.php:15
elgg_format_element
elgg_format_element($tag_name, array $attributes=array(), $text= '', array $options=array())
Format an HTML element.
Definition:
output.php:215
echo
elgg echo
Translates a string.
Definition:
languages.js:48
$title
$title
Elgg title element.
Definition:
title.php:9
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:1271
$attributes
if(!is_string($title)||$title=== '') $attributes
Definition:
title.php:14
$vars
if(file_exists($welcome)) $vars
Definition:
upgrade.php:93
Generated on Sat May 18 2024 00:01:14 for Elgg by
1.8.11