aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics/admin/tidypics.php
blob: d3f188741a1679b9a2c7babcc54f9f9e4226dc98 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php

global $CONFIG;

$tab = $vars['tab'];

$settingsselect = ''; 
$statsselect = '';
$imagelibselect = '';
$thumbnailselect = '';
$helpselect = '';
switch($tab) {
	case 'settings':
		$settingsselect = 'class="selected"';
		break;
	case 'stats':
		$statsselect = 'class="selected"';
		break;
	case 'imagelib':
		$imagelibselect = 'class="selected"';
		break;
	case 'thumbnail':
		$thumbnailselect = 'class="selected"';
		break;
	case 'help':
		$helpselect = 'class="selected"';
		break;
}

?>
<div class="contentWrapper">
	<div id="elgg_horizontal_tabbed_nav">
		<ul>
			<li <?php echo $settingsselect; ?>><a href="<?php echo $CONFIG->wwwroot . 'pg/photos/admin/?tab=settings'; ?>"><?php echo elgg_echo('tidypics:settings'); ?></a></li>
			<li <?php echo $statsselect; ?>><a href="<?php echo $CONFIG->wwwroot . 'pg/photos/admin/?tab=stats'; ?>"><?php echo elgg_echo('tidypics:stats'); ?></a></li>
			<li <?php echo $imagelibselect; ?>><a href="<?php echo $CONFIG->wwwroot . 'pg/photos/admin/?tab=imagelib'; ?>"><?php echo elgg_echo('tidypics:settings:image_lib'); ?></a></li>
			<li <?php echo $thumbnailselect; ?>><a href="<?php echo $CONFIG->wwwroot . 'pg/photos/admin/?tab=thumbnail'; ?>"><?php echo elgg_echo('tidypics:settings:thumbnail'); ?></a></li>
			<li <?php echo $helpselect; ?>><a href="<?php echo $CONFIG->wwwroot . 'pg/photos/admin/?tab=help'; ?>"><?php echo elgg_echo('tidypics:settings:help'); ?></a></li>
		</ul>
	</div>
	<?php
	switch($tab) {
		case 'settings':
			echo elgg_view("tidypics/admin/settings");
			break;
		case 'stats':
			echo elgg_view("tidypics/admin/stats");
			break;
		case 'imagelib':
			echo elgg_view("tidypics/admin/imagelib");
			break;
		case 'thumbnail':
			echo elgg_view("tidypics/admin/thumbnails");
			break;
		case 'help':
			echo elgg_view("tidypics/admin/help");
			break;
	}
	?>
</div>