aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/batch_manager_global.php2
-rw-r--r--admin/themes/default/template/batch_manager_global.tpl14
2 files changed, 16 insertions, 0 deletions
diff --git a/admin/batch_manager_global.php b/admin/batch_manager_global.php
index 80bd4b250..a509202a1 100644
--- a/admin/batch_manager_global.php
+++ b/admin/batch_manager_global.php
@@ -386,6 +386,8 @@ SELECT id, path
l10n('Metadata synchronized from file')
);
}
+
+ trigger_action('element_set_global_action', $action, $collection);
}
// +-----------------------------------------------------------------------+
diff --git a/admin/themes/default/template/batch_manager_global.tpl b/admin/themes/default/template/batch_manager_global.tpl
index 66b51ee38..a0b18d357 100644
--- a/admin/themes/default/template/batch_manager_global.tpl
+++ b/admin/themes/default/template/batch_manager_global.tpl
@@ -468,6 +468,11 @@ $(document).ready(function() {
{else}
<option value="add_to_caddie">{'add to caddie'|@translate}</option>
{/if}
+ {if !empty($element_set_global_plugins_actions)}
+ {foreach from=$element_set_global_plugins_actions item=action}
+ <option value="{$action.ID}">{$action.NAME}</option>
+ {/foreach}
+ {/if}
</select>
<!-- delete -->
@@ -549,6 +554,15 @@ $(document).ready(function() {
<div id="action_metadata" class="bulkAction">
</div>
+ <!-- plugins -->
+{if !empty($element_set_global_plugins_actions)}
+ {foreach from=$element_set_global_plugins_actions item=action}
+ <div id="action_{$action.ID}" class="bulkAction">
+ {if !empty($action.CONTENT)}{$action.CONTENT}{/if}
+ </div>
+ {/foreach}
+{/if}
+
<p id="applyActionBlock" style="display:none" class="actionButtons">
<input id="applyAction" class="submit" type="submit" value="{'Apply action'|@translate}" name="submit"> <span id="applyOnDetails"></span></p>