<?xml version="1.0" encoding="utf-8"?>
<hookexport>
  <hookdata>
    <config>
      <hook_name>Shoutbox: Javascript</hook_name>
      <hook_desc>This injects shoutbox JS as needed</hook_desc>
      <hook_author>IPB Shoutbox</hook_author>
      <hook_email/>
      <hook_website>http://www.ipbshoutbox.com</hook_website>
      <hook_update_check/>
      <hook_requirements><![CDATA[a:3:{s:21:"required_applications";a:2:{s:4:"core";a:3:{s:8:"app_name";s:6:"System";s:11:"min_version";i:0;s:11:"max_version";i:0;}s:8:"shoutbox";a:3:{s:8:"app_name";s:8:"Shoutbox";s:11:"min_version";i:0;s:11:"max_version";i:0;}}s:20:"hook_php_version_min";s:0:"";s:20:"hook_php_version_max";s:0:"";}]]></hook_requirements>
      <hook_version_human>1.4.1</hook_version_human>
      <hook_version_long>14100</hook_version_long>
      <hook_extra_data/>
      <hook_key>shoutbox_javascript</hook_key>
      <hook_global_caches/>
    </config>
  </hookdata>
  <hookfiles>
    <file>
      <hook_file_real>shoutboxGlobalJs.php</hook_file_real>
      <hook_type>skinHooks</hook_type>
      <hook_classname>shoutboxGlobalJs</hook_classname>
      <hook_data><![CDATA[a:8:{s:12:"dataLocation";s:0:"";s:14:"libApplication";s:0:"";s:15:"classToOverload";s:11:"skin_global";s:9:"skinGroup";N;s:12:"skinFunction";N;s:4:"type";N;s:2:"id";N;s:8:"position";N;}]]></hook_data>
      <hooks_source><![CDATA[//<?php
class shoutboxGlobalJs extends (~extends~)
{
public function globalTemplate( $html, $documentHeadItems, $css, $jsModules, $metaTags, array $header_items, $items=array(), $footer_items=array(), $stats=array())
	{
$output = preg_replace( "#<!--hook\.([^\>]+?)-->#", '', ipsRegistry::getClass('output')->templateHooks(parent::globalTemplate( $html, $documentHeadItems, $css, $jsModules, $metaTags, $header_items, $items, $footer_items, $stats)));
if(IPSLib::appIsInstalled('shoutbox') && strpos($output, '<!--- ShoutBoxJsLoader --->')!==false )
{
$output = preg_replace( "#</head>#", ipsRegistry::getClass('output')->getTemplate('shoutbox_hooks')->shoutboxJavascript() . "</head>\r\n", $output, 1 );
}
return $output;
}
}
]]></hooks_source>
    </file>
  </hookfiles>
  <hookextras_settings/>
  <hookextras_language/>
  <hookextras_modules/>
  <hookextras_help/>
  <hookextras_templates/>
  <hookextras_css/>
  <hookextras_replacements/>
  <hookextras_tasks/>
  <hookextras_database_create/>
  <hookextras_database_alter/>
  <hookextras_database_update/>
  <hookextras_database_insert/>
</hookexport>
