Elgg  Version master
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 
23 $icon = (string) elgg_extract('icon', $vars);
24 $summary = (string) elgg_extract('summary', $vars);
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(elgg_is_empty($icon)&&elgg_is_empty($summary)) $header_params
Definition: header.php:29
elgg_view_image_block(string $image, string $body, array $vars=[])
Wrapper function for the image block display pattern.
Definition: views.php:919
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:276
$vars
Definition: header.php:13
elgg_is_empty($value)
Check if a value isn&#39;t empty, but allow 0 and &#39;0&#39;.
Definition: input.php:176
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:254
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:177
$show_summary
Object full view header.
Definition: header.php:11
if($show_summary) $icon
Definition: header.php:23
$summary
Definition: header.php:24