diff options
Diffstat (limited to 'admin/include/add_core_tabs.inc.php')
-rw-r--r-- | admin/include/add_core_tabs.inc.php | 66 |
1 files changed, 37 insertions, 29 deletions
diff --git a/admin/include/add_core_tabs.inc.php b/admin/include/add_core_tabs.inc.php index a1ac2a0ce..efc9cd0db 100644 --- a/admin/include/add_core_tabs.inc.php +++ b/admin/include/add_core_tabs.inc.php @@ -2,7 +2,7 @@ // +-----------------------------------------------------------------------+ // | Piwigo - a PHP based photo gallery | // +-----------------------------------------------------------------------+ -// | Copyright(C) 2008-2013 Piwigo Team http://piwigo.org | +// | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org | // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | // +-----------------------------------------------------------------------+ @@ -29,17 +29,17 @@ function add_core_tabs($sheets, $tab_id) { case 'album': global $admin_album_base_url; - $sheets['properties'] = array('caption' => l10n('Properties'), 'url' => $admin_album_base_url.'-properties'); - $sheets['sort_order'] = array('caption' => l10n('Manage photo ranks'), 'url' => $admin_album_base_url.'-sort_order'); - $sheets['permissions'] = array('caption' => l10n('Permissions'), 'url' => $admin_album_base_url.'-permissions'); - $sheets['notification'] = array('caption' => l10n('Notification'), 'url' => $admin_album_base_url.'-notification'); + $sheets['properties'] = array('caption' => '<span class="icon-pencil"></span>'.l10n('Properties'), 'url' => $admin_album_base_url.'-properties'); + $sheets['sort_order'] = array('caption' => '<span class="icon-shuffle"></span>'.l10n('Manage photo ranks'), 'url' => $admin_album_base_url.'-sort_order'); + $sheets['permissions'] = array('caption' => '<span class="icon-lock"></span>'.l10n('Permissions'), 'url' => $admin_album_base_url.'-permissions'); + $sheets['notification'] = array('caption' => '<span class="icon-mail-alt"></span>'.l10n('Notification'), 'url' => $admin_album_base_url.'-notification'); break; case 'albums': global $my_base_url; - $sheets['list'] = array('caption' => l10n('List'), 'url' => $my_base_url.'cat_list'); - $sheets['move'] = array('caption' => l10n('Move'), 'url' => $my_base_url.'cat_move'); - $sheets['permalinks'] = array('caption' => l10n('Permalinks'), 'url' => $my_base_url.'permalinks'); + $sheets['list'] = array('caption' => '<span class="icon-menu"></span>'.l10n('List'), 'url' => $my_base_url.'cat_list'); + $sheets['move'] = array('caption' => '<span class="icon-move"></span>'.l10n('Move'), 'url' => $my_base_url.'cat_move'); + $sheets['permalinks'] = array('caption' => '<span class="icon-link"></span>'.l10n('Permalinks'), 'url' => $my_base_url.'permalinks'); break; case 'batch_manager': @@ -50,21 +50,29 @@ function add_core_tabs($sheets, $tab_id) case 'cat_options': global $link_start, $conf; - $sheets['status'] = array('caption' => l10n('Public / Private'), 'url' => $link_start.'cat_options&section=status'); - $sheets['visible'] = array('caption' => l10n('Lock'), 'url' => $link_start.'cat_options&section=visible'); + $sheets['status'] = array('caption' => '<span class="icon-lock"></span>'.l10n('Public / Private'), 'url' => $link_start.'cat_options&section=status'); + $sheets['visible'] = array('caption' => '<span class="icon-block"></span>'.l10n('Lock'), 'url' => $link_start.'cat_options&section=visible'); if ($conf['activate_comments']) - $sheets['comments'] = array('caption' => l10n('Comments'), 'url' => $link_start.'cat_options&section=comments'); + $sheets['comments'] = array('caption' => '<span class="icon-chat"></span>'.l10n('Comments'), 'url' => $link_start.'cat_options&section=comments'); if ($conf['allow_random_representative']) $sheets['representative'] = array('caption' => l10n('Representative'), 'url' => $link_start.'cat_options&section=representative'); break; case 'comments': - $sheets[''] = array('caption' => l10n('User comments validation'), 'url' => ''); + $sheets[''] = array('caption' => l10n('User comments'), 'url' => ''); break; - + + case 'users': + $sheets[''] = array('caption' => '<span class="icon-users"> </span>'.l10n('User list'), 'url' => ''); + break; + + case 'groups': + $sheets[''] = array('caption' => '<span class="icon-group"> </span>'.l10n('Groups'), 'url' => ''); + break; + case 'configuration': global $conf_link; - $sheets['main'] = array('caption' => l10n('Main'), 'url' => $conf_link.'main'); + $sheets['main'] = array('caption' => l10n('General'), 'url' => $conf_link.'main'); $sheets['sizes'] = array('caption' => l10n('Photo sizes'), 'url' => $conf_link.'sizes'); $sheets['watermark'] = array('caption' => l10n('Watermark'), 'url' => $conf_link.'watermark'); $sheets['display'] = array('caption' => l10n('Display'), 'url' => $conf_link.'display'); @@ -83,15 +91,15 @@ function add_core_tabs($sheets, $tab_id) case 'history': global $link_start; - $sheets['stats'] = array('caption' => l10n('Statistics'), 'url' => $link_start.'stats'); - $sheets['history'] = array('caption' => l10n('Search'), 'url' => $link_start.'history'); + $sheets['stats'] = array('caption' => '<span class="icon-signal"></span>'.l10n('Statistics'), 'url' => $link_start.'stats'); + $sheets['history'] = array('caption' => '<span class="icon-search"></span>'.l10n('Search'), 'url' => $link_start.'history'); break; case 'languages': global $my_base_url; - $sheets['installed'] = array('caption' => l10n('Installed Languages'), 'url' => $my_base_url.'&tab=installed'); - $sheets['update'] = array('caption' => l10n('Check for updates'), 'url' => $my_base_url.'&tab=update'); - $sheets['new'] = array('caption' => l10n('Add New Language'), 'url' => $my_base_url.'&tab=new'); + $sheets['installed'] = array('caption' => '<span class="icon-language"></span>'.l10n('Installed Languages'), 'url' => $my_base_url.'&tab=installed'); + $sheets['update'] = array('caption' => '<span class="icon-arrows-cw"></span>'.l10n('Check for updates'), 'url' => $my_base_url.'&tab=update'); + $sheets['new'] = array('caption' => '<span class="icon-plus-circled"></span>'.l10n('Add New Language'), 'url' => $my_base_url.'&tab=new'); break; case 'nbm': @@ -104,22 +112,22 @@ function add_core_tabs($sheets, $tab_id) case 'photo': global $admin_photo_base_url; $sheets['properties'] = array('caption' => l10n('Properties'), 'url' => $admin_photo_base_url.'-properties'); - $sheets['coi'] = array('caption' => l10n('Center of interest'), 'url' => $admin_photo_base_url.'-coi'); + $sheets['coi'] = array('caption' => '<span class="icon-crop"></span>'.l10n('Center of interest'), 'url' => $admin_photo_base_url.'-coi'); break; case 'photos_add': global $conf; - $sheets['direct'] = array('caption' => l10n('Web Form'), 'url' => PHOTOS_ADD_BASE_URL.'&section=direct'); - $sheets['applications'] = array('caption' => l10n('Applications'), 'url' => PHOTOS_ADD_BASE_URL.'&section=applications'); + $sheets['direct'] = array('caption' => '<span class="icon-upload"></span>'.l10n('Web Form'), 'url' => PHOTOS_ADD_BASE_URL.'&section=direct'); + $sheets['applications'] = array('caption' => '<span class="icon-network"></span>'.l10n('Applications'), 'url' => PHOTOS_ADD_BASE_URL.'&section=applications'); if ($conf['enable_synchronization']) - $sheets['ftp'] = array('caption' => l10n('FTP + Synchronization'), 'url' => PHOTOS_ADD_BASE_URL.'&section=ftp'); + $sheets['ftp'] = array('caption' => '<span class="icon-exchange"></span>'.l10n('FTP + Synchronization'), 'url' => PHOTOS_ADD_BASE_URL.'&section=ftp'); break; case 'plugins': global $my_base_url; - $sheets['installed'] = array('caption' => l10n('Plugin list'), 'url' => $my_base_url.'&tab=installed'); - $sheets['update'] = array('caption' => l10n('Check for updates'), 'url' => $my_base_url.'&tab=update'); - $sheets['new'] = array('caption' => l10n('Other plugins'), 'url' => $my_base_url.'&tab=new'); + $sheets['installed'] = array('caption' => '<span class="icon-equalizer"></span>'.l10n('Plugin list'), 'url' => $my_base_url.'&tab=installed'); + $sheets['update'] = array('caption' => '<span class="icon-arrows-cw"></span>'.l10n('Check for updates'), 'url' => $my_base_url.'&tab=update'); + $sheets['new'] = array('caption' => '<span class="icon-plus-circled"></span>'.l10n('Other plugins'), 'url' => $my_base_url.'&tab=new'); break; case 'rating': @@ -129,9 +137,9 @@ function add_core_tabs($sheets, $tab_id) case 'themes': global $my_base_url; - $sheets['installed'] = array('caption' => l10n('Installed Themes'), 'url' => $my_base_url.'&tab=installed'); - $sheets['update'] = array('caption' => l10n('Check for updates'), 'url' => $my_base_url.'&tab=update'); - $sheets['new'] = array('caption' => l10n('Add New Theme'), 'url' => $my_base_url.'&tab=new'); + $sheets['installed'] = array('caption' => '<span class="icon-brush"></span>'.l10n('Installed Themes'), 'url' => $my_base_url.'&tab=installed'); + $sheets['update'] = array('caption' => '<span class="icon-arrows-cw"></span>'.l10n('Check for updates'), 'url' => $my_base_url.'&tab=update'); + $sheets['new'] = array('caption' => '<span class="icon-plus-circled"></span>'.l10n('Add New Theme'), 'url' => $my_base_url.'&tab=new'); break; case 'updates': |