{'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} {/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} {/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}