source: extensions/header_manager/admin.php @ 18713

Last change on this file since 18713 was 17644, checked in by mistic100, 12 years ago

improve upgrade process (for manual upgrades and piwigo.com upgrades)
improve delete button visibility

File size: 998 bytes
Line 
1<?php
2if (!defined('HEADER_MANAGER_PATH')) die('Hacking attempt!');
3
4global $template, $page;
5load_language('plugin.lang', HEADER_MANAGER_PATH);
6
7$page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : 'config';
8
9if ($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  // template
21  $template->assign(array(
22    'CONFIG_URL' => HEADER_MANAGER_ADMIN . '-config',
23    'ADD_IMAGE_URL' => HEADER_MANAGER_ADMIN . '-add',
24    ));
25}
26
27// include page
28include(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');
33
34?>
Note: See TracBrowser for help on using the repository browser.