{footer_script} var incompatible_msg = '{'WARNING! This plugin does not seem to be compatible with this version of Piwigo.'|@translate|@escape:'javascript'}'; incompatible_msg += '\n'; incompatible_msg += '{'Do you want to activate anyway?'|@translate|@escape:'javascript'}'; {literal} jQuery(document).ready(function() { jQuery('.incompatible').click(function() { return confirm(incompatible_msg); }); }); {/literal}{/footer_script}

{'Plugins'|@translate}

{if isset($plugins)} {foreach from=$plugin_states item=plugin_state}
{if $plugin_state == 'active'} {'Active Plugins'|@translate} {elseif $plugin_state == 'inactive'} {'Inactive Plugins'|@translate} {elseif $plugin_state == 'uninstalled'} {'Uninstalled Plugins'|@translate} {elseif $plugin_state == 'missing'} {'Missing Plugins'|@translate} {elseif $plugin_state == 'merged'} {'Obsolete Plugins'|@translate} {/if} {foreach from=$plugins item=plugin name=plugins_loop} {if $plugin.STATE == $plugin_state}
{$plugin.NAME} {$plugin.DESC}
{if $plugin.STATE == 'active'} {'Deactivate'|@translate} {elseif $plugin_state == 'inactive'} {'Activate'|@translate} | {'Uninstall'|@translate} {elseif $plugin_state == 'uninstalled'} {'Install'|@translate} | {'Delete'|@translate} {elseif $plugin_state == 'missing'} {'Uninstall'|@translate} {elseif $plugin_state == 'merged'} {'Delete'|@translate} {/if} {'Version'|@translate} {$plugin.VERSION} {if not empty($plugin.AUTHOR)} {if not empty($plugin.AUTHOR_URL)} {assign var='author' value='%s'|@sprintf:$plugin.AUTHOR_URL:$plugin.AUTHOR} {else} {assign var='author' value=$plugin.AUTHOR} {/if} | {'By %s'|@translate|@sprintf:$author} {/if} {if not empty($plugin.VISIT_URL)} | {'Visit plugin site'|@translate} {/if}
{/if} {/foreach}
{/foreach} {/if}