<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Topic: Thematic doesn't use wp_enqueue for head scripts. Why?</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Tue, 21 May 2013 13:00:46 +0000</pubDate>

<item>
<title>pixelfresh on "Thematic doesn't use wp_enqueue for head scripts. Why?"</title>
<link>http://themeshaper.com/forums/topic/thematic-doesnt-use-wp_enqueue-for-head-scripts-why#post-21001</link>
<pubDate>Tue, 03 May 2011 13:29:02 +0000</pubDate>
<dc:creator>pixelfresh</dc:creator>
<guid isPermaLink="false">21001@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Great to hear, thanks for all your work on this Chris.
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Thematic doesn't use wp_enqueue for head scripts. Why?"</title>
<link>http://themeshaper.com/forums/topic/thematic-doesnt-use-wp_enqueue-for-head-scripts-why#post-21000</link>
<pubDate>Tue, 03 May 2011 12:44:24 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">21000@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Next version will use enqueue for scripts and CSS.&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>pixelfresh on "Thematic doesn't use wp_enqueue for head scripts. Why?"</title>
<link>http://themeshaper.com/forums/topic/thematic-doesnt-use-wp_enqueue-for-head-scripts-why#post-20996</link>
<pubDate>Tue, 03 May 2011 05:31:36 +0000</pubDate>
<dc:creator>pixelfresh</dc:creator>
<guid isPermaLink="false">20996@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Right, I'll probably hook in and do the same, but seems strange that this is necessary.  Should be enqueue'ing from the start.
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Thematic doesn't use wp_enqueue for head scripts. Why?"</title>
<link>http://themeshaper.com/forums/topic/thematic-doesnt-use-wp_enqueue-for-head-scripts-why#post-20994</link>
<pubDate>Tue, 03 May 2011 04:08:48 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">20994@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;i've been wondering that for a while too.  if i need them i usually filter away thematic's version, package them all together as 1 script, and then enqueue that.
&#60;/p&#62;</description>
</item>
<item>
<title>pixelfresh on "Thematic doesn't use wp_enqueue for head scripts. Why?"</title>
<link>http://themeshaper.com/forums/topic/thematic-doesnt-use-wp_enqueue-for-head-scripts-why#post-20993</link>
<pubDate>Tue, 03 May 2011 02:33:49 +0000</pubDate>
<dc:creator>pixelfresh</dc:creator>
<guid isPermaLink="false">20993@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Perhaps I'm missing something, but shouldn't thematic use the WordPress function wp_enqueue for it's javascripts in the head by default?  Currently, it uses the a hacked together function shown below (located in header-extensions.php).  Using wp_register and wp_enqueue is standard, would be better for caches due to versioning, and would make getting rid of scripts a lot easier (through deregister), no?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Load scripts for the jquery Superfish plugin &#60;a href=&#34;http://users.tpg.com.au/j_birch/plugins/superfish/#examples&#34; rel=&#34;nofollow&#34;&#62;http://users.tpg.com.au/j_birch/plugins/superfish/#examples&#60;/a&#62;
if (function_exists(&#38;#39;childtheme_override_head_scripts&#38;#39;))  {
    function thematic_head_scripts() {
    	childtheme_override_head_scripts();
    }
} else {
    function thematic_head_scripts() {
	    $scriptdir_start = &#38;quot;\t&#38;quot;;
	    $scriptdir_start .= &#38;#39;&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;&#38;#39;;
	    $scriptdir_start .= get_bloginfo(&#38;#39;template_directory&#38;#39;);
	    $scriptdir_start .= &#38;#39;/library/scripts/&#38;#39;;

	    $scriptdir_end = &#38;#39;&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;&#38;#39;;

	    $scripts = &#38;quot;\n&#38;quot;;
	    $scripts .= $scriptdir_start . &#38;#39;hoverIntent.js&#38;#39; . $scriptdir_end . &#38;quot;\n&#38;quot;;
	    $scripts .= $scriptdir_start . &#38;#39;superfish.js&#38;#39; . $scriptdir_end . &#38;quot;\n&#38;quot;;
	    $scripts .= $scriptdir_start . &#38;#39;supersubs.js&#38;#39; . $scriptdir_end . &#38;quot;\n&#38;quot;;
	    $dropdown_options = $scriptdir_start . &#38;#39;thematic-dropdowns.js&#38;#39; . $scriptdir_end . &#38;quot;\n&#38;quot;;

	    $scripts = $scripts . apply_filters(&#38;#39;thematic_dropdown_options&#38;#39;, $dropdown_options);

	    	$scripts .= &#38;quot;\n&#38;quot;;
	    	$scripts .= &#38;quot;\t&#38;quot;;
	    	$scripts .= &#38;#39;&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;&#38;#39; . &#38;quot;\n&#38;quot;;
	    	$scripts .= &#38;quot;\t\t&#38;quot; . &#38;#39;/*&#38;lt;![CDATA[*/&#38;#39; . &#38;quot;\n&#38;quot;;
	    	$scripts .= &#38;quot;\t\t&#38;quot; . &#38;#39;jQuery.noConflict();&#38;#39; . &#38;quot;\n&#38;quot;;
	    	$scripts .= &#38;quot;\t\t&#38;quot; . &#38;#39;/*]]&#38;gt;*/&#38;#39; . &#38;quot;\n&#38;quot;;
	    	$scripts .= &#38;quot;\t&#38;quot;;
	    	$scripts .= &#38;#39;&#38;lt;/script&#38;gt;&#38;#39; . &#38;quot;\n&#38;quot;;

	    // Print filtered scripts
	    print apply_filters(&#38;#39;thematic_head_scripts&#38;#39;, $scripts);
	}

	if (apply_filters(&#38;#39;thematic_use_superfish&#38;#39;, TRUE)) {
		add_action(&#38;#39;wp_head&#38;#39;,&#38;#39;thematic_head_scripts&#38;#39;);
	}
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>

</channel>
</rss>
