head_js¶
Summary¶
The head_js() helper function prints HTML script tags to the page for each script added with queue_js_file. It is commonly used in a theme’s common/header.php file to print the script tags inside the page head.
head_js() will also include Omeka’s “default” JavaScript files.
- head_js(bool $includeDefaults = 1)¶
Return the JavaScript tags that will be used on the page.
This should generally be used with echo to print the scripts in the pagehead.
Parameters: - $includeDefaults (bool) – Whether the default javascripts should be included. Defaults to true.
Returns: string