1 | {combine_script id='jquery.ui' load='async' require='jquery' path='themes/default/js/ui/packed/ui.core.packed.js' } |
---|
2 | {combine_script id='jquery.ui.effects' load='async' require='jquery.ui' path='themes/default/js/ui/packed/effects.core.packed.js' } |
---|
3 | {combine_script id='jquery.ui.effects.blind' load='async' require='jquery.ui.effects' path='themes/default/js/ui/packed/effects.blind.packed.js' } |
---|
4 | |
---|
5 | {footer_script require='jquery.ui.effects.blind'} |
---|
6 | jQuery(document).ready(function(){ldelim} |
---|
7 | jQuery("td[id^='desc_']").click(function() {ldelim} |
---|
8 | id = this.id.split('_'); |
---|
9 | nb_lines = jQuery("#bigdesc_"+id[1]).html().split('<br>').length; |
---|
10 | |
---|
11 | jQuery("#smalldesc_"+id[1]).toggle('blind', 1); |
---|
12 | if (jQuery(this).hasClass('bigdesc')) {ldelim} |
---|
13 | jQuery("#bigdesc_"+id[1]).toggle('blind', 1); |
---|
14 | } else {ldelim} |
---|
15 | jQuery("#bigdesc_"+id[1]).toggle('blind', 50 + (nb_lines * 30)); |
---|
16 | } |
---|
17 | jQuery(this).toggleClass('bigdesc'); |
---|
18 | return false; |
---|
19 | }); |
---|
20 | }); |
---|
21 | {/footer_script} |
---|
22 | |
---|
23 | <div class="titrePage"> |
---|
24 | <span class="sort"> |
---|
25 | {'Sort order'|@translate} : |
---|
26 | <select onchange="document.location = this.options[this.selectedIndex].value;"> |
---|
27 | {html_options options=$order_options selected=$order_selected} |
---|
28 | </select> |
---|
29 | </span> |
---|
30 | <h2>{'Plugins'|@translate}</h2> |
---|
31 | </div> |
---|
32 | |
---|
33 | {if not empty($plugins)} |
---|
34 | <div id="availablePlugins"> |
---|
35 | <fieldset> |
---|
36 | <legend></legend> |
---|
37 | {foreach from=$plugins item=plugin name=plugins_loop} |
---|
38 | <div class="pluginBox" id="plugin_{$plugin.ID}"> |
---|
39 | <table> |
---|
40 | <tr> |
---|
41 | <td class="pluginBoxNameCell">{$plugin.EXT_NAME}</td> |
---|
42 | {if $plugin.BIG_DESC != $plugin.SMALL_DESC} |
---|
43 | <td id="desc_{$plugin.ID}" class="pluginDesc"> |
---|
44 | <span id="smalldesc_{$plugin.ID}"> |
---|
45 | <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plus.gif" alt="">{$plugin.SMALL_DESC}... |
---|
46 | </span> |
---|
47 | <span id="bigdesc_{$plugin.ID}" style="display:none;"> |
---|
48 | <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/minus.gif" alt="">{$plugin.BIG_DESC|@nl2br}<br> |
---|
49 | </span> |
---|
50 | </td> |
---|
51 | {else} |
---|
52 | <td>{$plugin.BIG_DESC|@nl2br}</td> |
---|
53 | {/if} |
---|
54 | </tr> |
---|
55 | <tr> |
---|
56 | <td> |
---|
57 | <a href="{$plugin.URL_INSTALL}" onclick="return confirm('{'Are you sure you want to install this plugin?'|@translate|@escape:javascript}');">{'Install'|@translate}</a> |
---|
58 | | <a href="{$plugin.URL_DOWNLOAD}">{'Download'|@translate}</a> |
---|
59 | </td> |
---|
60 | <td> |
---|
61 | <em>{'Downloads'|@translate}: {$plugin.DOWNLOADS}</em> |
---|
62 | {'Version'|@translate} {$plugin.VERSION} |
---|
63 | | {'By %s'|@translate|@sprintf:$plugin.AUTHOR} |
---|
64 | | <a class="externalLink" href="{$plugin.EXT_URL}">{'Visit plugin site'|@translate}</a> |
---|
65 | </td> |
---|
66 | </tr> |
---|
67 | </table> |
---|
68 | </div> |
---|
69 | {/foreach} |
---|
70 | </fieldset> |
---|
71 | </div> |
---|
72 | {else} |
---|
73 | <p>{'There is no other plugin available.'|@translate}</p> |
---|
74 | {/if} |
---|