PKPTemplateManager::addHeader PHP Method

addHeader() public method

Add a page-specific item to the .
public addHeader ( $name, $header, $args = [] )
$name string Unique name for the header
$header string The header to be included.
$args array Key/value array defining display details `priority` int The order in which to print this header. Default: STYLE_SEQUENCE_NORMAL `contexts` string|array Where the header should be loaded. Default: array('frontend')
    function addHeader($name, $header, $args = array())
    {
        $args = array_merge(array('priority' => STYLE_SEQUENCE_NORMAL, 'contexts' => array('frontend')), $args);
        $args['contexts'] = (array) $args['contexts'];
        foreach ($args['contexts'] as $context) {
            $this->_htmlHeaders[$context][$args['priority']][$name] = array('header' => $header);
        }
    }