aboutsummaryrefslogtreecommitdiff
path: root/views/installation/install/nav.php
blob: ca4b8a87b8f2c4f1eb72e0893aaefcdff8c2e866 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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\">$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;