Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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 
16 if (!empty($class)) {
17  $attributes['class'] = $class;
18 }
19 
$vars['entity']
$class
Definition: title.php:15
elgg_format_element($tag_name, array $attributes=array(), $text= '', array $options=array())
Format an HTML element.
Definition: output.php:218
$title
Elgg title element.
Definition: title.php:9
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:1310
if(!is_string($title)||$title=== '') $attributes
Definition: title.php:14