Rev | Line | |
---|
[3609] | 1 | <?php |
---|
| 2 | |
---|
| 3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 4 | |
---|
| 5 | add_event_handler('get_popup_help_content', 'extended_desc_popup', EVENT_HANDLER_PRIORITY_NEUTRAL, 2); |
---|
| 6 | add_event_handler('loc_end_page_tail', 'add_ed_js'); |
---|
| 7 | |
---|
| 8 | function add_ed_js() |
---|
| 9 | { |
---|
| 10 | global $page, $template; |
---|
| 11 | |
---|
| 12 | $change = array('cat_modify', 'picture_modify', 'configuration', 'notification_by_mail'); |
---|
| 13 | |
---|
| 14 | if (!isset($page['page']) or !in_array($page['page'], $change)) return; |
---|
| 15 | |
---|
[7420] | 16 | load_language('plugin.lang', EXTENDED_DESC_PATH); |
---|
| 17 | |
---|
[3609] | 18 | $template->assign('ed_page', $page['page']); |
---|
| 19 | $template->set_filename('add_ed_popup', dirname(__FILE__) . '/template/add_popup.tpl'); |
---|
| 20 | $template->append('footer_elements', $template->parse('add_ed_popup', true)); |
---|
| 21 | } |
---|
| 22 | |
---|
| 23 | function extended_desc_popup($help_content, $get) |
---|
| 24 | { |
---|
| 25 | if ($get == 'extended_desc') |
---|
| 26 | { |
---|
| 27 | $help_content = load_language('help.html', EXTENDED_DESC_PATH, array('return'=>true)); |
---|
| 28 | } |
---|
| 29 | return $help_content; |
---|
| 30 | } |
---|
| 31 | |
---|
| 32 | |
---|
[3294] | 33 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.