source: trunk/admin/themes/default/template/plugins_new.tpl @ 9559

Last change on this file since 9559 was 9559, checked in by patdenice, 13 years ago

Update jQuery UI to 1.8.10.
Improve jquery ui management in template class.

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