PageRenderTime 47ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/www/application/views/template.php

https://github.com/chardcastle/mysite
PHP | 80 lines | 74 code | 5 blank | 1 comment | 5 complexity | 9392a44fc41255241648fc9026acd1c3 MD5 | raw file
  1. <?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
  2. <!DOCTYPE html>
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <title>Chris Hardcastle | <?php echo html::specialchars($title) ?></title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  7. <meta name="keywords" content="<?php echo kohana::config('config.keywords');?>"/>
  8. <meta name="description" content="<?php echo kohana::config('config.description');?>"/>
  9. <link rel='stylesheet' type='text/css' media='all' href='/ui/css/custom-theme/jquery-ui-1.8rc3.custom.css' />
  10. <?php if(kohana::config('config.anywhere_key')){ ?>
  11. <script src="http://platform.twitter.com/anywhere.js?id=<?php echo kohana::config('config.anywhere_key'); ?>&amp;v=1" type="text/javascript"></script>
  12. <?php } ?>
  13. <script type="text/javascript" src="/ui/js/jquery-1.4.2.min.js"></script>
  14. <!--script type="text/javascript" src="/ui/js/jquery-ui-1.8.1.custom.min.js"></script -->
  15. <link rel='stylesheet' href='/ui/css/screen.css' type='text/css' media='Screen' />
  16. <link rel='stylesheet' href='/ui/css/handheld.css' type='text/css' media='handheld' />
  17. <link rel='shortcut icon' href='/ui/images/favicon.ico' />
  18. <!--[if IE 6]>
  19. <link rel='stylesheet' href='/ui/css/ie6.css' type='text/css' media='Screen' />
  20. <![endif]-->
  21. </head>
  22. <body>
  23. <div id="globalOuter">
  24. <div id="header">
  25. <p><?php echo $description; ?></p>
  26. <a href="/"><img src="/ui/images/title.jpg" alt="Chris Hardcastle"/></a>
  27. </div>
  28. <div id="nav">
  29. <p>
  30. <a href="#clearup" id="clearUp">Clear up</a>
  31. <a href="#clearup" id="scrambel">Scrambel</a>
  32. <a href="#clearup" id="washAndGo">Go and return</a>
  33. </p>
  34. <ul id="jsnav">
  35. </ul>
  36. </div>
  37. <?php echo $content ?>
  38. <div id="footer">
  39. <ul class="internal">
  40. <li class="first"><a href="/page/about">About</a></li>
  41. <li><a href="/page/contact">Contact</a></li>
  42. <li><a href="/page/disclaimer">Disclaimer</a></li>
  43. </ul>
  44. <br/>
  45. <ul class="external">
  46. <li><a href="http://www.twitter.com/hardcastle"><img src="http://twitter-badges.s3.amazonaws.com/follow_me-b.png" alt="Follow hardcastle on Twitter"/></a></li>
  47. <li><a href="http://hardcastle.tumblr.com"><img src="http://assets.tumblr.com/images/iframe_follow_alpha.png?5" alt="Follow my Tumblr"/></a></li>
  48. <li><a href="http://youtube.com/neofizz82"><img src="http://s.ytimg.com/yt/img/creators_corner/youtube_24x24.jpg" alt="Watch my channel"/></a></li>
  49. </ul>
  50. </div>
  51. <br/>
  52. </div>
  53. <?php if(kohana::config('config.anywhere_key')){ ?>
  54. <script type="text/javascript">
  55. twttr.anywhere(function (T) {
  56. // show hover cards
  57. T.hovercards();
  58. T("#follow-placeholder").followButton('hardcastle');
  59. });
  60. </script>
  61. <?php } ?>
  62. <?php if(Kohana::config("config.environment") == "production"){ ?>
  63. <script type="text/javascript">
  64. var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  65. document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  66. </script>
  67. <script type="text/javascript">
  68. try {
  69. var pageTracker = _gat._getTracker("UA-5641247-2");
  70. pageTracker._trackPageview();
  71. } catch(err) {}</script>
  72. <?php } ?>
  73. <script type="text/javascript" src="/ui/js/site.js"></script>
  74. </body>
  75. </html>