foreach (array_reverse($context['template_layers']) as $layer)
loadSubTemplate($layer . '_below', true);
foreach (array_reverse($context['template_layers']) as $layer)
{
//-- cometchat.com
if ($layer == 'body' && (empty($context['uninstalling']) && (!isset($_GET['package']) || !stripos($_GET['package'], 'CometChat'))))
{
global $sourcedir;
require_once($sourcedir . '/cometchat_source/CometChat.php');
retrieveCometChatContent('_below');
}
// End cometchat.com --//
loadSubTemplate($layer . '_below', true);
}