Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
site.php
Go to the documentation of this file.
1 <?php
9 $default_items = elgg_extract('default', $vars['menu'], array());
10 $more_items = elgg_extract('more', $vars['menu'], array());
11 
12 echo '<ul class="elgg-menu elgg-menu-site elgg-menu-site-default clearfix">';
13 foreach ($default_items as $menu_item) {
14  echo elgg_view('navigation/menu/elements/item', array('item' => $menu_item));
15 }
16 
18  echo '<li class="elgg-more">';
19 
20  $more = elgg_echo('more');
21  echo "<a href=\"#\">$more</a>";
22 
23  echo elgg_view('navigation/menu/elements/section', array(
24  'class' => 'elgg-menu elgg-menu-site elgg-menu-site-more',
25  'items' => $more_items,
26  ));
27 
28  echo '</li>';
29 }
30 echo '</ul>';
$more_items
Definition: site.php:10
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$vars['entity']
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:342
$default_items
Site navigation menu.
Definition: site.php:9
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:1310