Last change
on this file since 5913 was
3609,
checked in by patdenice, 15 years ago
|
Convert all php and tpl files in Unix format for my plugins.
|
File size:
877 bytes
|
Line | |
---|
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 | |
---|
16 | $template->assign('ed_page', $page['page']); |
---|
17 | $template->set_filename('add_ed_popup', dirname(__FILE__) . '/template/add_popup.tpl'); |
---|
18 | $template->append('footer_elements', $template->parse('add_ed_popup', true)); |
---|
19 | } |
---|
20 | |
---|
21 | function extended_desc_popup($help_content, $get) |
---|
22 | { |
---|
23 | if ($get == 'extended_desc') |
---|
24 | { |
---|
25 | $help_content = load_language('help.html', EXTENDED_DESC_PATH, array('return'=>true)); |
---|
26 | } |
---|
27 | return $help_content; |
---|
28 | } |
---|
29 | |
---|
30 | |
---|
31 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.