Changeset 5515 for trunk/admin/themes/default/template/plugins_new.tpl
- Timestamp:
- Apr 1, 2010, 12:41:50 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/themes/default/template/plugins_new.tpl
r5493 r5515 1 {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} 2 {known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"} 1 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js" } 2 {known_script id="jquery.ui.effects" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/effects.core.packed.js" } 3 {known_script id="jquery.ui.blind" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/effects.blind.packed.js" } 3 4 4 5 <script type="text/javascript"> 5 6 jQuery().ready(function(){ldelim} 6 jQuery('.cluetip').cluetip({ldelim} 7 width: 300, 8 splitTitle: '|' 7 jQuery("td[id^='desc_']").click(function() {ldelim} 8 id = this.id.split('_'); 9 if ($(this).hasClass('bigdesc')) {ldelim} 10 $("#bigdesc_"+id[1]).toggle('blind', 1); 11 $(this).removeClass('bigdesc'); 12 } else {ldelim} 13 $("#bigdesc_"+id[1]).toggle('blind', 50); 14 $(this).addClass('bigdesc'); 15 } 16 $("#smalldesc_"+id[1]).toggle('blind', 1); 17 return false; 9 18 }); 10 19 }); … … 21 30 </div> 22 31 23 {if isset($plugins)}24 <br>25 <table class="table2 plugins">26 <thead>27 <tr class="throw">28 <td>{'Name'|@translate}</td>29 <td>{'Version'|@translate}</td>30 <td>{'Date'|@translate}</td>31 <td>{'Author'|@translate}</td>32 <td>{'Actions'|@translate}</td>33 </tr>34 </thead>35 32 {foreach from=$plugins item=plugin name=plugins_loop} 36 <tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}"> 37 <td><a href="{$plugin.EXT_URL}" class="externalLink cluetip" title="{$plugin.EXT_NAME}|{$plugin.EXT_DESC|htmlspecialchars|nl2br}">{$plugin.EXT_NAME}</a></td> 38 <td style="text-align:center;"><a href="{$plugin.EXT_URL}" class="externalLink cluetip" title="{$plugin.EXT_NAME}|{$plugin.VER_DESC|htmlspecialchars|nl2br}">{$plugin.VERSION}</a></td> 39 <td>{$plugin.DATE}</td> 40 <td>{$plugin.AUTHOR}</td> 41 <td style="text-align:center;"><a href="{$plugin.URL_INSTALL}" onclick="return confirm('{'Are you sure you want to install this plugin?'|@translate|@escape:javascript}');">{'Automatic installation'|@translate}</a> 42 / <a href="{$plugin.URL_DOWNLOAD}">{'Download file'|@translate}</a> 43 </td> 44 </tr> 33 <div class="pluginBox" id="plugin_{$plugin.ID}"}> 34 <table> 35 <tr> 36 <td class="pluginBoxNameCell">{$plugin.EXT_NAME}</td> 37 {if $plugin.BIG_DESC != $plugin.SMALL_DESC} 38 <td id="desc_{$plugin.ID}" class="pluginDesc"> 39 <span id="smalldesc_{$plugin.ID}"> 40 <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plus.gif">{$plugin.SMALL_DESC}... 41 </span> 42 <span id="bigdesc_{$plugin.ID}" style="display:none;"> 43 <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/minus.gif">{$plugin.BIG_DESC|@nl2br}<br> 44 </span> 45 </td> 46 {else} 47 <td>{$plugin.BIG_DESC|@nl2br}</td> 48 {/if} 49 </tr> 50 <tr> 51 <td> 52 <a href="{$plugin.URL_INSTALL}" onclick="return confirm('{'Are you sure you want to install this plugin?'|@translate|@escape:javascript}');">{'Install'|@translate}</a> 53 | <a href="{$plugin.URL_DOWNLOAD}">{'Download'|@translate}</a> 54 </td> 55 <td> 56 {'Version'|@translate} {$plugin.VERSION} 57 | {'By %s'|@translate|@sprintf:$plugin.AUTHOR} 58 | <a class="externalLink" href="{$plugin.EXT_URL}">{'Visit plugin site'|@translate}</a> 59 <em>{'Downloads'|@translate}: {$plugin.DOWNLOADS}</em> 60 </td> 61 </tr> 62 </table> 63 </div> 45 64 {/foreach} 46 </table>47 {/if}
Note: See TracChangeset
for help on using the changeset viewer.