Skip to content

Instantly share code, notes, and snippets.

@nicocanfrere
Created March 11, 2012 17:22
Show Gist options
  • Select an option

  • Save nicocanfrere/2017181 to your computer and use it in GitHub Desktop.

Select an option

Save nicocanfrere/2017181 to your computer and use it in GitHub Desktop.
wp: html5-complet
<!DOCTYPE HTML>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="fr"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="fr"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="fr"> <![endif]-->
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!--> <html class="no-js" lang="<?php bloginfo('language');?>"> <!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width" />
<title><?php wp_title( '|', true, 'right' ); bloginfo( 'name' ); ?></title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/css/default.css" />
<?php
wp_deregister_script('jquery');
wp_register_script('jquery','http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js');
wp_register_script('modernizr',get_template_directory_uri().'/js/libs/modernizr-2.5.3.min.js');
wp_enqueue_script('modernizr');
wp_enqueue_script('jquery');
if ( is_singular() && get_option( 'thread_comments' ) ){
wp_enqueue_script( 'comment-reply' );
}
wp_head();
?>
<script>
window.jQuery || document.write('<script src="<?php bloginfo( 'template_url' ); ?>/js/libs/jquery-1.7.1.min.js"><\/script>');
</script>
</head>
<body <?php body_class(); ?>>
<div id="header">
</div><!-- end header -->
<div id="main">
<h1>hello world</h1>
</div><!-- end main -->
<div id="footer">
</div><!-- end footer -->
<?php wp_footer(); ?>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment