From 1036a10d0bb3b60e5547b009daae8f8ca43c3864 Mon Sep 17 00:00:00 2001 From: Fil <fil@rezo.net> Date: Sat, 19 Aug 2006 22:50:32 +0000 Subject: [PATCH] ajout d'une balise #SQUELETTE qui affiche le squelette courant (#357) PS: je ne sais pas pourquoi je m'etais imagine que c'etait complique --- ecrire/public/balises.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ecrire/public/balises.php b/ecrire/public/balises.php index abbd84a22b..0287efc270 100644 --- a/ecrire/public/balises.php +++ b/ecrire/public/balises.php @@ -137,6 +137,14 @@ function balise_DOSSIER_SQUELETTE_dist($p) { return $p; } +function balise_SQUELETTE_dist($p) { + $code = addslashes($p->descr['sourcefile']); + $p->code = "'$code'" . + $p->interdire_scripts = false; + return $p; +} + + // http://doc.spip.org/@balise_URL_SITE_SPIP_dist function balise_URL_SITE_SPIP_dist($p) { $p->code = "\$GLOBALS['meta']['adresse_site']"; -- GitLab