'Perso About', 'URL' => get_admin_plugin_menu_link(PPA_PATH . 'admin/admin.php'))); return $menu; } if (script_basename() == 'about') { add_event_handler('loc_end_page_header', 'ppa'); } function ppa() { global $template, $conf; $template->set_prefilter('about', 'ppaT'); $PAED = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ExtendedDescription';")); if($PAED['state'] == 'active') add_event_handler('AP_render_content', 'get_user_language_desc'); $pat=trigger_event('AP_render_content', $conf['persoAbout']); if (!empty($pat)) { $template->assign('PERSO_ABOUT', $pat); } } function ppaT($content, &$smarty) { $search = '#
#'; $replacement = '
{$PERSO_ABOUT}
'; return preg_replace($search, $replacement, $content); } ?>