/** * Implement event onRenderModule to include the module chrome provide by T3 * This event is fired by overriding ModuleHelper class * Return false for continueing render module * * @param object &$module A module object. * @param array $attribs An array of attributes for the module (probably from the XML). * * @return bool */ function onRenderModule(&$module, $attribs) { static $chromed = false; // Detect layout path in T3 themes if (defined('T3_PLUGIN') && T3::detect()) { // fix JA Backlink if ($module->module == 'mod_footer') { $module->content = T3::fixJALink($module->content); } // Chrome for module if (!$chromed) { $chromed = true; // We don't need chrome multi times $chromePath = T3Path::getPath('html/modules.php'); if (file_exists($chromePath)) { include_once $chromePath; } } } return false; }