Elgg  Version 3.0
filter.php
Go to the documentation of this file.
1 <?php
18 $filter = elgg_extract('filter', $vars);
19 if ($filter === false || $filter === '') {
20  // filter disabled
21  return;
22 }
23 
24 if (!isset($filter) || is_array($filter)) {
25  // make a filter menu
26  $filter = elgg_view('navigation/filter', $vars);
27 }
28 
29 if (!$filter) {
30  // no content for the filter layout
31  return;
32 }
33 
34 ?>
35 <div class="elgg-layout-filter clearfix">
36  <?= $filter ?>
37 </div>
$filter
Layout content filter.
Definition: filter.php:18
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
$vars['type']
Definition: save.php:11
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246