
Originally Posted by
kuroi
LOL. I searched and searched for this last night and couldn't find it! I kept looking for CSS and I must have gone right over this contribution so I just wrote one myself. Our code is very similar, but I like yours better.

Originally Posted by
Website Rob
kuroi, the Mod you mention is a bit outdated, is it not?
Version: v1
Last Updated: Feb 25 2007
Also, Alan made mention of his
updates on Nov. 05, 2007 and there is the fact that this file can/will change, from version to version of Zen Cart.
includes/templates/templates_default/common/html_header.php
This has
already happened in 1.3.8a
I think NHRADeuce is on to something, just manually adding the code as one goes along. As it only has to be done once each version it seems like a simple thing to do.
While we're on the Subject though, can someone explain what the the 'lte' or 'lt' means in: if lte IE 6
Actually, the mods are almost exactly the same. I just separated the code out for people who have a modded html_header.php. The same can be done for this contribution. Here is that code -
PHP Code:
/**
* load all template-specific stylesheets, named like "ie_*.css", alphabetically
* for stylesheets targeted at all versions of IE
*/
$directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^ie_/', '.css');
while(list ($key, $value) = each($directory_array)) {
echo '<!--[if IE]>' . "\n";
echo '<link rel="stylesheet" type="text/css" href="' . $template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . $value . '" />' . "\n";
echo '<![endif]-->' . "\n";
}
/**
* load all template-specific stylesheets, named like "ie7*.css", alphabetically
* for stylesheets targeted at specific versions of IE
*/
$directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^ie[5-9]_/', '.css');
while(list ($key, $value) = each($directory_array)) {
$ver = substr ($value, 2, 1);
echo '<!--[if IE ' . $ver . ']>' . "\n";
echo '<link rel="stylesheet" type="text/css" href="' . $template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . $value . '" />' . "\n";
echo '<![endif]-->' . "\n";
}