summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnAlbin2007-11-06 07:53:50 (GMT)
committer JohnAlbin2007-11-06 07:53:50 (GMT)
commita2000f403f5db2be0dbf8077a1dd90bb6d3286da (patch)
tree3eea084d61ef8fffa6f1687e92fe630b111e14ef
parent4c7813701d3e7e55b6fb07114d49c262653bce1f (diff)
#141784: Add conditional IE stylesheets
-rw-r--r--CHANGELOG.txt1
-rw-r--r--ie.css11
-rw-r--r--page.tpl.php6
-rw-r--r--zen_classic/page.tpl.php6
4 files changed, 24 insertions, 0 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 5a088dc..e25bc70 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,4 +1,5 @@
Zen 5.x-1.x-dev
+ * #141784: Add conditional IE stylesheets
* Merged zen-fixed with zen_classic
* Added optional Theme Settings API integration
* Base CSS and tpl files don't get loaded (sub-theme with page.tpl.php)
diff --git a/ie.css b/ie.css
new file mode 100644
index 0000000..06508b6
--- /dev/null
+++ b/ie.css
@@ -0,0 +1,11 @@
+/* $Id$ */
+
+/*
+ * IE CSS
+ *
+ * CSS targeted specifically for Internet Explorer for Windows.
+ *
+ * Properties staring with an underscore _ are for IE 5 and 6 only.
+ *
+ */
+
diff --git a/page.tpl.php b/page.tpl.php
index 25cd0ec..bfdece0 100644
--- a/page.tpl.php
+++ b/page.tpl.php
@@ -5,6 +5,12 @@
<title><?php print $head_title; ?></title>
<?php print $head; ?>
<?php print $styles; ?>
+ <!--[if IE]>
+ <link rel="stylesheet" href="<?php print $base_path . $directory ?>/ie.css" type="text/css">
+ <?php if ($subtheme_directory && file_exists($subtheme_directory .'/ie.css')): ?>
+ <link rel="stylesheet" href="<?php print $base_path . $subtheme_directory ?>/ie.css" type="text/css">
+ <?php endif; ?>
+ <![endif]-->
<?php print $scripts; ?>
</head>
diff --git a/zen_classic/page.tpl.php b/zen_classic/page.tpl.php
index 25cd0ec..bfdece0 100644
--- a/zen_classic/page.tpl.php
+++ b/zen_classic/page.tpl.php
@@ -5,6 +5,12 @@
<title><?php print $head_title; ?></title>
<?php print $head; ?>
<?php print $styles; ?>
+ <!--[if IE]>
+ <link rel="stylesheet" href="<?php print $base_path . $directory ?>/ie.css" type="text/css">
+ <?php if ($subtheme_directory && file_exists($subtheme_directory .'/ie.css')): ?>
+ <link rel="stylesheet" href="<?php print $base_path . $subtheme_directory ?>/ie.css" type="text/css">
+ <?php endif; ?>
+ <![endif]-->
<?php print $scripts; ?>
</head>