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

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

feature:2114
Simplify all admin templates.

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