Ignore:
Timestamp:
Mar 5, 2013, 1:04:50 PM (11 years ago)
Author:
mistic100
Message:

-define body_id and fix breadcrumb
-fix edit page with simple and gthumb+

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/BatchDownloader/include/events.inc.php

    r20138 r21206  
    1313    if (check_download_access() === false) access_denied();
    1414   
     15    add_event_handler('loc_begin_page_header', 'batch_download_page_header');
     16   
    1517    $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');
    1720   
    1821    switch (@$tokens[1])
     
    2023      case 'init_zip':
    2124        $page['sub_section'] = 'init_zip';
    22         $page['title'].= l10n('Generate ZIP');
     25        $page['section_title'].= l10n('Generate ZIP');
    2326        break;
    2427      case 'view':
    2528        $page['sub_section'] = 'view';
    26         $page['title'].= l10n('Edit the set');
     29        $page['section_title'].= l10n('Edit the set');
    2730        break;
    2831      default:
     
    3033    }
    3134  }
     35}
     36
     37function batch_download_page_header()
     38{
     39  global $page;
     40  $page['body_id'] = 'theBatchDownloader';
    3241}
    3342
Note: See TracChangeset for help on using the changeset viewer.