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:
Zacharie Guet
2022-07-29 15:56:53 +02:00
parent 4b8c033247
commit 5781810348
13 changed files with 371 additions and 3 deletions
+5 -1
View File
@@ -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':