2008-09-14 12:25:34 +00:00
|
|
|
<div class="titrePage">
|
|
|
|
<span class="sort">
|
|
|
|
{'Sort order'|@translate} :
|
|
|
|
<select onchange="document.location = this.options[this.selectedIndex].value;" style="width:200px">
|
|
|
|
{html_options options=$order_options selected=$order_selected}
|
|
|
|
</select>
|
|
|
|
</span>
|
|
|
|
<h2>{'Plugins'|@translate}</h2>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{if isset($plugins)}
|
2008-10-01 12:31:22 +00:00
|
|
|
<table class="table2 plugins">
|
2008-09-14 12:25:34 +00:00
|
|
|
<thead>
|
|
|
|
<tr class="throw">
|
|
|
|
<td>{'Name'|@translate}</td>
|
2008-10-01 12:31:22 +00:00
|
|
|
<td>{'Actions'|@translate}</td>
|
2008-09-14 12:25:34 +00:00
|
|
|
<td>{'Version'|@translate}</td>
|
|
|
|
<td>{'Description'|@translate}</td>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2008-09-28 11:29:09 +00:00
|
|
|
|
2008-09-14 12:25:34 +00:00
|
|
|
{foreach from=$plugins item=plugin name=plugins_loop}
|
2008-10-01 12:31:22 +00:00
|
|
|
<tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}">
|
|
|
|
<td class="pluginState{if $plugin.STATE != 'uninstalled'} {$plugin.STATE}{/if}">
|
|
|
|
{$plugin.NAME}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<ul class="pluginsActions">
|
|
|
|
{if $plugin.STATE == 'active'}
|
|
|
|
<li>
|
|
|
|
<a href="{$plugin.U_ACTION}&action=deactivate">
|
|
|
|
<img src="{$themeconf.admin_icon_dir}/plug_deactivate.png" alt="{'Deactivate'|@translate}" title="{'Deactivate'|@translate}" />
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<img src="{$themeconf.admin_icon_dir}/plug_uninstall_grey.png" alt="{'Uninstall'|@translate}" title="{'Uninstall'|@translate}" />
|
|
|
|
</li>
|
|
|
|
{/if}
|
|
|
|
{if $plugin.STATE == 'inactive'}
|
|
|
|
<li>
|
|
|
|
<a href="{$plugin.U_ACTION}&action=activate">
|
|
|
|
<img src="{$themeconf.admin_icon_dir}/plug_activate.png" alt="{'Activate'|@translate}" title="{'Activate'|@translate}" />
|
|
|
|
</a>
|
|
|
|
</li>
|
2008-10-04 15:36:45 +00:00
|
|
|
<li>
|
|
|
|
<a href="{$plugin.U_ACTION}&action=uninstall" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">
|
|
|
|
<img src="{$themeconf.admin_icon_dir}/plug_uninstall.png" alt="{'Uninstall'|@translate}" title="{'Uninstall'|@translate}" />
|
|
|
|
</a>
|
|
|
|
</li>
|
2008-10-01 12:31:22 +00:00
|
|
|
{/if}
|
2008-10-04 15:36:45 +00:00
|
|
|
{if $plugin.STATE == 'missing'}
|
|
|
|
<li>
|
|
|
|
<img src="{$themeconf.admin_icon_dir}/plug_deactivate_grey.png" alt="{'Deactivate'|@translate}" title="{'Deactivate'|@translate}" />
|
|
|
|
</li>
|
2008-10-01 12:31:22 +00:00
|
|
|
<li>
|
|
|
|
<a href="{$plugin.U_ACTION}&action=uninstall" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">
|
|
|
|
<img src="{$themeconf.admin_icon_dir}/plug_uninstall.png" alt="{'Uninstall'|@translate}" title="{'Uninstall'|@translate}" />
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{/if}
|
|
|
|
{if $plugin.STATE == 'uninstalled'}
|
|
|
|
<li>
|
|
|
|
<img src="{$themeconf.admin_icon_dir}/plug_activate_grey.png" alt="{'Activate'|@translate}" title="{'Activate'|@translate}" />
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="{$plugin.U_ACTION}&action=install" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">
|
|
|
|
<img src="{$themeconf.admin_icon_dir}/plug_install.png" alt="{'Install'|@translate}" title="{'Install'|@translate}"/>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="{$plugin.U_ACTION}&action=delete" onclick="return confirm('{'plugins_confirm_delete'|@translate|@escape:'javascript'}');">
|
|
|
|
<img src="{$themeconf.admin_icon_dir}/plug_delete.png" alt="{'plugins_delete'|@translate}" title="{'plugins_delete'|@translate}">
|
|
|
|
</a>
|
|
|
|
</li>
|
2008-10-04 15:36:45 +00:00
|
|
|
{else}
|
2008-10-01 12:31:22 +00:00
|
|
|
<li>
|
|
|
|
<img src="{$themeconf.admin_icon_dir}/plug_delete_grey.png" alt="{'plugins_delete'|@translate}" title="{'plugins_delete'|@translate}" />
|
|
|
|
</li>
|
|
|
|
{/if}
|
|
|
|
</ul>
|
|
|
|
</td>
|
|
|
|
<td style="text-align:center;">{$plugin.VERSION}</td>
|
|
|
|
<td>{$plugin.DESCRIPTION}</td>
|
2008-09-14 12:25:34 +00:00
|
|
|
</tr>
|
|
|
|
{/foreach}
|
|
|
|
</table>
|
|
|
|
{/if}
|