modulejs.define('ext/custom', ['_', '$', 'core/settings', 'core/ajax'], function (_, $, allsettings, ajax) { var settings = _.extend({ enabled: false, header: '_h5ai.header.html', footer: '_h5ai.footer.html' }, allsettings.custom), init = function () { if (!settings.enabled) { return; } if (_.isString(settings.header)) { ajax.getHtml(settings.header, function (html) { if (html) { $('
' + html + '
').prependTo('#content'); } }); } if (_.isString(settings.footer)) { ajax.getHtml(settings.footer, function (html) { if (html) { $('').appendTo('#content'); } }); } }; init(); });