aboutsummaryrefslogtreecommitdiff
path: root/mod/embed/views/default/navigation/menu/embed.php
blob: 1a6a18f05b4eb1dad3a8beddfd88837f9a1b2c1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
/**
 * Embed tabs
 *
 * @uses $vars['menu']['default']
 */

$tabs = array();
foreach ($vars['menu']['default'] as $menu_item) {
	$tabs[] = array(
		'title' => $menu_item->getText(),
		'url' => 'embed/tab/' . $menu_item->getName(),
		'url_class' => 'embed-section',
		'selected' => $menu_item->getSelected(),
	);
}

echo elgg_view('navigation/tabs', array('tabs' => $tabs));