aboutsummaryrefslogtreecommitdiff
path: root/views/failsafe/install/nav.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-01 12:13:24 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-01 12:13:24 +0000
commit6e0c8998901bcae422a41d630c8cb95441239f7b (patch)
treea46e9124d2c9ffad20a7d6d803c4406701b29c2a /views/failsafe/install/nav.php
parentda9858182b8ae223428dd802f3eeb7624dcd3645 (diff)
downloadelgg-6e0c8998901bcae422a41d630c8cb95441239f7b.tar.gz
elgg-6e0c8998901bcae422a41d630c8cb95441239f7b.tar.bz2
Refs #2129 - integrates new installer code from http://github.com/cash/Elgg - does not work yet with non-Apache web servers
git-svn-id: http://code.elgg.org/elgg/trunk@6991 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/failsafe/install/nav.php')
-rw-r--r--views/failsafe/install/nav.php35
1 files changed, 35 insertions, 0 deletions
diff --git a/views/failsafe/install/nav.php b/views/failsafe/install/nav.php
new file mode 100644
index 000000000..d6a20ea2b
--- /dev/null
+++ b/views/failsafe/install/nav.php
@@ -0,0 +1,35 @@
+<?php
+/**
+ * Navigation for installation pages
+ *
+ * @uses $vars['url'] base url of site
+ * @uses $vars['next_step'] next step as string
+ * @uses $vars['refresh'] should refresh button be shown?
+ * @uses $vars['advance'] should the next button be active?
+ */
+
+
+// has a refresh button been requested
+$refresh = '';
+if (isset($vars['refresh']) && $vars['refresh']) {
+ $refresh_text = elgg_echo('Refresh');
+ $refresh = "<a href=\"\">$refresh_text</a>";
+}
+
+// create next button and selectively disable
+$next_text = elgg_echo('next');
+$next_link = "{$vars['url']}install.php?step={$vars['next_step']}";
+$next = "<a href=\"$next_link\" disable=\"disable\">$next_text</a>";
+if (isset($vars['advance']) && !$vars['advance']) {
+ // disable the next button
+ $next = "<a class=\"disabled\">$next_text</a>";
+}
+
+
+echo <<<___END
+<div class="install_nav">
+ $next
+ $refresh
+</div>
+
+___END;