Elgg  Version 3.0
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);
if(!($entity instanceof\ElggEntity)) $params
Definition: navigation.php:13
elgg_view_menu($menu, array $vars=[])
Render a menu.
Definition: views.php:755
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
Definition: output.php:168
$menu
Definition: navigation.php:16
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
$vars['type']
Definition: save.php:11
$entity
Outputs entity previous/next navigation elements.
Definition: navigation.php:8