Elgg  Version 4.3
navigation.php
Go to the documentation of this file.
1 <?php
8 $entity = elgg_extract('entity', $vars);
9 if (!$entity instanceof \ElggEntity) {
10  return;
11 }
12 
14 $params['sort_by'] = 'priority';
15 
16 $menu = elgg_view_menu('entity_navigation', $params);
17 
18 if (!$menu) {
19  return;
20 }
21 
23  'class' => 'elgg-listing-full-navigation',
24 ], $menu);
elgg_view_menu($menu, array $vars=[])
Render a menu.
Definition: views.php:468
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
Definition: output.php:135
$menu
Definition: navigation.php:16
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:547
if(!$entity instanceof\ElggEntity) $params
Definition: navigation.php:13
elgg echo
Translates a string.
Definition: deprecated.js:530
$vars['head']
Definition: html.php:24
$entity
Outputs entity previous/next navigation elements.
Definition: navigation.php:8