This function includes the file header.php in a theme. A view script needs to use this function along with foot() to create the structure of the page.
Usage
<?php head($vars = array(), $file = 'header'); ?>
Arguments
- array
$vars(optional) - Variables to be passed to
header.php. - Default:
array() - string
$file(optional) - Name of the file to include (without the .php extension).
- Default:
'header'
Hooks
The public_theme_header (for public pages) and admin_theme_header (for admin pages) are fired by header.php.
Example(s)
Include header.php in a theme
<?php head(); ?>
This code could be included near the beginning of a theme file to include header.php.
Source File / Version
- application/helpers/Function.php in Omeka 1.0.

