Changeset 26424 for extensions/ExtendedDescription/include
- Timestamp:
- Jan 4, 2014, 11:53:28 AM (10 years ago)
- Location:
- extensions/ExtendedDescription/include
- Files:
-
- 4 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
extensions/ExtendedDescription/include/admin.inc.php
r25201 r26424 1 1 <?php 2 defined('EXTENDED_DESC_PATH') or die('Hacking attempt!'); 2 3 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_begin_admin_page', 'add_ed_help'); 7 4 /** 5 * Add link to help popup 6 */ 8 7 function add_ed_help() 9 8 { 10 9 global $page, $template; 11 10 12 11 $target = null; 13 12 switch ($page['page']) … … 30 29 break; 31 30 } 32 31 33 32 if (!empty($target)) 34 33 { … … 42 41 global $template; 43 42 $themeconf = $template->get_template_vars('themeconf'); 44 43 45 44 $search = '</textarea>'; 46 45 $add = ' 47 46 {combine_script id=\'core.scripts\' load=\'async\' path=\'themes/default/js/scripts.js\'} 48 47 <a href="./admin/popuphelp.php?page=extended_desc" onclick="popuphelp(this.href); return false;" title="'.l10n('ExtendedDesc_help').'" style="vertical-align: middle; border: 0; margin: 0.5em;"><img src="'.$themeconf['admin_icon_dir'].'/help.png" class="button" alt="'.l10n('ExtendedDesc_help').'"></a>'; 49 48 50 49 return str_replace($search, $search.$add, $content); 51 50 } 52 51 52 53 /** 54 * Display popup content 55 */ 53 56 function extended_desc_popup($help_content, $get) 54 57 { … … 59 62 return $help_content; 60 63 } 61 62 63 ?>
Note: See TracChangeset
for help on using the changeset viewer.