diff options
author | patdenice <patdenice@piwigo.org> | 2011-03-29 15:10:48 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2011-03-29 15:10:48 +0000 |
commit | 526074d7d6802f4c2f8bb36375292480a7c9f473 (patch) | |
tree | 295dac27cb3164e66c0e1b9917003a13bd3e6350 | |
parent | 008087baee0a86ef9906fc3eedc071e514635b57 (diff) |
feature:2237
new trigger to add action on batch manager
git-svn-id: http://piwigo.org/svn/trunk@9916 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r-- | admin/batch_manager_global.php | 2 | ||||
-rw-r--r-- | admin/themes/default/template/batch_manager_global.tpl | 14 |
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> |