diff options
author | rvelices <rv-github@modusoptimus.com> | 2008-02-27 02:31:51 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2008-02-27 02:31:51 +0000 |
commit | 75bb450a6ece6b2e30ad4c148083b7192d7d7224 (patch) | |
tree | 6b3e6c0da5baa7ba7e736e79a4b49a83918f25c9 /template/yoga/admin/plugins.tpl | |
parent | 01687607ec04f32ca03370456c112b64f66ca599 (diff) |
- first smarty use ... (in admin.php and admin plugins page)
git-svn-id: http://piwigo.org/svn/trunk@2216 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | template/yoga/admin/plugins.tpl | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/template/yoga/admin/plugins.tpl b/template/yoga/admin/plugins.tpl index 4511913e3..66d77b1c0 100644 --- a/template/yoga/admin/plugins.tpl +++ b/template/yoga/admin/plugins.tpl @@ -1,32 +1,33 @@ +{* $Id$ *} + <div class="titrePage"> - <h2>{lang:Plugins} + <h2>{'Plugins'|@translate} </h2> </div> - -<!-- BEGIN plugins --> +{if isset($plugins) } <table class="table2"> <thead><tr class="throw"> - <td>{lang:Name}</td> - <td>{lang:Version}</td> - <td>{lang:Description}</td> - <td>{lang:Actions}</td> + <td>{'Name'|@translate}</td> + <td>{'Version'|@translate}</td> + <td>{'Description'|@translate}</td> + <td>{'Actions'|@translate}</td> </tr></thead> -<!-- BEGIN plugin --> -<tr class="{plugins.plugin.CLASS}"> - <td>{plugins.plugin.NAME}</td> - <td>{plugins.plugin.VERSION}</td> - <td>{plugins.plugin.DESCRIPTION}</td> +{foreach from=$plugins item=plugin name=plugins_loop} +<tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}"> + <td>{$plugin.NAME}</td> + <td>{$plugin.VERSION}</td> + <td>{$plugin.DESCRIPTION}</td> <td> - <!-- BEGIN action --> - <a href="{plugins.plugin.action.U_ACTION}" -<!-- BEGIN confirm --> - onclick="return confirm('{lang:Are you sure?}');" -<!-- END confirm --> - {TAG_INPUT_ENABLED}>{plugins.plugin.action.L_ACTION}</a> - <!-- END action --> + {foreach from=$plugin.actions item=action} + <a href="{$action.U_ACTION}" +{if isset($action.CONFIRM) } + onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');" +{/if} + {$TAG_INPUT_ENABLED}>{$action.L_ACTION}</a> + {/foreach} </td> </tr> -<!-- END plugin --> +{/foreach} </table> -<!-- END plugins -->
\ No newline at end of file +{/if}
\ No newline at end of file |