aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics/admin
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-10 06:45:50 -0500
committerCash Costello <cash.costello@gmail.com>2011-11-10 06:45:50 -0500
commit0fe5af64cf1f5d69e0253e27dec70e346814fcdf (patch)
tree529e280a12c5ce1d7d7bb8a67c3186013424d442 /views/default/tidypics/admin
parenta66f0637a0821cd2c229a2d6323c48b575cb2535 (diff)
downloadelgg-0fe5af64cf1f5d69e0253e27dec70e346814fcdf.tar.gz
elgg-0fe5af64cf1f5d69e0253e27dec70e346814fcdf.tar.bz2
moved admin settings form to a location that is better for Elgg 1.8
Diffstat (limited to 'views/default/tidypics/admin')
-rw-r--r--views/default/tidypics/admin/settings.php29
1 files changed, 17 insertions, 12 deletions
diff --git a/views/default/tidypics/admin/settings.php b/views/default/tidypics/admin/settings.php
index 6dace1830..e1d20f953 100644
--- a/views/default/tidypics/admin/settings.php
+++ b/views/default/tidypics/admin/settings.php
@@ -1,18 +1,23 @@
<?php
+/**
+ * Tidypics admin settings tab
+ */
-echo elgg_view('output/longtext', array('value' => elgg_echo("tidypics:admin:instructions")));
+$form_body = elgg_view('forms/tidypics/admin/settings', $vars);
-?>
-<p>
-<?php
-echo elgg_view('tidypics/admin/upgrade');
+$server_analysis_link = elgg_view('output/url', array(
+ 'href' => "{$vars['url']}mod/tidypics/pages/server_analysis.php",
+ 'text' => elgg_echo('tidypics:settings:server:analysis'),
+));
-$url = "{$vars['url']}mod/tidypics/pages/server_analysis.php";
-$text = elgg_echo('tidypics:settings:server:analysis');
+echo elgg_view('output/longtext', array('value' => elgg_echo('tidypics:admin:instructions')));
-echo "<a href=\"$url\">$text</a>";
-?>
-</p>
-<?php
+echo '<p>';
+echo elgg_view('tidypics/admin/upgrade');
+echo $server_analysis_link;
+echo '</p>';
-echo elgg_view("tidypics/forms/settings");
+echo elgg_view('input/form', array(
+ 'body' => $form_body,
+ 'action' => $vars['url'] . 'action/tidypics/admin/settings',
+));