nav.php 894 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * Navigation for installation pages
  4. *
  5. * @uses $vars['url'] base url of site
  6. * @uses $vars['next_step'] next step as string
  7. * @uses $vars['refresh'] should refresh button be shown?
  8. * @uses $vars['advance'] should the next button be active?
  9. */
  10. // has a refresh button been requested
  11. $refresh = '';
  12. if (isset($vars['refresh']) && $vars['refresh']) {
  13. $refresh_text = elgg_echo('install:refresh');
  14. $refresh = "<a href=\"\">$refresh_text</a>";
  15. }
  16. // create next button and selectively disable
  17. $next_text = elgg_echo('install:next');
  18. $next_link = elgg_get_site_url()."install.php?step={$vars['next_step']}";
  19. $next = "<a href=\"$next_link\">$next_text</a>";
  20. if (isset($vars['advance']) && !$vars['advance']) {
  21. // disable the next button
  22. $next = "<a class=\"elgg-state-disabled\">$next_text</a>";
  23. }
  24. echo <<<___END
  25. <div class="elgg-install-nav">
  26. $next
  27. $refresh
  28. </div>
  29. ___END;