{combine_script id='jquery.cluetip' load='async' require='jquery' path='themes/default/js/plugins/jquery.cluetip.js'} {footer_script require='jquery.cluetip'} var piwigo_need_update_msg = '{"A new version of Piwigo is available."|@translate|@escape:"javascript"}'; var ext_need_update_msg = '{"Some upgrades are available for extensions."|@translate|@escape:"javascript"}'; {literal} jQuery().ready(function(){ jQuery('.cluetip').cluetip({ width: 300, splitTitle: '|', positionBy: 'bottomTop' }); jQuery.ajax({ type: 'GET', url: 'ws.php', dataType: 'json', data: { method: 'pwg.extensions.checkUpdates', format: 'json' }, timeout: 5000, success: function (data) { if (data['stat'] != 'ok') return; piwigo_update = data['result']['piwigo_need_update']; ext_update = data['result']['ext_need_update'] if ((piwigo_update || ext_update) && !jQuery(".warnings").is('div')) jQuery("#content").prepend('