<?php
class XenCrea_ColorPicker_Hook_ColorPicker
{
public static function templateHook($hookName, &$contents, array $hookParams, XenForo_Template_Abstract $template)
{
switch ($hookName)
{
case 'page_container_breadcrumb_top':
{
$contents = str_replace('<fieldset class="breadcrumb">', '<fieldset class="breadcrumb">
<!-- ... -->
', $contents);
}
case 'page_container_head':
{
$Template1 = $template->create('XenCreaColorPickerCookie.js', $template->getParams());
$rendered1 = $Template1->render();
$Template1 = $template->create('XenCreaColorPicker.js', $template->getParams());
$rendered2 = $Template1->render();
$Template1 = $template->create('XenCreaColorPickerExtra.js', $template->getParams());
$rendered3 = $Template1->render();
$contents .= $rendered1;
$contents .= $rendered2;
$contents .= $rendered3;
}
}
}
}