aboutsummaryrefslogtreecommitdiff
path: root/views/default/admin/tidypics.php
blob: bef2da389a6b9256218632453687c1134c197771 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php

	global $CONFIG;
	
	$tab = $vars['tab'];
	
	$settingsselect = ''; 
	$statsselect = '';
	switch($tab) {
		case 'settings':
			$settingsselect = 'class="selected"';
			break;
		case 'stats':
			$statsselect = 'class="selected"';
			break;
	}
	
?>
<div class="contentWrapper">
	<div id="elgg_horizontal_tabbed_nav">
		<ul>
			<li <?php echo $settingsselect; ?>><a href="<?php echo $CONFIG->wwwroot . 'mod/tidypics/pages/admin.php?tab=settings'; ?>"><?php echo elgg_echo('tidypics:settings'); ?></a></li>
			<li <?php echo $statsselect; ?>><a href="<?php echo $CONFIG->wwwroot . 'mod/tidypics/pages/admin.php?tab=stats'; ?>"><?php echo elgg_echo('tidypics:stats'); ?></a></li>
		</ul>
	</div>
<?php
	switch($tab) {
		case 'settings':
			echo elgg_view("tidypics/settings");
			break;
		case 'stats':
			echo elgg_view("tidypics/stats");
			break;
	}
?>
</div>