diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-08-25 23:36:20 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-08-25 23:36:20 +0000 |
commit | 53349bde3438dfccfc6c32c94e92aca730cc1049 (patch) | |
tree | c75444e2c2810a8d1ec026dce8c9472ffb2fa61b /views/default/tidypics/admin/tidypics.php | |
parent | 31a654b61284e0f848645aeb436d0335bc765abf (diff) | |
download | elgg-53349bde3438dfccfc6c32c94e92aca730cc1049.tar.gz elgg-53349bde3438dfccfc6c32c94e92aca730cc1049.tar.bz2 |
restructured admin views
Diffstat (limited to 'views/default/tidypics/admin/tidypics.php')
-rw-r--r-- | views/default/tidypics/admin/tidypics.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/views/default/tidypics/admin/tidypics.php b/views/default/tidypics/admin/tidypics.php new file mode 100644 index 000000000..7d6aa220c --- /dev/null +++ b/views/default/tidypics/admin/tidypics.php @@ -0,0 +1,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/admin/settings"); + break; + case 'stats': + echo elgg_view("tidypics/admin/stats"); + break; + } +?> +</div> |