aboutsummaryrefslogtreecommitdiff
path: root/mod/faq/views/default/expages/menu.php
blob: a88536924cbd3bbfdb68b27e2b864e2f4acef198 (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', 'faq');
$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'));