source: extensions/ExtendedDescription/admin.inc.php @ 15660

Last change on this file since 15660 was 7420, checked in by ddtddt, 14 years ago

[extensions] - ExtendedDescription bug translate pop-up

File size: 932 bytes
Line 
1<?php
2
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4
5add_event_handler('get_popup_help_content', 'extended_desc_popup', EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
6add_event_handler('loc_end_page_tail', 'add_ed_js');
7
8function 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  load_language('plugin.lang', EXTENDED_DESC_PATH);
17 
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
23function  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
33?>
Note: See TracBrowser for help on using the repository browser.