{combine_script id='jquery.sort' load='footer' path='themes/default/js/plugins/jquery.sort.js'} {footer_script require='jquery.ui.effect-blind,jquery.sort'}{literal} var sortOrder = 'date'; var sortPlugins = (function(a, b) { if (sortOrder == 'downloads' || sortOrder == 'revision' || sortOrder == 'date') return parseInt($(a).find('input[name="'+sortOrder+'"]').val()) < parseInt($(b).find('input[name="'+sortOrder+'"]').val()) ? 1 : -1; else return $(a).find('input[name="'+sortOrder+'"]').val().toLowerCase() > $(b).find('input[name="'+sortOrder+'"]').val().toLowerCase() ? 1 : -1; }); jQuery(document).ready(function(){ jQuery("td[id^='desc_']").click(function() { id = this.id.split('_'); nb_lines = jQuery("#bigdesc_"+id[1]).html().split('
').length; jQuery("#smalldesc_"+id[1]).toggle('blind', 1); if (jQuery(this).hasClass('bigdesc')) { jQuery("#bigdesc_"+id[1]).toggle('blind', 1); } else { jQuery("#bigdesc_"+id[1]).toggle('blind', 50 + (nb_lines * 30)); } jQuery(this).toggleClass('bigdesc'); return false; }); jQuery('select[name="selectOrder"]').change(function() { sortOrder = this.value; $('.pluginBox').sortElements(sortPlugins); $.get("admin.php?plugins_new_order="+sortOrder); }); }); {/literal}{/footer_script}
{'Sort order'|@translate} : {html_options name="selectOrder" options=$order_options selected=$order_selected}

{'Plugins'|@translate}

{if not empty($plugins)}
{foreach from=$plugins item=plugin name=plugins_loop}
{if $plugin.BIG_DESC != $plugin.SMALL_DESC} {else} {/if}
{$plugin.EXT_NAME} {$plugin.SMALL_DESC}... {$plugin.BIG_DESC|@nl2br}
{'Install'|@translate} | {'Download'|@translate} {'Downloads'|@translate}: {$plugin.DOWNLOADS} {'Version'|@translate} {$plugin.VERSION} | {'By %s'|@translate:$plugin.AUTHOR} | {'Visit plugin site'|@translate}
{/foreach}
{else}

{'There is no other plugin available.'|@translate}

{/if}