Skip to content

Instantly share code, notes, and snippets.

@meancode
Created December 12, 2010 04:35
Show Gist options
  • Save meancode/737852 to your computer and use it in GitHub Desktop.
Save meancode/737852 to your computer and use it in GitHub Desktop.
html5boilerplate-960grid-movabletype
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:fb="http://developers.facebook.com/schema/"> <!--<![endif]-->
<head profile="http://gmpg.org/xfn/11">
<meta charset="<$mt:PublishCharset$>">
<title><mt:if tag="HomeTitle"><$mt:HomeTitle$><mt:Else><$mt:BlogName encode_html="1"$></mt:if></title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<!--[if IE]><meta http-equiv="imagetoolbar" content="no" /><![endif]-->
<mt:if tag="OGSiteName"><meta property="og:site_name" content="<$mt:OGSiteName$>"/></mt:if>
<mt:if tag="OGAppID"><meta property="fb:app_id" content="<$mt:OGAppID$>"/></mt:if>
<mt:if tag="OGPageID"><meta property="fb:page_id" content="<$mt:OGPageID$>" /></mt:if>
<mt:if tag="OGAdminID"><meta property="fb:admins" content="<$mt:OGAdminID$>"/></mt:if>
<meta name="robots" http-equiv="robots" content="index, follow" />
<mt:if tag="MetaPublisher"><meta name="publisher" http-equiv="publisher" content="<$mt:MetaPublisher$>" /></mt:if>
<meta name="language" http-equiv="language" content="<$mt:BlogLanguage$>" />
<link rel="start" href="<$mt:BlogURL$>" title="Home" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<mt:if tag="AppleTouchIcon"><link rel="apple-touch-icon<mt:If tag="AppleTouchPrecomposed">-precomposed</mt:If>" href="<mt:AppleTouchIconAsset><mt:AssetURL></mt:AppleTouchIconAsset>" /></mt:If>
<mt:if tag="AppleTouchIcon72"><link rel="apple-touch-icon<mt:If tag="AppleTouchPrecomposed">-precomposed</mt:If>" sizes="72x72" href="<mt:AppleTouchIcon72Asset><mt:AssetURL></mt:AppleTouchIcon72Asset>" /></mt:If>
<mt:if tag="AppleTouchIcon114"><link rel="apple-touch-icon<mt:If tag="AppleTouchPrecomposed">-precomposed</mt:If>" sizes="114x114" href="<mt:AppleTouchIcon114Asset><mt:AssetURL></mt:AppleTouchIcon114Asset>" /></mt:If>
<mt:IfiOSWebApp><meta name="apple-mobile-web-app-capable" content="yes" /></mt:IfiOSWebApp>
<mt:IfiOSWebApp><meta name="apple-mobile-web-app-status-bar-style" content="<$mt:AppleStatusBar$>" /></mt:IfiOSWebApp>
<link rel="alternate" type="application/atom+xml" title="<$mt:OGSiteName$> - Recent Articles" href="<$mt:Link template="feed_recent"$>" />
<mt:Unless name="cgi-page" value="cgi-page"><?php
function is_android(){
return strstr($_SERVER['HTTP_USER_AGENT'], 'Android');
}
function is_ipad(){
return strstr($_SERVER['HTTP_USER_AGENT'], 'iPad');
}
if (is_android()){
//Android 1.x User
echo '<mt:If tag="AndroidShortcutIcon"> <link rel="apple-touch-icon-precomposed" href="<mt:AndroidShortcutIconAsset><mt:AssetURL></mt:AndroidShortcutIconAsset>"/></mt:If>';
}
elseif (is_ipad()){
//iPad User
echo '<mt:If tag="AppleStartupiPad"> <link rel="apple-touch-startup-image" href="<mt:AppleStartupiPadAsset><mt:AssetURL></mt:AppleStartupiPadAsset>"></mt:If>';
}
else {
//Everyone Else
echo '<mt:If tag="AppleStartupImage"> <link rel="apple-touch-startup-image" href="<mt:AppleStartupImageAsset><mt:AssetURL></mt:AppleStartupImageAsset>"></mt:If>';
}
?></mt:Unless>
<mt:If name="main_menu">
<mt:if tag="OGSiteName"><meta property="og:title" content="<$mt:OGSiteName$>" /></mt:If>
<meta property="og:type" content="website"/>
<mt:if tag="OGDescription"><meta property="og:description" content="<$mt:OGDescription$>" /></mt:If>
<mt:if tag="OGImage"><meta property="og:image" content="<mt:OGImageAsset><mt:AssetThumbnailURL width="130" height="110"></mt:OGImageAsset>" /></mt:If>
<mt:if tag="MetaDescription"><meta name="description" content="<$mt:MetaDescription$>" /></mt:If>
<mt:if tag="MetaKeywords"><meta name="keywords" content="<$mt:MetaKeywords$>" /></mt:If>
<mt:if tag="MetaAuthor"><meta name="author" http-equiv="author" content="<$mt:MetaAuthor$>" /></mt:If>
<mt:if tag="MetaEmail"><meta name="email" http-equiv="email" content="<$mt:MetaEmail$>" /></mt:If>
<mt:if tag="OGImage"><link rel="image_src" href="<mt:OGImageAsset><mt:AssetThumbnailURL width="130" height="110"></mt:OGImageAsset>" /></mt:If>
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="<$mt:Link template="rsd"$>" />
<link rel="canonical" href="<$mt:BlogURL$>"/>
</mt:If>
<mt:IfArchiveType type="individual">
<meta property="og:title" content="<$mt:EntryTitle encode_html="1"$>" />
<meta property="og:type" content="article"/>
<meta property="og:description" content="<$mt:EntryExcerpt$>" />
<meta property="og:image" content="<mt:If tag="EntryFeaturedImage"><mt:SetVarBlock name="aid"><mt:EntryFeaturedImage></mt:SetVarBlock><mt:EntryFeaturedImageAsset id="$aid"><mt:CroppedAsset label="Entry Summary"><$mt:AssetURL$><mt:else><$mt:AssetThumbnailURL width="100"$></mt:CroppedAsset></mt:EntryFeaturedImageAsset><mt:Else><mt:EntryAssets lastn="1"><mt:AssetThumbnailURL width="130" height="110"></mt:EntryAssets></mt:If>" />
<meta name="description" content="<$mt:EntryExcerpt$>">
<meta name="keywords" content="<mt:if tag="EntryKeywords"><$mt:EntryKeywords$><mt:Else><mt:If tag="EntryTags"><mt:EntryTags glue=', '><$mt:TagName$></mt:EntryTags></mt:If></mt:If>">
<meta name="author" http-equiv="author" content="<$mt:EntryAuthorDisplayName$>" />
<meta name="email" http-equiv="email" content="<$mt:EntryAuthorEmail$>" />
<link rel="image_src" href="<mt:If tag="EntryFeaturedImage"><mt:SetVarBlock name="aid"><mt:EntryFeaturedImage></mt:SetVarBlock><mt:EntryFeaturedImageAsset id="$aid"><mt:CroppedAsset label="Entry Summary"><$mt:AssetURL$><mt:else><$mt:AssetThumbnailURL width="100"$></mt:CroppedAsset></mt:EntryFeaturedImageAsset><mt:Else><mt:EntryAssets lastn="1"><mt:AssetThumbnailURL width="130" height="110"></mt:EntryAssets></mt:If>" />
<mt:IfUseYOURLS><link rel="shortlink" href="" /></mt:IfUseYOURLS>
<link rel="canonical" href="<$mt:EntryPermalink encode_html="1"$>"/>
<link rel="alternate" type="application/atom+xml" title="Recent Comments on <$mt:EntryTitle encode_html="1"$>" href="<$mt:EntryPermalink$>.xml">
<mt:EntryPrevious><link rel="prev" href="<$mt:EntryPermalink$>" title="<$mt:EntryTitle encode_html="1"$>" rel="bookmark" /></mt:EntryPrevious>
<mt:EntryNext><link rel="next" href="<$mt:EntryPermalink$>" title="<$mt:EntryTitle encode_html="1"$>" rel="bookmark" /></mt:EntryNext>
<script type="text/javascript">
<mt:IfDiggEnabled>
digg_url = '<mt:EntryPermalink encode_js="1">';
digg_window = 'new';
digg_title = '<mt:EntryTitle encode_js="1">';
</mt:IfDiggEnabled>
mt.entry = {
id: <$mt:EntryID$>,
permalink: '<$mt:EntryPermalink$>'
};
</script>
</mt:IfArchiveType>
<link rel="stylesheet" href="<$mt:BlogURL$>css/styles.css?v=<$mt:SiteRevision$>">
<link rel="stylesheet" href="<mt:PluginStaticWebPath component="MyTheme">css/grid.css?v=<$mt:SiteRevision$>">
<link rel="stylesheet" href="<$mt:BlogURL$>css/colorbox.css?v=<$mt:SiteRevision$>">
<script src="http://platform.twitter.com/anywhere.js?id=<$mt:TwitterAnywhereID$>&amp;v=1" type="text/javascript"></script>
<script src="<mt:PluginStaticWebPath component="MyTheme">js/libs/modernizr-1.6.min.js"></script>
<$mt:AnalyticsJavascript$>
</head>
<body>
<div id="container">
<header>
<div id="header" class="container_16 clearfix">Header</div>
</header>
<div id="main">
<div id="content" class="container_16 clearfix">Content</div>
</div>
<footer>
<div id="footer" class="container_16 clearfix">Footer</div>
</footer>
</div> <!-- end of #container -->
<script type="text/javascript" src="<$mt:Link template="javascript_mt"$>"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
<script>!window.jQuery && document.write(unescape('%3Cscript src="<mt:PluginStaticWebPath component="MyTheme">js/libs/jquery-1.4.2.js"%3E%3C/script%3E'))</script>
<script type="text/javascript" src="<$mt:PluginStaticWebPath component="MyTheme"$>js/libs/jquery.form.js"></script>
<script type="text/javascript" src="<$mt:PluginStaticWebPath component="MyTheme"$>js/libs/jquery.phpdate.js"></script>
<script type="text/javascript" src="<$mt:PluginStaticWebPath component="MyTheme"$>js/libs/jquery.mtauth.js"></script>
<script type="text/javascript" src="<$mt:PluginStaticWebPath component="MyTheme"$>js/libs/jquery.mtgreeting.js"></script>
<script type="text/javascript" src="<$mt:PluginStaticWebPath component="MyTheme"$>js/libs/jquery.mtcomment.js"></script>
<script type="text/javascript" src="<$mt:PluginStaticWebPath component="MyTheme"$>js/libs/jquery.scrollable-1.0.1.min.js"></script>
<script src="<mt:PluginStaticWebPath component="MyTheme">js/libs/jquery.colorbox-min.js"></script>
<script src="<mt:PluginStaticWebPath component="MyTheme"><$mt:BlogURL$>js/plugins.js?v=<$mt:SiteRevision$>"></script>
<script src="<mt:PluginStaticWebPath component="MyTheme"><$mt:BlogURL$>js/script.js?v=<$mt:SiteRevision$>"></script>
<script type="text/javascript" src="<$mt:PluginStaticWebPath component="MyTheme"$>js/libs/theme.js?v=<$mt:SiteRevision$>"></script>
<script type="text/javascript" src="<$mt:Link template="javascript"$>"></script>
<!--[if lt IE 7 ]>
<script src="<mt:PluginStaticWebPath component="MyTheme">js/libs/pngfix.js"></script>
<![endif]-->
<mt:DevelopmentMode><!-- yui profiler and profileviewer -->
<script src="<mt:PluginStaticWebPath component="MyTheme">js/profiling/yahoo-profiling.min.js"></script>
<script src="<mt:PluginStaticWebPath component="MyTheme">js/profiling/config.js"></script>
<!-- end profiling code --></mt:DevelopmentMode>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment