Changeset 11276 for extensions/set_plugins/admin.tpl
- Timestamp:
- Jun 9, 2011, 3:52:13 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/set_plugins/admin.tpl
r11249 r11276 10 10 {else} 11 11 var no_affiche = false; 12 12 {/if} 13 13 </script> 14 <div> 14 {if !isset($liste_plugins)} 15 <div class="infos"></div> 16 <div class="errors"></div> 17 {/if} 15 18 {if isset($liste_plugins)} 16 19 {foreach from=$plugin_states item=plugin_state} 17 20 {if $plugin_state==$state} 18 </div>19 21 <fieldset > 20 22 <legend> 21 {if $plugin_state == 'active'} {'Last '|@translate} {'Active Plugins'|@translate} 22 {elseif $plugin_state == 'inactive'} {'Last '|@translate} {'Inactive Plugins'|@translate} 23 {if $plugin_state == 'active'} 24 {'Last '|@translate} {'Active Plugins'|@translate} 25 {elseif $plugin_state == 'inactive'} 26 {'Last '|@translate} {'Inactive Plugins'|@translate} 23 27 {/if} 24 25 </legend> 28 </legend> 26 29 <form action="{$action}" method="post" name="form_set_plugins" id="form_set_plugins"> 27 30 <input name="unset_plugins" type="submit" value="{'Deactivate'|@translate}" /> 28 31 <input name="set_plugins" type="submit" value="{'Activate'|@translate}" /> 29 32 <input name="nb" type="text" value="{$nb}" /> 33 <input name="list_visible" id="list_visible" type="hidden" value="{$list_visible}" /> 30 34 </form> 31 35 <p> 32 </p>33 {foreach from=$liste_plugins item=plugin name=plugins_loop}34 {if $plugin.STATE == $plugin_state}35 36 36 <div class="pluginBox"> 37 <table> 38 <tr> 39 <td name="plugins_name" 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}"> 40 {$plugin.NAME} 41 </td> 42 <td>{$plugin.DESC}</td> 43 </tr> 44 <tr> 45 <td> 46 {if $plugin.STATE == 'active'} 47 <a href="{$plugin.U_ACTION}&action=deactivate">{'Deactivate'|@translate}</a> 37 {foreach from=$liste_plugins item=plugin name=plugins_loop} 38 <div class="pluginBox" id="{$plugin.NAME}"> 39 <table width="100%" > <tr> 40 <td width="50%" align="left" name="plugins_name" rel="actif" class="pluginBoxNameCell" > 41 {if $plugin.STATE == 'active'} 42 {$plugin.NAME} 43 {else} 44 {/if} 45 </td> 48 46 49 {elseif $plugin_state == 'inactive'} 50 <a href="{$plugin.U_ACTION}&action=activate" {if $plugin.INCOMPATIBLE}class="incompatible"{/if}>{'Activate'|@translate}</a> 51 | <a href="{$plugin.U_ACTION}&action=uninstall" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Uninstall'|@translate}</a> 47 <td width="50%" align="left" name="plugins_name" rel="inactif" class="pluginBoxNameCell"> 48 {if $plugin.STATE == 'inactive'} 49 {$plugin.NAME} 50 {else} 51 {/if} 52 </td> 53 </tr> 54 <tr> 52 55 56 <td width="50%" align="left" rel="actif"> 57 {if $plugin.STATE == 'active'} 58 <a href="{$plugin.U_ACTION}&action=deactivate"> 59 {'Deactivate'|@translate}</a> 60 {else} {/if} 61 </td> 62 <td width="50%" align="left" rel="inactif"> 63 {if $plugin.STATE == 'inactive'} 64 <a href="{$plugin.U_ACTION}&action=activate" >{'Activate'|@translate}</a> 65 66 {else} {/if} 67 </td> 68 </tr> 69 70 </table> 53 71 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 75 {/if} 76 {/foreach} 72 </div> 73 {/foreach} 74 </p> 75 77 76 </fieldset> 78 77 {/if}
Note: See TracChangeset
for help on using the changeset viewer.