aboutsummaryrefslogtreecommitdiff
path: root/views/default/admin/settings/photos.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-07-14 12:49:21 -0400
committerCash Costello <cash.costello@gmail.com>2012-07-14 12:49:21 -0400
commitf7f38da31ca53c25775d1a28668a1dd9aefd5277 (patch)
tree7d5512e5db79ab8ca589c90978e4a9052fbec70f /views/default/admin/settings/photos.php
parente52870068d67a2360769f76a13d35318a8ec14ef (diff)
downloadelgg-f7f38da31ca53c25775d1a28668a1dd9aefd5277.tar.gz
elgg-f7f38da31ca53c25775d1a28668a1dd9aefd5277.tar.bz2
cleaning up the admin area
Diffstat (limited to 'views/default/admin/settings/photos.php')
-rw-r--r--views/default/admin/settings/photos.php71
1 files changed, 71 insertions, 0 deletions
diff --git a/views/default/admin/settings/photos.php b/views/default/admin/settings/photos.php
new file mode 100644
index 000000000..cc3592f37
--- /dev/null
+++ b/views/default/admin/settings/photos.php
@@ -0,0 +1,71 @@
+<?php
+/**
+ * Admin page
+ *
+ * @author Cash Costello
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2
+ */
+
+$tab = get_input('tab', 'settings');
+
+echo elgg_view('navigation/tabs', array(
+ 'tabs' => array(
+ array(
+ 'text' => elgg_echo('settings'),
+ 'href' => '/admin/settings/photos',
+ 'selected' => ($tab == 'settings'),
+ ),
+ array(
+ 'text' => elgg_echo('tidypics:server_info'),
+ 'href' => '/admin/settings/photos?tab=server_info',
+ 'selected' => ($tab == 'server_info'),
+ ),
+ array(
+ 'text' => elgg_echo('tidypics:server_config'),
+ 'href' => '/admin/settings/photos?tab=server_config',
+ 'selected' => ($tab == 'server_config'),
+ ),
+ array(
+ 'text' => 'ImageMagick',
+ 'href' => '/admin/settings/photos?tab=image_lib',
+ 'selected' => ($tab == 'image_lib'),
+ ),
+ array(
+ 'text' => elgg_echo('tidypics:settings:thumbnail'),
+ 'href' => '/admin/settings/photos?tab=thumbnail',
+ 'selected' => ($tab == 'thumbnail'),
+ ),
+ array(
+ 'text' => elgg_echo('tidypics:settings:help'),
+ 'href' => '/admin/settings/photos?tab=help',
+ 'selected' => ($tab == 'help'),
+ ),
+ )
+));
+
+switch ($tab) {
+ case 'server_info':
+ echo elgg_view('admin/settings/photos/server_info');
+ break;
+
+ case 'server_config':
+ echo elgg_view('admin/settings/photos/server_config');
+ break;
+
+ case 'image_lib':
+ echo elgg_view('admin/settings/photos/image_lib');
+ break;
+
+ case 'thumbnail':
+ echo elgg_view('admin/settings/photos/thumbnail');
+ break;
+
+ case 'help':
+ echo elgg_view('admin/settings/photos/help');
+ break;
+
+ default:
+ case 'settings':
+ echo elgg_view('admin/settings/photos/settings');
+ break;
+}