aboutsummaryrefslogtreecommitdiff
path: root/mod/embed/views/default/navigation/menu/embed.php
blob: bca673f592c161f8358a9ebc98feeabd52320ab9 (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(),
		'link_class' => 'embed-section',
		'selected' => $menu_item->getSelected(),
	);
}

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