Elgg  Version 6.1
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  $image_block_vars['tag_name'] = elgg_extract('tag_name', $vars, 'div');
16 
17  $vars['image_block_vars'] = $image_block_vars;
18  $vars['title'] = elgg_extract('title', $vars, false);
19 
20  echo elgg_view('object/elements/summary', $vars);
21  return;
22 }
23 
24 $icon = (string) elgg_extract('icon', $vars);
25 $summary = (string) elgg_extract('summary', $vars);
27  return;
28 }
29 
30 $header_params = (array) elgg_extract('header_params', $vars, []);
31 $header_params['class'] = elgg_extract_class($header_params, 'elgg-listing-full-header');
32 
if(elgg_is_empty($icon)&&elgg_is_empty($summary)) $header_params
Definition: header.php:30
elgg_view_image_block(string $image, string $body, array $vars=[])
Wrapper function for the image block display pattern.
Definition: views.php:898
$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:256
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
$show_summary
Object full view header.
Definition: header.php:11
if($show_summary) $icon
Definition: header.php:24
elgg_extract_class(array $array, array|string $existing=[], string $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:279
$summary
Definition: header.php:25