[SPIP] +spip v3.0.17
[lhc/web/clavette_www.git] / www / plugins-dist / textwheel / wheels / spip / spip.php
diff --git a/www/plugins-dist/textwheel/wheels/spip/spip.php b/www/plugins-dist/textwheel/wheels/spip/spip.php
new file mode 100644 (file)
index 0000000..3857d63
--- /dev/null
@@ -0,0 +1,29 @@
+<?php
+
+if (!defined('_ECRIRE_INC_VERSION')) return;
+
+include_spip('inc/texte');
+
+/**
+ * callback pour la puce qui est definissable/surchargeable
+ * @return string
+ */
+function replace_puce(){
+       static $puce;
+       if (!isset($puce))
+               $puce = "\n<br />".definir_puce()."&nbsp;";
+       return $puce;
+}
+
+/**
+ * callback pour les Abbr :
+ * [ABBR|abbrevation]
+ * [ABBR|abbrevation{lang}]
+ * @param array $m
+ * @return string
+ */
+function inserer_abbr($m){
+       $title = attribut_html($m[2]);
+       $lang = (isset($m[3])?" lang=\"".$m[3]."\"":"");
+       return "<abbr title=\"$title\"$lang>".$m[1]."</abbr>";
+}
\ No newline at end of file