} /* ===== */ // Attach rich text editors if any if ($cot_textarea_count > 0) { if (is_array($cot_plugins['editor'])) { $parser = !empty($sys['parser']) ? $sys['parser'] : $cfg['parser']; $editor = $cfg['plugin'][$parser]['editor']; foreach ($cot_plugins['editor'] as $k) { if ($k['pl_code'] == $editor && cot_auth('plug', $k['pl_code'], 'R')) { include $cfg['plugins_dir'] . '/' . $k['pl_file']; break; } } } } $out['footer_rc'] .= Resources::renderFooter(); $t->assign('FOOTER_RC', $out['footer_rc']); if ($usr['id'] > 0) { $t->parse('FOOTER.USER'); } else { $t->parse('FOOTER.GUEST'); } if ($cfg['debug_mode']) { $cot_hooks_fired[] = 'footer.last'; $cot_hooks_fired[] = 'output'; $out['hooks'] = '<ol>'; foreach ($cot_hooks_fired as $hook) { $out['hooks'] .= '<li>' . $hook . '</li>'; } $out['hooks'] .= '</ol>'; $t->assign('FOOTER_HOOKS', $out['hooks']);