PageRenderTime 57ms CodeModel.GetById 30ms RepoModel.GetById 0ms app.codeStats 0ms

/public/templates/main.tpl.php

https://github.com/IAmCorbin/MooKit
PHP | 58 lines | 46 code | 12 blank | 0 comment | 9 complexity | 72f545176ca23c0b49b76a2916d092aa MD5 | raw file
Possible License(s): GPL-3.0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3. <head>
  4. <!--
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 3 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. -->
  16. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  17. <title><?=$title ?></title>
  18. <? if(isset($styles)) foreach($styles as $style) echo $style."\n\t"; ?>
  19. <? if(isset($scripts)) foreach($scripts as $script) echo $script."\n\t"; ?>
  20. </head>
  21. <body>
  22. <div id="userInfo">
  23. <? if(isset($userInfo)) echo$userInfo; ?>
  24. </div>
  25. <div id="mainNav">
  26. <? if(isset($Menu)) $Menu->output('span','span','link','sublink'); // NAVIGATION BAR // ?>
  27. </div>
  28. <div style="display: none;" id="outdatedBrowserError"></div>
  29. <? if(isset($loginTpl)) echo $loginTpl; // LOGIN FORM // ?>
  30. <? if(isset($signupTpl)) echo $signupTpl; // SIGNUP FORM //?>
  31. <div id="content">
  32. <?= $contentTpl // CONTENT // ?>
  33. </div>
  34. <? if(isset($debugTpl)) echo $debugTpl; ?>
  35. <!-- CODE VALIDATION BADGES -->
  36. <p id="w3_validated">
  37. <a href="http://validator.w3.org/check?uri=referer">
  38. <img src="http://www.w3.org/Icons/valid-xhtml10-blue" alt="Valid XHTML 1.0 Strict" height="31" width="88" />
  39. </a>
  40. </p>
  41. <!-- Flag to tell JavaScript the user is logged in -->
  42. <? if( Security::clearance() ) {?>
  43. <div id="LOGGEDIN"></div>
  44. <? } ?>
  45. </body>
  46. </html>