Elgg  Version 3.0
nav.php
Go to the documentation of this file.
1 <?php
12 // has a refresh button been requested
13 $refresh = '';
14 if (isset($vars['refresh']) && $vars['refresh']) {
15  $refresh_text = elgg_echo('install:refresh');
16  $refresh = "<a href=\"\" class=\"elgg-button elgg-button-action\">$refresh_text</a>";
17 }
18 
19 // create next button and selectively disable
20 $next_text = elgg_echo('install:next');
21 $next_link = elgg_get_site_url()."install.php?step={$vars['next_step']}";
22 $next = "<a href=\"$next_link\" class=\"elgg-button elgg-button-submit\">$next_text</a>";
23 if (isset($vars['advance']) && !$vars['advance']) {
24  // disable the next button
25  $next = "<a class=\"elgg-button elgg-button-submit elgg-state-disabled\">$next_text</a>";
26 }
27 
28 
29 echo <<<___END
30 <div class="elgg-install-nav">
31  $refresh
32  $next
33 </div>
34 
35 ___END;
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg echo
Translates a string.
Definition: languages.js:43
elgg_get_site_url()
Get the URL for the current (or specified) site, ending with "/".
$vars['type']
Definition: save.php:11