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
+12
View File
@@ -264,6 +264,18 @@ function ws_addDefaultMethods( $arr )
$ws_functions_root . 'pwg.images.php',
array('admin_only'=>true, 'post_only'=>true)
);
$service->addMethod(
'pwg.images.formats.delete',
'ws_images_formats_delete',
array(
'format_id' => array('type'=>WS_TYPE_ID, 'default'=>null, 'flags'=>WS_PARAM_ACCEPT_ARRAY),
'pwg_token' => array(),
),
'Remove a format',
$ws_functions_root . 'pwg.images.php',
array('admin_only'=>true, 'post_only'=>true)
);
$service->addMethod(
'pwg.images.setRank',