1 | <!-- Show the title of the plugin --> |
---|
2 | <div class="titlePage"> |
---|
3 | <h2>{'set_plugins'|@translate} {'Version'|@translate} {$cl_version}</h2> |
---|
4 | </div> |
---|
5 | <fieldset> |
---|
6 | <legend>{'command'|@translate}</legend> |
---|
7 | <form action="{$action}" method="post" name="form_set_plugins" id="form_set_plugins"> |
---|
8 | <input name="unset_plugins" type="submit" value="{'Deactivate'|@translate}" /> |
---|
9 | <input name="set_plugins" type="submit" value="{'Activate'|@translate}" /> |
---|
10 | <input name="nb" type="text" value="{$nb}" /> |
---|
11 | </form> |
---|
12 | |
---|
13 | |
---|
14 | |
---|
15 | {if isset($liste_plugins)} |
---|
16 | |
---|
17 | {foreach from=$plugin_states item=plugin_state} |
---|
18 | {if $plugin_state==$state} |
---|
19 | |
---|
20 | <fieldset> |
---|
21 | <legend> |
---|
22 | {if $plugin_state == 'active'} {'Last '|@translate} {'Active Plugins'|@translate} |
---|
23 | {elseif $plugin_state == 'inactive'} {'Last '|@translate} {'Inactive Plugins'|@translate} |
---|
24 | {/if} |
---|
25 | </legend> |
---|
26 | {foreach from=$liste_plugins item=plugin name=plugins_loop} |
---|
27 | {if $plugin.STATE == $plugin_state} |
---|
28 | <div class="pluginBox"> |
---|
29 | <table> |
---|
30 | <tr> |
---|
31 | <td class="pluginBoxNameCell{if $plugin.INCOMPATIBLE} warning" title="{'WARNING! This plugin does not seem to be compatible with this version of Piwigo.'|@translate|@escape:'html'}{/if}"> |
---|
32 | {$plugin.NAME} |
---|
33 | </td> |
---|
34 | <td>{$plugin.DESC}</td> |
---|
35 | </tr> |
---|
36 | <tr> |
---|
37 | <td> |
---|
38 | {if $plugin.STATE == 'active'} |
---|
39 | <a href="{$plugin.U_ACTION}&action=deactivate">{'Deactivate'|@translate}</a> |
---|
40 | |
---|
41 | {elseif $plugin_state == 'inactive'} |
---|
42 | <a href="{$plugin.U_ACTION}&action=activate" {if $plugin.INCOMPATIBLE}class="incompatible"{/if}>{'Activate'|@translate}</a> |
---|
43 | | <a href="{$plugin.U_ACTION}&action=uninstall" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Uninstall'|@translate}</a> |
---|
44 | |
---|
45 | {elseif $plugin_state == 'uninstalled'} |
---|
46 | <a href="{$plugin.U_ACTION}&action=install">{'Install'|@translate}</a> |
---|
47 | | <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> |
---|
48 | |
---|
49 | {elseif $plugin_state == 'missing'} |
---|
50 | <a href="{$plugin.U_ACTION}&action=uninstall" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Uninstall'|@translate}</a> |
---|
51 | |
---|
52 | {elseif $plugin_state == 'merged'} |
---|
53 | <a href="{$plugin.U_ACTION}&action=delete">{'Delete'|@translate}</a> |
---|
54 | {/if} |
---|
55 | </td> |
---|
56 | <td> |
---|
57 | {'Version'|@translate} {$plugin.VERSION} |
---|
58 | {if not empty($plugin.AUTHOR)} |
---|
59 | {if not empty($plugin.AUTHOR_URL)} |
---|
60 | {assign var='author' value='<a href="%s">%s</a>'|@sprintf:$plugin.AUTHOR_URL:$plugin.AUTHOR} |
---|
61 | {else} |
---|
62 | {assign var='author' value=$plugin.AUTHOR} |
---|
63 | {/if} |
---|
64 | | {'By %s'|@translate|@sprintf:$author} |
---|
65 | {/if} |
---|
66 | |
---|
67 | {if not empty($plugin.VISIT_URL)} |
---|
68 | | <a class="externalLink" href="{$plugin.VISIT_URL}">{'Visit plugin site'|@translate}</a> |
---|
69 | {/if} |
---|
70 | </td> |
---|
71 | </tr> |
---|
72 | </table> |
---|
73 | </div> |
---|
74 | {/if} |
---|
75 | {/foreach} |
---|
76 | </fieldset> |
---|
77 | {/if} |
---|
78 | {/foreach} |
---|
79 | |
---|
80 | {/if} |
---|
81 | |
---|
82 | </fieldset> |
---|