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

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

Fix some issues on NBM: move css rules to mail body if it's possible.
Remove fieldset on available plugins page.

  • Property svn:eol-style set to LF
File size: 2.5 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{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.