[2531] | 1 | <div class="titrePage"> |
---|
| 2 | <h2>{'Plugins'|@translate}</h2> |
---|
| 3 | </div> |
---|
| 4 | |
---|
| 5 | {if isset($plugins)} |
---|
[2619] | 6 | |
---|
[5474] | 7 | {foreach from=$plugin_states item=plugin_state} |
---|
| 8 | <fieldset> |
---|
| 9 | <legend> |
---|
| 10 | {if $plugin_state == 'active'} |
---|
[5476] | 11 | {'Active Plugins'|@translate} |
---|
[5474] | 12 | |
---|
| 13 | {elseif $plugin_state == 'inactive'} |
---|
[5476] | 14 | {'Inactive Plugins'|@translate} |
---|
[5474] | 15 | |
---|
| 16 | {elseif $plugin_state == 'uninstalled'} |
---|
[5476] | 17 | {'Uninstalled Plugins'|@translate} |
---|
[5474] | 18 | |
---|
| 19 | {elseif $plugin_state == 'missing'} |
---|
[5476] | 20 | {'Missing Plugins'|@translate} |
---|
[5474] | 21 | |
---|
| 22 | {/if} |
---|
| 23 | </legend> |
---|
| 24 | {foreach from=$plugins item=plugin name=plugins_loop} |
---|
| 25 | {if $plugin.STATE == $plugin_state} |
---|
| 26 | <div class="pluginBox"> |
---|
| 27 | <table> |
---|
| 28 | <tr> |
---|
| 29 | <td class="pluginBoxNameCell">{$plugin.NAME}</td> |
---|
| 30 | <td>{$plugin.DESC}</td> |
---|
| 31 | </tr> |
---|
| 32 | <tr> |
---|
| 33 | <td> |
---|
[2631] | 34 | {if $plugin.STATE == 'active'} |
---|
[5474] | 35 | <a href="{$plugin.U_ACTION}&action=deactivate">{'Deactivate'|@translate}</a> |
---|
| 36 | |
---|
| 37 | {elseif $plugin_state == 'inactive'} |
---|
| 38 | <a href="{$plugin.U_ACTION}&action=activate">{'Activate'|@translate}</a> |
---|
| 39 | | <a href="{$plugin.U_ACTION}&action=uninstall" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Uninstall'|@translate}</a> |
---|
| 40 | |
---|
| 41 | {elseif $plugin_state == 'uninstalled'} |
---|
| 42 | <a href="{$plugin.U_ACTION}&action=install">{'Install'|@translate}</a> |
---|
| 43 | | <a href="{$plugin.U_ACTION}&action=delete" onclick="return confirm('{'Are you sure you want to delete this plugin?'|@translate|@escape:'javascript'}');">{'Delete'|@translate}</a> |
---|
| 44 | |
---|
| 45 | {elseif $plugin_state == 'missing'} |
---|
| 46 | <a href="{$plugin.U_ACTION}&action=uninstall" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Uninstall'|@translate}</a> |
---|
| 47 | |
---|
[2631] | 48 | {/if} |
---|
[5474] | 49 | </td> |
---|
| 50 | <td> |
---|
[5476] | 51 | {'Version'|@translate} {$plugin.VERSION} |
---|
[5474] | 52 | {if not empty($plugin.AUTHOR)} |
---|
| 53 | {if not empty($plugin.AUTHOR_URL)} |
---|
[5476] | 54 | {assign var='author' value='<a href="%s">%s</a>'|@sprintf:$plugin.AUTHOR_URL:$plugin.AUTHOR} |
---|
[5474] | 55 | {else} |
---|
[5476] | 56 | {assign var='author' value=$plugin.AUTHOR} |
---|
[5474] | 57 | {/if} |
---|
[5476] | 58 | | {'By %s'|@translate|@sprintf:$author} |
---|
[2631] | 59 | {/if} |
---|
[5474] | 60 | |
---|
| 61 | {if not empty($plugin.VISIT_URL)} |
---|
[5476] | 62 | | <a class="externalLink" href="{$plugin.VISIT_URL}">{'Visit plugin site'|@translate}</a> |
---|
[2631] | 63 | {/if} |
---|
[5474] | 64 | </td> |
---|
| 65 | </tr> |
---|
| 66 | </table> |
---|
| 67 | </div> |
---|
[2631] | 68 | {/if} |
---|
[5474] | 69 | {/foreach} |
---|
| 70 | </fieldset> |
---|
[2531] | 71 | {/foreach} |
---|
[5474] | 72 | |
---|
[2531] | 73 | {/if} |
---|