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

Last change on this file since 5516 was 5516, checked in by patdenice, 14 years ago

Feature 1557: Correction for number of downloads.

  • Property svn:eol-style set to LF
File size: 2.4 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    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;
18  });
19});
20</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<fieldset>
33<legend></legend>
34{foreach from=$plugins item=plugin name=plugins_loop}
35<div class="pluginBox" id="plugin_{$plugin.ID}"}>
36  <table>
37    <tr>
38      <td class="pluginBoxNameCell">{$plugin.EXT_NAME}</td>
39{if $plugin.BIG_DESC != $plugin.SMALL_DESC}
40      <td id="desc_{$plugin.ID}" class="pluginDesc">
41        <span id="smalldesc_{$plugin.ID}">
42          <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plus.gif" alt="">{$plugin.SMALL_DESC}...
43        </span>
44        <span id="bigdesc_{$plugin.ID}" style="display:none;">
45          <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/minus.gif" alt="">{$plugin.BIG_DESC|@nl2br}<br>&nbsp;
46        </span>
47      </td>
48{else}
49      <td>{$plugin.BIG_DESC|@nl2br}</td>
50{/if}
51    </tr>
52    <tr>
53      <td>
54        <a href="{$plugin.URL_INSTALL}" onclick="return confirm('{'Are you sure you want to install this plugin?'|@translate|@escape:javascript}');">{'Install'|@translate}</a>
55        |  <a href="{$plugin.URL_DOWNLOAD}">{'Download'|@translate}</a>
56      </td>
57      <td>
58        <em>{'Downloads'|@translate}: {$plugin.DOWNLOADS}</em>
59        {'Version'|@translate} {$plugin.VERSION}
60        | {'By %s'|@translate|@sprintf:$plugin.AUTHOR}
61        | <a class="externalLink" href="{$plugin.EXT_URL}">{'Visit plugin site'|@translate}</a>
62      </td>
63    </tr>
64  </table>
65</div>
66{/foreach}
67</fieldset>
Note: See TracBrowser for help on using the repository browser.