diff options
author | raylu <raylu@mixpanel.com> | 2011-07-03 04:30:08 -0700 |
---|---|---|
committer | raylu <raylu@mixpanel.com> | 2011-07-03 04:30:08 -0700 |
commit | b9aa2a0396aa5f7db439bc362952f7710c7c24e9 (patch) | |
tree | 8c66dcdb86b7be5234333b97f1aec704f2d37912 /views/layouts | |
parent | b24488ae40a5b503c1c9662af887d39d5868456c (diff) | |
download | otakuhub-b9aa2a0396aa5f7db439bc362952f7710c7c24e9.tar.xz |
rearrange the header and get rid of wrapper
Diffstat (limited to 'views/layouts')
-rw-r--r-- | views/layouts/default.html.php | 155 |
1 files changed, 64 insertions, 91 deletions
diff --git a/views/layouts/default.html.php b/views/layouts/default.html.php index 2ca3fc9..e7a26fa 100644 --- a/views/layouts/default.html.php +++ b/views/layouts/default.html.php @@ -1,108 +1,81 @@ <?php - -use \lithium\security\Auth; -/** - * Lithium: the most rad php framework - * - * @copyright Copyright 2010, Union of RAD (http://union-of-rad.org) - * @license http://opensource.org/licenses/bsd-license.php The BSD License - */ +use \lithium\security\Auth; ?> -<!doctype html> +<!DOCTYPE html> <html> <head> - <?php echo $this->html->charset();?> - <title>OtakuHub > <?php echo $this->title(); ?></title> - <?php echo $this->html->style(array('style', 'base', 'grid')); ?> - <?php echo $this->html->style(array('themes/light', 'themes/green')); ?> - <?php echo $this->html->style(array('prettyPhoto')); ?> - - <script src="/js/jquery-1.6.1.min.js" type="text/javascript"></script> - <?php echo $this->html->style(array('jquery.tagsinput')); ?> - <?= $this->html->script("/js/jquery.tagsinput.min.js"); ?> + <?= $this->html->charset() ?> + <title>OtakuHub > <?= $this->title() ?></title> + <?= $this->html->style(array('style', 'base', 'grid')) ?> + <?= $this->html->style(array('themes/light', 'themes/green')) ?> + <?= $this->html->style(array('prettyPhoto')) ?> + <script src="/js/jquery-1.6.1.min.js" type="text/javascript"></script> + <?= $this->html->style(array('jquery.tagsinput')) ?> + <?= $this->html->script("/js/jquery.tagsinput.min.js") ?> <script type="text/javascript" > - function clearDefault(el) { - if (el.defaultValue==el.value) el.value = "" - } - function resetValue(el) { - el.value = "Search..." - } - </script> - <?php echo $this->html->link('Icon', null, array('type' => 'icon')); ?> + function clearDefault(el) { + if (el.defaultValue == el.value) + el.value = "" + } + function resetValue(el) { + el.value = "Search..." + } + </script> + <?= $this->html->link('Icon', null, array('type' => 'icon')) ?> </head> -<!-- start header --> -<div id="wrapper"> - <header> - <!-- logo --> - <h1 id="logo"><a href="/">Kameleon</a></h1> - <!-- nav --> - - -<?php - //Get the current user from the session - $user = Auth::check('default'); - - //If their is data (the user has logged in) - if ($user) { - echo $this->_render('element', 'authnav', compact('user')); - } - else { - echo $this->_render('element', 'normalnav', compact('user')); - } - ?> - -<br class="cl" /> +<header> + <?php + $user = Auth::check('default'); + if ($user) + { + echo $this->_render('element', 'authnav', compact('user')); + } + else + { + echo $this->_render('element', 'normalnav', compact('user')); + } + ?> + <br class="cl" /> </header> - <!-- end header --> - <div id="page"> - <?php echo $this->content(); ?> - </div> - <!-- footer Start --> - <footer> - <ul class="footer-nav"> - <li><a href="index.html">Home</a> |</li> - <li><a href="about.html">About</a> |</li> - <li><a href="portfolio.html">Terms of Use</a> |</li> - <li><a href="portfolio.html">Terms of Use</a> |</li> - <li><a href="contact.html">Contact</a></li> - </ul> - <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> - <br class="cl" /> - </footer> - <!-- footer end --> - - <!-- Javascript at the bottom for fast page loading --> - <script src="/js/jquery.tools.min.js" type="text/javascript"></script> - <script src="/js/jquery.lightbox-0.5.min.js" type="text/javascript"></script> - <script src="/js/jquery.form.js" type="text/javascript"></script> - <script src="/js/cufon-yui.js" type="text/javascript"></script> - <script src="/js/Aller.font.js" type="text/javascript"></script> - <script src="/js/jquery.tipsy.js" type="text/javascript"></script> - <script src="/js/functions.js" type="text/javascript"></script> - <?= $this->html->script("/js/jquery.anchor.js"); ?> - <?= $this->html->script("/js/jquery.prettyPhoto.js"); ?> +<div id="page"> + <?= $this->content() ?> +</div> +<footer> + <p>Copyright ©2011, <a href="http://www.melenion.org">Melenion Dev Studios</a></p> + <br class="cl" /> +</footer> +<script src="/js/jquery.tools.min.js" type="text/javascript"></script> +<script src="/js/jquery.lightbox-0.5.min.js" type="text/javascript"></script> +<script src="/js/jquery.form.js" type="text/javascript"></script> +<script src="/js/cufon-yui.js" type="text/javascript"></script> +<script src="/js/Aller.font.js" type="text/javascript"></script> +<script src="/js/jquery.tipsy.js" type="text/javascript"></script> +<script src="/js/functions.js" type="text/javascript"></script> +<?= $this->html->script("/js/jquery.anchor.js"); ?> +<?= $this->html->script("/js/jquery.prettyPhoto.js"); ?> <script type="text/javascript" charset="utf-8"> - $(document).ready(function(){ - $("a[rel^='prettyPhoto']").prettyPhoto(); - }); +$(document).ready(function(){ + $("a[rel^='prettyPhoto']").prettyPhoto(); +}); </script> - <?php echo $this->scripts(); ?> - <script type="text/javascript"> - $(document).ready(function(){ - setTimeout(function(){ - $(".flash-message").fadeOut("slow", function () { - $(".flash-message").remove(); - }); }, 2000); - }); - </script> +<?= $this->scripts(); ?> +<script type="text/javascript"> +$(document).ready(function() { + setTimeout(function() { + $(".flash-message").fadeOut("slow", function () { + $(".flash-message").remove(); + }); + }, 2000); +}); +</script> - <!--[if lt IE 7 ]> - <script src="js/dd_belatedpng.js"></script> - <![endif]--> +<!--[if lt IE 7 ]> +<script src="js/dd_belatedpng.js"></script> +<![endif]--> </body> </html> |