aboutsummaryrefslogtreecommitdiff
path: root/mod/externalpages/views/default/expages/menu.php
blob: 6ed521629edf8c18abdc62ec0c573c038069f95a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/**
 * External pages menu
 *
 * @uses $vars['type']
 */

$type = $vars['type'];

 //set the url
 $url = $vars['url'] . "admin/site/expages?type=";
 
$pages = array('about', 'terms', 'privacy');
$tabs = array();
foreach ($pages as $page) {
	$tabs[] = array(
		'title' => elgg_echo("expages:$page"),
		'url' => "admin/appearance/expages?type=$page",
		'selected' => $page == $type,
	);
}

echo elgg_view('navigation/tabs', array('tabs' => $tabs, 'class' => 'elgg-form-settings'));