<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Yes, inline scripts and styles are allowed. Sometimes, they're
actually needed or a better way to handle something.<br>
<br>
<div class="moz-cite-prefix">On 8/28/2012 8:33 PM, Vicky Arulsingam
wrote:<br>
</div>
<blockquote
cite="mid:CALc3iY2crC9TpDy+mZ=Wbv8Mtqk8CA2DtO1YfZtBsBggWYu9UQ@mail.gmail.com"
type="cite">
<div>Are theme developers allowed to include inline scripts in
template files?</div>
<div><br>
</div>
<div>As per Code:</div>
<div><br>
</div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><span
style="font-family:sans-serif;font-size:13px;line-height:22px;background-color:rgb(255,255,255)">Themes
are </span><b
style="font-family:sans-serif;font-size:13px;line-height:22px;background-color:rgb(255,255,255)">required</b><span
style="font-family:sans-serif;font-size:13px;line-height:22px;background-color:rgb(255,255,255)"> to
enqueue all stylesheets and scripts, using </span><tt
style="font-size:13px;line-height:22px;background-color:rgb(255,255,255)"><a
moz-do-not-send="true"
href="http://codex.wordpress.org/Function_Reference/wp_enqueue_style"
title="Function Reference/wp enqueue style"
style="text-decoration:none;color:rgb(76,166,207)">wp_enqueue_style()</a></tt><span
style="font-family:sans-serif;font-size:13px;line-height:22px;background-color:rgb(255,255,255)">/</span><tt
style="font-size:13px;line-height:22px;background-color:rgb(255,255,255)"><a
moz-do-not-send="true"
href="http://codex.wordpress.org/Function_Reference/wp_enqueue_script"
title="Function Reference/wp enqueue script"
style="text-decoration:none;color:rgb(76,166,207)">wp_enqueue_script()</a></tt><span
style="font-family:sans-serif;font-size:13px;line-height:22px;background-color:rgb(255,255,255)">,
and hooked into an appropriate hook via callback function,
rather than hard-coding stylesheet/script links or tags in
the template.</span></div>
</blockquote>
<div><br>
</div>
<div>My understanding of this is that inline scripts should not be
hard-coded in template files. </div>
<div><br>
</div>
<div>This is with regards to this ticket:
<a moz-do-not-send="true"
href="http://themes.trac.wordpress.org/ticket/9227">http://themes.trac.wordpress.org/ticket/9227</a> <br
clear="all">
<div><br>
</div>
-----
<div>Vicky Arulsingam</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
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>
<br>
</body>
</html>