default.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. /**
  3. * Elgg failsafe pageshell
  4. * Special viewtype for rendering exceptions. Includes minimal code so as not to
  5. * create a "Exception thrown without a stack frame in Unknown on line 0" error
  6. *
  7. * @package Elgg
  8. * @subpackage Core
  9. *
  10. * @uses $vars['title'] The page title
  11. * @uses $vars['body'] The main content of the page
  12. */
  13. // we won't trust server configuration but specify utf-8
  14. header('Content-type: text/html; charset=utf-8');
  15. ?>
  16. <!DOCTYPE html>
  17. <html>
  18. <head>
  19. <title><?php echo $vars['title']; ?></title>
  20. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  21. <style type="text/css">
  22. body {
  23. text-align:left;
  24. margin:0;
  25. padding:0;
  26. background: #4690d6;
  27. font: 80%/1.5 "Lucida Grande", Verdana, sans-serif;
  28. color: #333333;
  29. }
  30. p {
  31. margin: 0px 0px 15px 0;
  32. }
  33. #elgg-wrapper {
  34. background:white;
  35. width:570px;
  36. margin:auto;
  37. padding:10px 40px;
  38. margin-bottom:40px;
  39. margin-top:20px;
  40. border-right: 1px solid #666666;
  41. border-bottom: 1px solid #666666;
  42. }
  43. .elgg-messages-exception {
  44. background:#FDFFC3;
  45. display:block;
  46. padding:10px;
  47. }
  48. </style>
  49. </head>
  50. <body>
  51. <div id="elgg-wrapper">
  52. <h1><?php echo $vars['title']; ?></h1>
  53. <?php echo $vars['body']; ?>
  54. </div>
  55. </body>
  56. </html>