{combine_script id='jquery.jgrowl' load='footer' require='jquery' path='themes/default/js/plugins/jquery.jgrowl_minimized.js' } {combine_css path="admin/themes/default/uploadify.jGrowl.css"} {footer_script require='jquery.jgrowl'} var extList = new Array(); var confirmMsg = '{'Are you sure?'|@translate|@escape:'javascript'}'; var errorHead = '{'ERROR'|@translate|@escape:'javascript'}'; var successHead = '{'Upgrade Complete'|@translate|@escape:'javascript'}'; var errorMsg = '{'an error happened'|@translate|@escape:'javascript'}'; var restoreMsg = '{'autoupdate_reset_ignore'|@translate|@escape:'javascript'}'; {literal} jQuery(document).ready(function() { jQuery("td[id^='desc_'], p[id^='revdesc_']").click(function() { id = this.id.split('_'); jQuery("#revdesc_"+id[1]).toggle('blind'); jQuery(".button_"+id[1]).toggle(); return false; }); jQuery("#update_all").click(function() { if (confirm(confirmMsg)) { extList = []; jQuery('.updateExtension').each( function() { if (jQuery(this).parents('div').css('display') == 'block') { extList.push(jQuery(this).attr('onClick')); } }); if (extList.length > 0) eval(extList[0]); } return false; }); jQuery("#reset_ignore").click(function() { jQuery.post( "plugins/autoupdate/ajax/ignore_list.php", { reset: true }, function(data) { if (data == "ok") { jQuery(".pluginBox, fieldset").show(); jQuery("#up_to_date").hide(); jQuery("#reset_ignore").hide(); jQuery("#ignored").hide(); } } ); return false; }); }); function checkFieldsets() { var types = new Array('plugin', 'theme', 'language'); var total = 0; var ignored = 0; for (i=0;i<3;i++) { nbExtensions = 0; jQuery("div[id^='"+types[i]+"_']").each(function(index) { if (jQuery(this).css('display') == 'block') nbExtensions++; else ignored++; }); total = total + nbExtensions; if (nbExtensions == 0) jQuery("#"+types[i]+"s").hide(); } if (total == 0) { jQuery("#update_all").hide(); jQuery("#up_to_date").show(); } if (ignored > 0) { jQuery("#reset_ignore").val(restoreMsg + ' (' + ignored + ')'); } } function upgradeExtension(type, id, revision) { jQuery.ajax({ type: 'POST', url: 'plugins/autoupdate/ajax/update_'+type+'.php', data: { id: id, revision: revision }, success: function(data) { if (data['result']) { jQuery("#"+type+"_"+id).remove(); checkFieldsets(); jQuery.jGrowl( data['msg'], { theme: 'success', header: successHead, life: 4000, sticky: false } ); if (extList.length > 0) extList.shift(); if (extList.length > 0) eval(extList[0]); } else { jQuery.jGrowl( data['msg'], { theme: 'error', header: errorHead, sticky: true } ); extList = []; } }, error: function(data) { jQuery.jGrowl( errorMsg, { theme: 'error', header: errorHead, sticky: true } ); extList = []; }, dataType: 'json' }); return false; } function ignoreExtension(type, id) { jQuery.post( "plugins/autoupdate/ajax/ignore_list.php", { type: type+'s', id: id }, function(data) { if (data == "ok") { jQuery("#"+type+"_"+id).hide(); jQuery("#reset_ignore").show(); checkFieldsets(); } } ); return false; } checkFieldsets(); {/literal}{/footer_script}

Piwigo AutoUpgrade

{if not empty($update_plugins)}
{'Plugins which need upgrade'|@translate} {foreach from=$update_plugins item=plugin name=plugins_loop}
{$plugin.EXT_NAME} {'Install'|@translate} | {'Download'|@translate} | {'autoupdate_ignore'|@translate}
{'Version'|@translate} {$plugin.CURRENT_VERSION} {'Downloads'|@translate}: {$plugin.DOWNLOADS} {'New Version'|@translate} : {$plugin.NEW_VERSION} | {'By %s'|@translate|@sprintf:$plugin.AUTHOR}
{/foreach}
{/if} {if not empty($update_themes)}
{'Themes which need upgrade'|@translate} {foreach from=$update_themes item=theme name=themes_loop}
{$theme.EXT_NAME} {'Install'|@translate} | {'Download'|@translate} | {'autoupdate_ignore'|@translate}
{'Version'|@translate} {$theme.CURRENT_VERSION} {'Downloads'|@translate}: {$theme.DOWNLOADS} {'New Version'|@translate} : {$theme.NEW_VERSION} | {'By %s'|@translate|@sprintf:$theme.AUTHOR}
{/foreach}
{/if} {if not empty($update_languages)}
{'Languages which need upgrade'|@translate} {foreach from=$update_languages item=language name=languages_loop}
{$language.EXT_NAME} {'Install'|@translate} | {'Download'|@translate} | {'autoupdate_ignore'|@translate}
{'Version'|@translate} {$language.CURRENT_VERSION} {'Downloads'|@translate}: {$language.DOWNLOADS} {'New Version'|@translate} : {$language.NEW_VERSION} | {'By %s'|@translate|@sprintf:$language.AUTHOR}
{/foreach}
{/if}