Created
January 3, 2013 15:43
-
-
Save chipcullen/4444388 to your computer and use it in GitHub Desktop.
Opening HTML for Drupal themes. Based on HTML5 boilderplate conditional comments around the <html> tag that identifies IE7 and IE8. Useful for CSS targeting. Goes in html.tpl.php.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php print $doctype; ?> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="<?php print $language->language; ?>"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8 ie7" lang="<?php print $language->language; ?>"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9 ie8" lang="<?php print $language->language; ?>"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js" lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>"<?php print $rdf->version . $rdf->namespaces; ?> > <!--<![endif]--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment