1 | <div class="titrePage"> |
---|
2 | <span class="sort"> |
---|
3 | {'Sort order'|@translate} : |
---|
4 | <select onchange="document.location = this.options[this.selectedIndex].value;" style="width:200px"> |
---|
5 | {html_options options=$order_options selected=$order_selected} |
---|
6 | </select> |
---|
7 | </span> |
---|
8 | <h2>{'Plugins'|@translate}</h2> |
---|
9 | </div> |
---|
10 | |
---|
11 | {if isset($plugins)} |
---|
12 | |
---|
13 | {foreach from=$plugin_states item=plugin_state} |
---|
14 | <fieldset> |
---|
15 | <legend> |
---|
16 | {if $plugin_state == 'active'} |
---|
17 | Active Plugins |
---|
18 | |
---|
19 | {elseif $plugin_state == 'inactive'} |
---|
20 | Inactive Plugins |
---|
21 | |
---|
22 | {elseif $plugin_state == 'uninstalled'} |
---|
23 | Uninstalled Plugins |
---|
24 | |
---|
25 | {elseif $plugin_state == 'missing'} |
---|
26 | Missing Plugins |
---|
27 | |
---|
28 | {/if} |
---|
29 | </legend> |
---|
30 | {foreach from=$plugins item=plugin name=plugins_loop} |
---|
31 | {if $plugin.STATE == $plugin_state} |
---|
32 | <div class="pluginBox"> |
---|
33 | <table> |
---|
34 | <tr> |
---|
35 | <td class="pluginBoxNameCell">{$plugin.NAME}</td> |
---|
36 | <td>{$plugin.DESC}</td> |
---|
37 | </tr> |
---|
38 | <tr> |
---|
39 | <td> |
---|
40 | {if $plugin.STATE == 'active'} |
---|
41 | <a href="{$plugin.U_ACTION}&action=deactivate">{'Deactivate'|@translate}</a> |
---|
42 | |
---|
43 | {elseif $plugin_state == 'inactive'} |
---|
44 | <a href="{$plugin.U_ACTION}&action=activate">{'Activate'|@translate}</a> |
---|
45 | | <a href="{$plugin.U_ACTION}&action=uninstall" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Uninstall'|@translate}</a> |
---|
46 | |
---|
47 | {elseif $plugin_state == 'uninstalled'} |
---|
48 | <a href="{$plugin.U_ACTION}&action=install">{'Install'|@translate}</a> |
---|
49 | | <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> |
---|
50 | |
---|
51 | {elseif $plugin_state == 'missing'} |
---|
52 | <a href="{$plugin.U_ACTION}&action=uninstall" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Uninstall'|@translate}</a> |
---|
53 | |
---|
54 | {/if} |
---|
55 | </td> |
---|
56 | <td> |
---|
57 | Version {$plugin.VERSION} |
---|
58 | {if not empty($plugin.AUTHOR)} |
---|
59 | | By |
---|
60 | {if not empty($plugin.AUTHOR_URL)} |
---|
61 | <a href="{$plugin.AUTHOR_URL}">{$plugin.AUTHOR}</a> |
---|
62 | {else} |
---|
63 | {$plugin.AUTHOR} |
---|
64 | {/if} |
---|
65 | {/if} |
---|
66 | |
---|
67 | {if not empty($plugin.VISIT_URL)} |
---|
68 | | <a class="externalLink" href="{$plugin.VISIT_URL}">Visit plugin site</a> |
---|
69 | {/if} |
---|
70 | </td> |
---|
71 | </tr> |
---|
72 | </table> |
---|
73 | </div> |
---|
74 | {/if} |
---|
75 | {/foreach} |
---|
76 | </fieldset> |
---|
77 | {/foreach} |
---|
78 | |
---|
79 | {/if} |
---|