Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Warning: Cannot modify header information - headers already sent by (output started at /home/themes/public_html/forums/bb-includes/db-mysql.php:12) in /home/themes/public_html/forums/my-templates/kakumei-variant/rss2.php on line 1
ThemeShaper Forums Topic: Thematic doesn't use wp_enqueue for head scripts. Why? http://forums.themeshaper.com/ Help In Shaping WordPress Themes en Fri, 29 May 2015 00:07:55 +0000 pixelfresh on "Thematic doesn't use wp_enqueue for head scripts. Why?" http://forums.themeshaper.com/topic/thematic-doesnt-use-wp_enqueue-for-head-scripts-why#post-21001 Tue, 03 May 2011 13:29:02 +0000 pixelfresh 21001@http://forums.themeshaper.com/ <p>Great to hear, thanks for all your work on this Chris. </p> Chris on "Thematic doesn't use wp_enqueue for head scripts. Why?" http://forums.themeshaper.com/topic/thematic-doesnt-use-wp_enqueue-for-head-scripts-why#post-21000 Tue, 03 May 2011 12:44:24 +0000 Chris 21000@http://forums.themeshaper.com/ <p>Next version will use enqueue for scripts and CSS.</p> <p>Chris </p> pixelfresh on "Thematic doesn't use wp_enqueue for head scripts. Why?" http://forums.themeshaper.com/topic/thematic-doesnt-use-wp_enqueue-for-head-scripts-why#post-20996 Tue, 03 May 2011 05:31:36 +0000 pixelfresh 20996@http://forums.themeshaper.com/ <p>Right, I'll probably hook in and do the same, but seems strange that this is necessary. Should be enqueue'ing from the start. </p> helgatheviking on "Thematic doesn't use wp_enqueue for head scripts. Why?" http://forums.themeshaper.com/topic/thematic-doesnt-use-wp_enqueue-for-head-scripts-why#post-20994 Tue, 03 May 2011 04:08:48 +0000 helgatheviking 20994@http://forums.themeshaper.com/ <p>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. </p> pixelfresh on "Thematic doesn't use wp_enqueue for head scripts. Why?" http://forums.themeshaper.com/topic/thematic-doesnt-use-wp_enqueue-for-head-scripts-why#post-20993 Tue, 03 May 2011 02:33:49 +0000 pixelfresh 20993@http://forums.themeshaper.com/ <p>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?</p> <pre><code>// Load scripts for the jquery Superfish plugin <a href="http://users.tpg.com.au/j_birch/plugins/superfish/#examples" rel="nofollow">http://users.tpg.com.au/j_birch/plugins/superfish/#examples</a> if (function_exists(&#39;childtheme_override_head_scripts&#39;)) { function thematic_head_scripts() { childtheme_override_head_scripts(); } } else { function thematic_head_scripts() { $scriptdir_start = &quot;\t&quot;; $scriptdir_start .= &#39;&lt;script type=&quot;text/javascript&quot; src=&quot;&#39;; $scriptdir_start .= get_bloginfo(&#39;template_directory&#39;); $scriptdir_start .= &#39;/library/scripts/&#39;; $scriptdir_end = &#39;&quot;&gt;&lt;/script&gt;&#39;; $scripts = &quot;\n&quot;; $scripts .= $scriptdir_start . &#39;hoverIntent.js&#39; . $scriptdir_end . &quot;\n&quot;; $scripts .= $scriptdir_start . &#39;superfish.js&#39; . $scriptdir_end . &quot;\n&quot;; $scripts .= $scriptdir_start . &#39;supersubs.js&#39; . $scriptdir_end . &quot;\n&quot;; $dropdown_options = $scriptdir_start . &#39;thematic-dropdowns.js&#39; . $scriptdir_end . &quot;\n&quot;; $scripts = $scripts . apply_filters(&#39;thematic_dropdown_options&#39;, $dropdown_options); $scripts .= &quot;\n&quot;; $scripts .= &quot;\t&quot;; $scripts .= &#39;&lt;script type=&quot;text/javascript&quot;&gt;&#39; . &quot;\n&quot;; $scripts .= &quot;\t\t&quot; . &#39;/*&lt;![CDATA[*/&#39; . &quot;\n&quot;; $scripts .= &quot;\t\t&quot; . &#39;jQuery.noConflict();&#39; . &quot;\n&quot;; $scripts .= &quot;\t\t&quot; . &#39;/*]]&gt;*/&#39; . &quot;\n&quot;; $scripts .= &quot;\t&quot;; $scripts .= &#39;&lt;/script&gt;&#39; . &quot;\n&quot;; // Print filtered scripts print apply_filters(&#39;thematic_head_scripts&#39;, $scripts); } if (apply_filters(&#39;thematic_use_superfish&#39;, TRUE)) { add_action(&#39;wp_head&#39;,&#39;thematic_head_scripts&#39;); } }</code></pre>