1 | <div class="titrePage"> |
---|
2 | <h2>{'Plugins'|@translate}</h2> |
---|
3 | </div> |
---|
4 | |
---|
5 | {if isset($plugins)} |
---|
6 | |
---|
7 | {foreach from=$plugin_states item=plugin_state} |
---|
8 | <fieldset> |
---|
9 | <legend> |
---|
10 | {if $plugin_state == 'active'} |
---|
11 | {'Active Plugins'|@translate} |
---|
12 | |
---|
13 | {elseif $plugin_state == 'inactive'} |
---|
14 | {'Inactive Plugins'|@translate} |
---|
15 | |
---|
16 | {elseif $plugin_state == 'uninstalled'} |
---|
17 | {'Uninstalled Plugins'|@translate} |
---|
18 | |
---|
19 | {elseif $plugin_state == 'missing'} |
---|
20 | {'Missing Plugins'|@translate} |
---|
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> |
---|
34 | {if $plugin.STATE == 'active'} |
---|
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 | |
---|
48 | {/if} |
---|
49 | </td> |
---|
50 | <td> |
---|
51 | {'Version'|@translate} {$plugin.VERSION} |
---|
52 | {if not empty($plugin.AUTHOR)} |
---|
53 | {if not empty($plugin.AUTHOR_URL)} |
---|
54 | {assign var='author' value='<a href="%s">%s</a>'|@sprintf:$plugin.AUTHOR_URL:$plugin.AUTHOR} |
---|
55 | {else} |
---|
56 | {assign var='author' value=$plugin.AUTHOR} |
---|
57 | {/if} |
---|
58 | | {'By %s'|@translate|@sprintf:$author} |
---|
59 | {/if} |
---|
60 | |
---|
61 | {if not empty($plugin.VISIT_URL)} |
---|
62 | | <a class="externalLink" href="{$plugin.VISIT_URL}">{'Visit plugin site'|@translate}</a> |
---|
63 | {/if} |
---|
64 | </td> |
---|
65 | </tr> |
---|
66 | </table> |
---|
67 | </div> |
---|
68 | {/if} |
---|
69 | {/foreach} |
---|
70 | </fieldset> |
---|
71 | {/foreach} |
---|
72 | |
---|
73 | {/if} |
---|