set_prefilter('categories', 'add_remove_button'); } // Picture modify elseif ($page['page'] == 'picture_modify') { $areas[] = 'description'; $toolbar = 'Basic'; $template->set_prefilter('picture_modify', 'add_remove_button'); } // Notification by mail elseif ($page['page'] == 'notification_by_mail') { $areas[] = 'send_customize_mail_content'; $toolbar = 'Basic'; $template->set_prefilter('notification_by_mail', 'add_remove_button'); } // Page banner elseif ($page['page'] == 'configuration') { $areas[] = 'page_banner'; $width = '70%'; $toolbar = 'Basic'; $template->set_prefilter('config', 'add_remove_button_banner'); } elseif ($page['page'] == 'plugin') { $section = $_GET['section']; // Additional pages if ($section == 'AdditionalPages/admin/add_page.php') { $areas[] = 'ap_content'; $width = '100%'; $template->set_prefilter('plugin_admin_content', 'add_remove_button'); } // PWG Stuffs elseif ($section == 'PWG_Stuffs/admin/add_module.php' and $_GET['type'] == 'personal') { $areas[] = 'personal_content'; $width = '99%'; $height = '250px'; $template->set_prefilter('module_options', 'add_remove_button_stuffs'); } } if (!empty($areas)) { set_fckeditor_instance($areas, $toolbar, $width, $height); } return $plugin_menu_links; } function add_remove_button($content, &$smarty) { $pattern = '#()#ims'; $replacement = '$1FCK Editor On/Off'; return preg_replace($pattern, $replacement, $content); } function add_remove_button_stuffs($content, &$smarty) { $pattern = '##ims'; $replacement = '
FCK Editor On/Off'; return preg_replace($pattern, $replacement, $content); } function add_remove_button_banner($content, &$smarty) { $pattern = '#()#ims'; $replacement = '$1FCK Editor On/Off'; return preg_replace($pattern, $replacement, $content); } ?>