l10n('ppa_h2'), 'URL' => get_admin_plugin_menu_link(PPA_PATH . '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_change('AP_render_content', $conf['persoAbout']); if (!empty($pat)){ $template->assign('PERSO_ABOUT', $pat); } } function ppaT($content, &$smarty){ $search = '{$ABOUT_MESSAGE}'; $replacement = '
{$PERSO_ABOUT}
{$ABOUT_MESSAGE}'; return str_replace($search, $replacement, $content); } ?>