Last change
on this file since 30064 was
26298,
checked in by mistic100, 11 years ago
|
update for 2.6 + better calculation + option to force ratio
TODO: issue with PNG (unable to generate thumbnail with IM)
|
File size:
982 bytes
|
Line | |
---|
1 | <?php |
---|
2 | defined('HEADER_MANAGER_PATH') or die('Hacking attempt!'); |
---|
3 | |
---|
4 | global $template, $page; |
---|
5 | load_language('plugin.lang', HEADER_MANAGER_PATH); |
---|
6 | |
---|
7 | $page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : 'config'; |
---|
8 | |
---|
9 | if ($page['tab'] != 'album') |
---|
10 | { |
---|
11 | // tabsheet |
---|
12 | include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php'); |
---|
13 | $tabsheet = new tabsheet(); |
---|
14 | $tabsheet->set_id('header_manager'); |
---|
15 | $tabsheet->add('config', l10n('Configuration'), HEADER_MANAGER_ADMIN . '-config'); |
---|
16 | $tabsheet->add('add', l10n('Add a banner'), HEADER_MANAGER_ADMIN . '-add'); |
---|
17 | $tabsheet->select($page['tab']); |
---|
18 | $tabsheet->assign(); |
---|
19 | } |
---|
20 | |
---|
21 | // template |
---|
22 | $template->assign(array( |
---|
23 | 'CONFIG_URL' => HEADER_MANAGER_ADMIN . '-config', |
---|
24 | 'ADD_IMAGE_URL' => HEADER_MANAGER_ADMIN . '-add', |
---|
25 | )); |
---|
26 | |
---|
27 | // include page |
---|
28 | include(HEADER_MANAGER_PATH . 'admin/' . $page['tab'] . '.php'); |
---|
29 | |
---|
30 | $template->assign('HEADER_MANAGER_PATH', HEADER_MANAGER_PATH); |
---|
31 | |
---|
32 | $template->assign_var_from_handle('ADMIN_CONTENT', 'header_manager'); |
---|
Note: See
TracBrowser
for help on using the repository browser.