Skip to content

Instantly share code, notes, and snippets.

@m4rcsch
Created November 2, 2011 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save m4rcsch/1333688 to your computer and use it in GitHub Desktop.
Save m4rcsch/1333688 to your computer and use it in GitHub Desktop.
boilerplated lithium layot (Boilerplate 2.0)
<?php
/**
* Lithium: the most rad php framework
*
* @copyright Copyright 2011, Union of RAD (http://union-of-rad.org)
* @license http://opensource.org/licenses/bsd-license.php The BSD License
*/
?>
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!-- Consider adding an manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<?php echo $this->html->charset();?>
<title>Application > <?php echo $this->title(); ?></title>
<meta name="description" content="">
<meta name="author" content="weluse GmbH">
<!-- Mobile viewport optimized: j.mp/bplateviewport -->
<meta name="viewport" content="width=device-width,initial-scale=1" />
<?php
//remove debug, lithium and add your own custom style!
echo $this->html->style(array('style','debug', 'lithium'));
?>
<?php echo $this->html->link('Icon', null, array('type' => 'icon')); ?>
<?=$this->html->script('libs/modernizr-2.0.6.min', array('async' => ''));?>
<?php
//scripts which are added ad the bottom:
$this->html->script(array('plugins','script'),array('inline' => false));
?>
</head>
<body class="app">
<div id="container">
<header>
<h1>Application</h1>
<h2>
Powered by <?php echo $this->html->link('Lithium', 'http://lithify.me/'); ?>.
</h2>
</header>
<div id="main" role="main">
<div id="content">
<?php echo $this->content(); ?>
</div>
</div>
<footer>
</footer>
</div><!--! end of #container -->
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.6.2.min.js"><\/script>')</script>
<!-- scripts schould be concatenated and minified (toDo) -->
<?php echo $this->scripts(); ?>
<!-- end scripts-->
<!-- Change UA-XXXXX-X to be your site's ID -->
<script>
window._gaq = [['_setAccount','UAXXXXXXXX1'],['_trackPageview'],['_trackPageLoadTime']];
Modernizr.load({
load: ('https:' == location.protocol ? '//ssl' : '//www') + '.google-analytics.com/ga.js'
});
</script>
<!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
chromium.org/developers/how-tos/chrome-frame-getting-started -->
<!--[if lt IE 7 ]>
<script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
<script>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
<![endif]-->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment