head_js

Head-related functions

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

Usage

Examples

See Also

Project Versions

Table Of Contents

Previous topic

head_css

Next topic

js_escape

This Page