mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-09 10:13:00 +02:00
Adding a Formats Tab on Edit photo page
* Add 3 new files for the tab creation (php, tpl and js) * Creation of a new API method : pwg.images.formats.remove * Adding translation in en_GB and fr_FR for the formats * Minor change on the head-button css class
This commit is contained in:
@@ -118,9 +118,13 @@ function add_core_tabs($sheets, $tab_id)
|
||||
break;
|
||||
|
||||
case 'photo':
|
||||
global $admin_photo_base_url;
|
||||
global $admin_photo_base_url, $conf;
|
||||
$sheets['properties'] = array('caption' => '<span class="icon-file-image"></span>'.l10n('Properties'), 'url' => $admin_photo_base_url.'-properties');
|
||||
$sheets['coi'] = array('caption' => '<span class="icon-crop"></span>'.l10n('Center of interest'), 'url' => $admin_photo_base_url.'-coi');
|
||||
if ($conf['enable_formats'])
|
||||
{
|
||||
$sheets['formats'] = array('caption' => '<span class="icon-docs"></span>'.l10n('Formats'), 'url' => $admin_photo_base_url.'-formats');
|
||||
}
|
||||
break;
|
||||
|
||||
case 'photos_add':
|
||||
|
||||
Reference in New Issue
Block a user