menus['site']; $builder = new ElggMenuBuilder($menu); $menu = $builder->getMenu('name'); $menu_items = $menu['default']; $featured_menu_names = elgg_get_config('site_featured_menu_names'); $dropdown_values = array(); foreach ($menu_items as $item) { $dropdown_values[$item->getName()] = $item->getTitle(); } $dropdown_values[''] = elgg_echo('none'); ?>

elgg_echo("admin:menu_items:description") )); // @todo Could probably make this number configurable for ($i=0; $i<6; $i++) { if (array_key_exists($i, $featured_menu_names)) { $current_value = $featured_menu_names[$i]; } else { $current_value = ''; } echo elgg_view('input/dropdown', array( 'options_values' => $dropdown_values, 'name' => 'featured_menu_names[]', 'value' => $current_value )); } ?>

elgg_echo("admin:add_menu_item:description") )); $custom_items = elgg_get_config('site_custom_menu_items'); $name_str = elgg_echo('name'); $url_str = elgg_echo('admin:plugins:label:website'); echo '"; ?>
elgg_echo('save')));