source: branches/2.1/admin/themes/default/template/plugins_new.tpl @ 6323

Last change on this file since 6323 was 6323, checked in by plg, 14 years ago

merge r6320 from trunk to branch 2.1

bug 1667 fixed: r6027 was fixing a minor error on tabs for Google Chrome/Safari
BUT was introducing a major visual issue for IE8. Backmerged + adds the -webkit
radius anyway.

This is a quickfix for release 2.1.1, the improved display introduced by nikrou
was nice and it would be better to have it, but working in IE8

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