aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/tidypics')
-rw-r--r--views/default/tidypics/admin/settings.php (renamed from views/default/tidypics/settings.php)2
-rw-r--r--views/default/tidypics/admin/stats.php (renamed from views/default/tidypics/stats.php)0
-rw-r--r--views/default/tidypics/admin/tidypics.php36
-rw-r--r--views/default/tidypics/forms/settings.php (renamed from views/default/tidypics/forms/admin.php)2
4 files changed, 38 insertions, 2 deletions
diff --git a/views/default/tidypics/settings.php b/views/default/tidypics/admin/settings.php
index 9e082d9ab..1b449cfc7 100644
--- a/views/default/tidypics/settings.php
+++ b/views/default/tidypics/admin/settings.php
@@ -21,5 +21,5 @@
<a href="<?php echo $system_url; ?>">Run Server Analysis</a>
</p>
<?php
- echo elgg_view("tidypics/forms/admin");
+ echo elgg_view("tidypics/forms/settings");
?> \ No newline at end of file
diff --git a/views/default/tidypics/stats.php b/views/default/tidypics/admin/stats.php
index 8de3415a1..8de3415a1 100644
--- a/views/default/tidypics/stats.php
+++ b/views/default/tidypics/admin/stats.php
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>
diff --git a/views/default/tidypics/forms/admin.php b/views/default/tidypics/forms/settings.php
index c52348ecc..d493a623b 100644
--- a/views/default/tidypics/forms/admin.php
+++ b/views/default/tidypics/forms/settings.php
@@ -16,7 +16,7 @@
}
if (extension_loaded('imagick'))
- $img_lib_options['ImageMagickPHP'] = 'IMagick PHP';
+ $img_lib_options['ImageMagickPHP'] = 'imagick PHP extension';
$disablefunc = explode(',', ini_get('disable_functions'));
if (is_callable('exec') && !in_array('exec',$disablefunc))