default.html.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <?php
  2. use \lithium\security\Auth;
  3. /**
  4. * Lithium: the most rad php framework
  5. *
  6. * @copyright Copyright 2010, Union of RAD (http://union-of-rad.org)
  7. * @license http://opensource.org/licenses/bsd-license.php The BSD License
  8. */
  9. ?>
  10. <!doctype html>
  11. <html>
  12. <head>
  13. <?php echo $this->html->charset();?>
  14. <title>OtakuHub > <?php echo $this->title(); ?></title>
  15. <?php echo $this->html->style(array('style', 'base', 'grid')); ?>
  16. <?php echo $this->html->style(array('themes/light', 'themes/green')); ?>
  17. <?php echo $this->html->style(array('prettyPhoto')); ?>
  18. <script src="/js/jquery-1.6.1.min.js" type="text/javascript"></script>
  19. <?php echo $this->html->style(array('jquery.tagsinput')); ?>
  20. <?= $this->html->script("/js/jquery.tagsinput.min.js"); ?>
  21. <script type="text/javascript" >
  22. function clearDefault(el) {
  23. if (el.defaultValue==el.value) el.value = ""
  24. }
  25. function resetValue(el) {
  26. el.value = "Search..."
  27. }
  28. </script>
  29. <?php echo $this->html->link('Icon', null, array('type' => 'icon')); ?>
  30. </head>
  31. <!-- start header -->
  32. <div id="wrapper">
  33. <header>
  34. <!-- logo -->
  35. <h1 id="logo"><a href="/">Kameleon</a></h1>
  36. <!-- nav -->
  37. <?php
  38. //Get the current user from the session
  39. $user = Auth::check('default');
  40. //If their is data (the user has logged in)
  41. if ($user) {
  42. echo $this->_render('element', 'authnav', compact('user'));
  43. }
  44. else {
  45. echo $this->_render('element', 'normalnav', compact('user'));
  46. }
  47. ?>
  48. <br class="cl" />
  49. </header>
  50. <!-- end header -->
  51. <div id="page">
  52. <?php echo $this->content(); ?>
  53. </div>
  54. <br class="cl" />
  55. <!-- footer Start -->
  56. <footer>
  57. <ul class="footer-nav">
  58. <li><a href="index.html">Home</a> |</li>
  59. <li><a href="about.html">About</a> |</li>
  60. <li><a href="portfolio.html">Terms of Use</a> |</li>
  61. <li><a href="portfolio.html">Terms of Use</a> |</li>
  62. <li><a href="contact.html">Contact</a></li>
  63. </ul>
  64. <p>Copyright ©2011, <a href="http://www.melenion.org">Melenion Dev Studios</a> Designed by: <a href="http://www.mudodesigns.com">Chris Mooney</a></p>
  65. <br class="cl" />
  66. </div>
  67. </footer>
  68. <!-- footer end -->
  69. </div>
  70. <!-- Javascript at the bottom for fast page loading -->
  71. <script src="/js/jquery.tools.min.js" type="text/javascript"></script>
  72. <script src="/js/jquery.lightbox-0.5.min.js" type="text/javascript"></script>
  73. <script src="/js/jquery.form.js" type="text/javascript"></script>
  74. <script src="/js/cufon-yui.js" type="text/javascript"></script>
  75. <script src="/js/Aller.font.js" type="text/javascript"></script>
  76. <script src="/js/jquery.tipsy.js" type="text/javascript"></script>
  77. <script src="/js/functions.js" type="text/javascript"></script>
  78. <?= $this->html->script("/js/jquery.anchor.js"); ?>
  79. <?= $this->html->script("/js/jquery.prettyPhoto.js"); ?>
  80. <script type="text/javascript" charset="utf-8">
  81. $(document).ready(function(){
  82. $("a[rel^='prettyPhoto']").prettyPhoto();
  83. });
  84. </script>
  85. <?php echo $this->scripts(); ?>
  86. <script type="text/javascript">
  87. $(document).ready(function(){
  88. setTimeout(function(){
  89. $(".flash-message").fadeOut("slow", function () {
  90. $(".flash-message").remove();
  91. }); }, 2000);
  92. });
  93. </script>
  94. <!--[if lt IE 7 ]>
  95. <script src="js/dd_belatedpng.js"></script>
  96. <![endif]-->
  97. </body>
  98. </html>