<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
This should be the *required* way. Additional stylesheets should
always be added with wp_enqueue_style(). This is what I've been
putting in my reviews, even for conditional stylesheets.<br>
<br>
On 4/21/2011 1:22 PM, Chip Bennett wrote:
<blockquote
cite="mid:BANLkTi=EPw+n5QbjNpLJCDw-HBqgQ8ih2w@mail.gmail.com"
type="cite">I just found this:
<div><a moz-do-not-send="true"
href="http://iamzed.com/2010/01/07/using-wordpress-wp_enqueue_style-with-conditionals/">http://iamzed.com/2010/01/07/using-wordpress-wp_enqueue_style-with-conditionals/</a></div>
<div><br>
</div>
<blockquote class="webkit-indent-blockquote" style="margin: 0pt
0pt 0pt 40px; border: medium none; padding: 0px;">
<div><span class="Apple-style-span" style="font-family: 'Courier
New',Courier,monospace; font-size: medium; color: rgb(0, 0,
187);">wp_enqueue_style<span class="br0" style="margin: 0px;
padding: 0px; color: rgb(102, 204, 102);">(</span><br
style="margin: 0px; padding: 0px;">
<span class="st0" style="margin: 0px; padding: 0px;
color: rgb(255, 0, 0);">'ie7-style'</span>, <br
style="margin: 0px; padding: 0px;">
get_template_directory_uri<span class="br0"
style="margin: 0px; padding: 0px; color: rgb(102, 204,
102);">(</span><span class="br0" style="margin: 0px;
padding: 0px; color: rgb(102, 204, 102);">)</span> . <span
class="st0" style="margin: 0px; padding: 0px; color:
rgb(255, 0, 0);">'/ie7.css'</span><br style="margin: 0px;
padding: 0px;">
<span class="br0" style="margin: 0px; padding: 0px; color:
rgb(102, 204, 102);">)</span>;<br style="margin: 0px;
padding: 0px;">
<a moz-do-not-send="true" href="http://www.php.net/global"
style="margin: 0px; padding: 0px; color: rgb(208, 11,
11);"><span class="kw3" style="margin: 0px; padding: 0px;
color: rgb(0, 0, 102);">global</span></a> <span
class="re0" style="margin: 0px; padding: 0px;">$wp_styles</span>;<br
style="margin: 0px; padding: 0px;">
<span class="re0" style="margin: 0px; padding: 0px;">$wp_styles</span>-><span
class="me1" style="margin: 0px; padding: 0px;">add_data</span><span
class="br0" style="margin: 0px; padding: 0px; color:
rgb(102, 204, 102);">(</span> <span class="st0"
style="margin: 0px; padding: 0px; color: rgb(255, 0, 0);">'ie7-style'</span>, <span
class="st0" style="margin: 0px; padding: 0px; color:
rgb(255, 0, 0);">'conditional'</span>, <span class="st0"
style="margin: 0px; padding: 0px; color: rgb(255, 0, 0);">'lte
IE 7′</span><span class="br0" style="margin: 0px; padding:
0px; color: rgb(102, 204, 102);">)</span>;</span></div>
</blockquote>
<div><br>
</div>
<div>This might move into the Guidelines, as *Recommended*
implementation of enqueueing IE-conditional stylesheets.
Thoughts?</div>
<div><br>
</div>
<div>Chip</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
theme-reviewers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a>
<a class="moz-txt-link-freetext" href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a>
</pre>
</blockquote>
</body>
</html>