[(#HTTP_HEADER{'Content-Type: text/javascript'})][(#REM) ACS (Plugin Spip) http://acs.geomaticien.org Copyright Daniel FAIVRE, 2007-2024 Copyleft: licence GPL - Cf. LICENCES.txt JS interface d'admin d'ACS - ACS admin GUI Active les controleurs de composants sur la partie publique du site ][(#INCLURE{fond=javascript/aca.js})] document.addEventListener("DOMContentLoaded", function() { pinceau = "#CHEMIN{'images/pinceau.png'}"; inclurl = window.location.href; if (inclurl.search(/\?/) >= 0) { inclurl += '&'; } else { inclurl += '?'; } inclurl += 'var_mode=inclure'; if (document.getElementById('var_mode_i')) { btn = document.getElementById('var_mode_i'); btn.parentNode.removeChild(btn); } if (document.getElementById('acs_voir_page')) { btn = document.getElementById('acs_voir_page'); pgurl = btn.href; btn.parentNode.removeChild(btn); } else { pgurl = 'ecrire?exec=acs&onglet=pages&detail=2&pg=sommaire'; } new ACA({ id: 'acs', componentClassName: 'composant', componentCssPrefix: 'composant', componentCssSep: '-', pinceau: pinceau, menu: [ {name: 'page', action : 'test', menu: [ {name: 'new', action: '' }, {name: 'content', action: 'goto:' + pgurl }, {name: 'inclusions', action: 'goto:' + inclurl } ] }, {name: 'component', menu: [ {name: 'new', action: 'editComponent' }, {name: 'list', action: 'showComponents', }, {name: 'sets', action: 'componentsSets', } ] }, {name: 'help', menu: [ {name: 'debug', action: 'debug' }, {name: 'about', action: 'about', } ] } ][, components: (#COMPOSANTS_JSON) ] }); });