diff options
Diffstat (limited to 'admin/themes')
-rw-r--r-- | admin/themes/default/template/plugins_installed.tpl | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/admin/themes/default/template/plugins_installed.tpl b/admin/themes/default/template/plugins_installed.tpl index 036a568ef..5e3b451db 100644 --- a/admin/themes/default/template/plugins_installed.tpl +++ b/admin/themes/default/template/plugins_installed.tpl @@ -102,12 +102,12 @@ jQuery(document).ready(function() { {if isset($plugins)} -{assign var='field_name' value='null'} +{assign var='field_name' value='null'} {* <!-- 'counter' for fieldset management --> *} +{counter start=0 assign=i} {* <!-- counter for 'deactivate all' link --> *} {foreach from=$plugins item=plugin name=plugins_loop} {if $field_name != $plugin.STATE} {if $field_name != 'null'} - {if $field_name == 'active'}<div class="deactivate_all"><a>{'Deactivate all'|@translate}</a></div>{/if} </fieldset> {/if} @@ -125,6 +125,8 @@ jQuery(document).ready(function() { </legend> {assign var='field_name' value=$plugin.STATE} {/if} + + {if $plugin.STATE == 'active'}{counter}{/if} {if not empty($plugin.AUTHOR)} {if not empty($plugin.AUTHOR_URL)} @@ -147,14 +149,14 @@ jQuery(document).ready(function() { <td> {if $plugin.STATE == 'active'} <a href="{$plugin.U_ACTION}&action=deactivate">{'Deactivate'|@translate}</a> - | <a href="{$plugin.U_ACTION}&action=restore" class="plugin-restore" title="{'Restore default configuration. You will lost your plugin settings!'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Restore'|@translate}</a> + | <a href="{$plugin.U_ACTION}&action=restore" class="plugin-restore" title="{'Restore default configuration. You will lost your plugin settings!'|@translate}" onclick="return confirm(confirmMsg);">{'Restore'|@translate}</a> {elseif $plugin.STATE == 'inactive'} <a href="{$plugin.U_ACTION}&action=activate" class="activate">{'Activate'|@translate}</a> - | <a href="{$plugin.U_ACTION}&action=delete" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Delete'|@translate}</a> + | <a href="{$plugin.U_ACTION}&action=delete" onclick="return confirm(confirmMsg);">{'Delete'|@translate}</a> {elseif $plugin.STATE == 'missing'} - <a href="{$plugin.U_ACTION}&action=uninstall" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Uninstall'|@translate}</a> + <a href="{$plugin.U_ACTION}&action=uninstall" onclick="return confirm(confirmMsg);">{'Uninstall'|@translate}</a> {elseif $plugin.STATE == 'merged'} <a href="{$plugin.U_ACTION}&action=delete">{'Delete'|@translate}</a> @@ -178,7 +180,7 @@ jQuery(document).ready(function() { {elseif $plugin_display == 'compact'} {if not empty($plugin.VISIT_URL)} {assign var='version' value="<a class='externalLink' href='"|cat:$plugin.VISIT_URL|cat:"'>"|cat:$plugin.VERSION|cat:"</a>"} - {else + {else} {assign var='version' value=$plugin.VERSION} {/if} @@ -191,14 +193,14 @@ jQuery(document).ready(function() { <div> {if $plugin.STATE == 'active'} <a href="{$plugin.U_ACTION}&action=deactivate">{'Deactivate'|@translate}</a> - | <a href="{$plugin.U_ACTION}&action=restore" class="plugin-restore" title="{'Restore default configuration. You will lost all your settings !'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Restore'|@translate}</a> + | <a href="{$plugin.U_ACTION}&action=restore" class="plugin-restore" title="{'Restore default configuration. You will lost all your settings !'|@translate}" onclick="return confirm(confirmMsg);">{'Restore'|@translate}</a> {elseif $plugin.STATE == 'inactive'} <a href="{$plugin.U_ACTION}&action=activate" class="activate">{'Activate'|@translate}</a> - | <a href="{$plugin.U_ACTION}&action=delete" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Delete'|@translate}</a> + | <a href="{$plugin.U_ACTION}&action=delete" onclick="return confirm(confirmMsg);">{'Delete'|@translate}</a> {elseif $plugin.STATE == 'missing'} - <a href="{$plugin.U_ACTION}&action=uninstall" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Uninstall'|@translate}</a> + <a href="{$plugin.U_ACTION}&action=uninstall" onclick="return confirm(confirmMsg);">{'Uninstall'|@translate}</a> {elseif $plugin.STATE == 'merged'} <a href="{$plugin.U_ACTION}&action=delete">{'Delete'|@translate}</a> @@ -209,6 +211,11 @@ jQuery(document).ready(function() { {/if} + {if $active_plugins == $i} + <div class="deactivate_all"><a>{'Deactivate all'|@translate}</a></div> + {counter} + {/if} + {/foreach} </fieldset> |