Changeset 21206 for extensions/BatchDownloader/include/events.inc.php
- Timestamp:
- Mar 5, 2013, 1:04:50 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/BatchDownloader/include/events.inc.php
r20138 r21206 13 13 if (check_download_access() === false) access_denied(); 14 14 15 add_event_handler('loc_begin_page_header', 'batch_download_page_header'); 16 15 17 $page['section'] = 'download'; 16 $page['title'] = '<a href="'.get_absolute_root_url().'">'.l10n('Home').'</a>'.$conf['level_separator'].l10n('Batch Downloader').$conf['level_separator']; 18 $page['section_title'] = '<a href="'.get_absolute_root_url().'">'.l10n('Home').'</a>'.$conf['level_separator'].l10n('Batch Downloader').$conf['level_separator']; 19 $page['title'] = l10n('Batch Downloader'); 17 20 18 21 switch (@$tokens[1]) … … 20 23 case 'init_zip': 21 24 $page['sub_section'] = 'init_zip'; 22 $page[' title'].= l10n('Generate ZIP');25 $page['section_title'].= l10n('Generate ZIP'); 23 26 break; 24 27 case 'view': 25 28 $page['sub_section'] = 'view'; 26 $page[' title'].= l10n('Edit the set');29 $page['section_title'].= l10n('Edit the set'); 27 30 break; 28 31 default: … … 30 33 } 31 34 } 35 } 36 37 function batch_download_page_header() 38 { 39 global $page; 40 $page['body_id'] = 'theBatchDownloader'; 32 41 } 33 42
Note: See TracChangeset
for help on using the changeset viewer.