/** * make this work with either minify group config. (gallery for example will be a particular group of js just used on those pages) * the wp interface minify list * could also be set to auto minify - that works since the styles since they are in head * css is a breeze to min * // make this an option jquery might be bundled in one file some dislike google hosted api // but if google cdn then need to add before this script // and result make this file load other api etc swfobject */ function thematic_script_foot() { global $my_shortname; $jsfoot = stripslashes(get_option($my_shortname . '_jsfoot')); $jqversion = stripslashes(get_option($my_shortname . '_jquery_version')); $minify = stripslashes(get_option($my_shortname . '_minify')); if (empty($jsfoot) || $jsfoot == 'true') { echo themeatic_script_setup(false); echo "<!-- script foot -->"; if (class_exists('W3_Plugin_Minify', false)) { $w3_plugin_minify =& W3_Plugin_Minify::instance(); $w3_plugin_minify->printed_scripts[] = $location; if (($minify == 'js' || $minify == 'css and js') && function_exists('w3tc_styles')) { echo $w3_plugin_minify->get_scripts('include-footer', null); echo $w3_plugin_minify->get_scripts('include-footer-nb', null); } } elseif (class_exists('WP_Minify')) { } thematic_ifieblock(); thematic_googleanalytics(); thematic_yahooprofiler(); } }
function thematic_scripts() { themeatic_script_setup(); }