/** * Require site script */ public static function requireSiteScript() { self::$printScripts = true; // As of WordPress 3.3 wp_enqueue_script() can be called mid-page (in the HTML body). // This will load the script in the footer. wp_enqueue_script('pronamic_google_maps_site'); }