Elgg  Version 3.0
header.php
Go to the documentation of this file.
1 <?php
11 $show_summary = (bool) elgg_extract('show_summary', $vars, false);
12 if ($show_summary) {
13  $image_block_vars = (array) elgg_extract('image_block_vars', $vars, []);
14  $image_block_vars['class'] = elgg_extract_class($image_block_vars, ['elgg-listing-full-header']);
15 
16  $vars['image_block_vars'] = $image_block_vars;
17  $vars['title'] = elgg_extract('title', $vars, false);
18 
19  echo elgg_view('object/elements/summary', $vars);
20  return;
21 }
22 
24 $summary = elgg_extract('summary', $vars);
25 if (!$icon && !$summary) {
26  return;
27 }
28 
29 $header_params = (array) elgg_extract('header_params', $vars, []);
30 $header_params['class'] = elgg_extract_class($header_params, 'elgg-listing-full-header');
31 
if(!$icon &&!$summary) $header_params
Definition: header.php:29
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:1153
elgg_view_image_block($image, $body, $vars=[])
Wrapper function for the image block display pattern.
Definition: views.php:1177
elgg echo
Translates a string.
Definition: languages.js:43
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:1131
$show_summary
Object full view header.
Definition: header.php:11
if($show_summary) $icon
Definition: header.php:23
$vars['type']
Definition: save.php:11
$summary
Definition: header.php:24
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246