source: extensions/SmartAlbums/admin.php @ 19185

Last change on this file since 19185 was 16938, checked in by mistic100, 12 years ago

use Piwigo 2.4.2 tabsheets

File size: 740 bytes
Line 
1<?php
2if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
3
4global $conf, $template, $page;
5
6$page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : 'cat_list';
7
8if ($page['tab'] == 'album')
9{
10  include(SMART_PATH . 'admin/album.php');
11}
12else
13{
14  include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
15  $tabsheet = new tabsheet();
16  $tabsheet->add('cat_list', l10n('All SmartAlbums'), SMART_ADMIN.'-cat_list');
17  $tabsheet->add('config', l10n('Configuration'), SMART_ADMIN.'-config');
18  $tabsheet->select($page['tab']);
19  $tabsheet->assign();
20
21  include(SMART_PATH . 'admin/'.$page['tab'].'.php');
22}
23
24$template->assign('SMART_PATH', SMART_PATH);
25
26$template->assign_var_from_handle('ADMIN_CONTENT', 'SmartAlbums_content');
27
28?>
Note: See TracBrowser for help on using the repository browser.