com web/php: Move the HTML5 shim into an IE conditional comment.: include/header.inc
| From: | Paul Dragoonis | Date: | Wed, 12 Jan 2011 08:26:35 +0000 |
| Subject: | com web/php: Move the HTML5 shim into an IE conditional comment.: include/header.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-23606@lists.php.net to get a copy of this message | ||
Commit: f1fe97c08f70db67d65583c3d5dd979b66755a67
Author: Adam Harvey <aharvey@php.net> Wed, 12 Jan 2011 08:26:35 +0000
Parents: 2ab9bc5fdc2fdc52d51cc03eda9da2524db23385
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=f1fe97c08f70db67d65583c3d5dd979b66755a67
Log:
Move the HTML5 shim into an IE conditional comment.
Changed paths:
M include/header.inc
Diff:
diff --git a/include/header.inc b/include/header.inc
index cfe754d..7315352 100644
--- a/include/header.inc
+++ b/include/header.inc
@@ -46,6 +46,10 @@ if (isset($shortname) && $shortname) {
<!--[if lte IE 7]>
<link rel="stylesheet" type="text/css" href="<?php echo
$STATIC_ROOT ?>styles/workarounds.ie7.css<?php echo $v?>" media="screen"
/>
<![endif]-->
+
+ <!--[if IE]>
+ <script type="text/javascript" src="<?php echo $STATIC_ROOT
?>js/ext/html5.js<?php echo $v?>"></script>
+ <![endif]-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.7/jquery-ui.min.js"></script>
@@ -55,7 +59,6 @@ if (isset($shortname) && $shortname) {
document.write('<script type="text/javascript" src="<?php echo
$STATIC_ROOT ?>js/ext/jquery-ui-1.8.7.min.js"><' + '/script>');
}
</script>
- <script type="text/javascript" src="<?php echo $STATIC_ROOT
?>js/ext/html5.js<?php echo $v?>"></script>
<script type="text/javascript" src="<?php echo $STATIC_ROOT
?>js/common.js<?php echo $v?>"></script>
<?php if (!empty($_SERVER["BASE_HREF"])): ?>
<base href="<?php echo $_SERVER["BASE_HREF"] ?>" />