feature #554, add tabs on tag manager

This commit is contained in:
plegall
2016-11-28 13:35:40 +01:00
parent 9d913e3c3d
commit ef02933d57
2 changed files with 18 additions and 0 deletions
+5
View File
@@ -31,6 +31,11 @@ function add_core_tabs($sheets, $tab_id)
$sheets[''] = array('caption' => l10n('Administration Home'), 'url' => 'admin.php');
break;
case 'tags':
global $my_base_url;
$sheets[''] = array('caption' => '<span class="icon-tags"></span>'.l10n('Tags'), 'url' => $my_base_url.'tags');
break;
case 'album':
global $admin_album_base_url;
$sheets['properties'] = array('caption' => '<span class="icon-pencil"></span>'.l10n('Properties'), 'url' => $admin_album_base_url.'-properties');
+13
View File
@@ -34,6 +34,19 @@ if (!empty($_POST))
check_pwg_token();
}
// +-----------------------------------------------------------------------+
// | tabs |
// +-----------------------------------------------------------------------+
include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
$my_base_url = get_root_url().'admin.php?page=';
$tabsheet = new tabsheet();
$tabsheet->set_id('tags');
$tabsheet->select('');
$tabsheet->assign();
// +-----------------------------------------------------------------------+
// | edit tags |
// +-----------------------------------------------------------------------+