|
|
@@ -355,14 +355,21 @@ class Zend_View_Helper_HeadStyle extends Zend_View_Helper_Placeholder_Container_
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ $escapeStart = $indent . '<!--'. PHP_EOL;
|
|
|
+ $escapeEnd = $indent . '-->'. PHP_EOL;
|
|
|
+ if (isset($item->attributes['conditional'])
|
|
|
+ && !empty($item->attributes['conditional'])
|
|
|
+ && is_string($item->attributes['conditional'])
|
|
|
+ ) {
|
|
|
+ $escapeStart = null;
|
|
|
+ $escapeEnd = null;
|
|
|
+ }
|
|
|
+
|
|
|
$html = '<style type="text/css"' . $attrString . '>' . PHP_EOL
|
|
|
- . $indent . '<!--' . PHP_EOL . $indent . $item->content . PHP_EOL . $indent . '-->' . PHP_EOL
|
|
|
+ . $escapeStart . $indent . $item->content . PHP_EOL . $escapeEnd
|
|
|
. '</style>';
|
|
|
|
|
|
- if (isset($item->attributes['conditional'])
|
|
|
- && !empty($item->attributes['conditional'])
|
|
|
- && is_string($item->attributes['conditional']))
|
|
|
- {
|
|
|
+ if (null == $escapeStart && null == $escapeEnd) {
|
|
|
$html = '<!--[if ' . $item->attributes['conditional'] . ']> ' . $html . '<![endif]-->';
|
|
|
}
|
|
|
|