default.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /**
  3. * Elgg install pageshell
  4. *
  5. * @package Elgg
  6. * @subpackage Core
  7. *
  8. * @uses $vars['title'] The page title
  9. * @uses $vars['body'] The main content of the page
  10. * @uses $vars['sysmessages'] Array of system status messages
  11. */
  12. $title = elgg_echo('install:title');
  13. $title .= " : {$vars['title']}";
  14. // we won't trust server configuration but specify utf-8
  15. header('Content-type: text/html; charset=utf-8');
  16. // turn off browser caching
  17. header('Pragma: public', TRUE);
  18. header("Cache-Control: no-cache, must-revalidate", TRUE);
  19. header('Expires: Fri, 05 Feb 1982 00:00:00 -0500', TRUE);
  20. ?>
  21. <!DOCTYPE html>
  22. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  23. <head>
  24. <title><?php echo $title; ?></title>
  25. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  26. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
  27. <link rel="SHORTCUT ICON" href="<?php echo elgg_get_site_url(); ?>_graphics/favicon.ico" />
  28. <link rel="stylesheet" href="<?php echo elgg_get_site_url(); ?>install/css/install.css" type="text/css" />
  29. <script type="text/javascript" src="<?php echo elgg_get_site_url(); ?>vendors/jquery/jquery-1.11.0.min.js"></script>
  30. <script type="text/javascript" src="<?php echo elgg_get_site_url(); ?>install/js/install.js"></script>
  31. </head>
  32. <body>
  33. <div class="elgg-page">
  34. <header class="elgg-page-header" role="banner">
  35. <?php echo elgg_view('page/elements/header', $vars); ?>
  36. </header>
  37. <div class="elgg-page-body">
  38. <div class="elgg-layout">
  39. <aside class="elgg-sidebar" role="complementary">
  40. <?php echo elgg_view('page/elements/sidebar', $vars); ?>
  41. </aside>
  42. <main class="elgg-body" role="main">
  43. <h1><?php echo $vars['title']; ?></h1>
  44. <?php echo elgg_view('page/elements/messages', array('object' => $vars['sysmessages'])); ?>
  45. <?php echo $vars['body']; ?>
  46. </main>
  47. </div>
  48. </div>
  49. <footer class="elgg-page-footer" role="contentinfo">
  50. <?php echo elgg_view('page/elements/footer'); ?>
  51. </footer>
  52. </div>
  53. </body>
  54. </html>