64c26d38f01a00e1742e8312c5793c3d4bf07c0b
2 if (!defined("_ECRIRE_INC_VERSION")) return;
4 # Fichier de configuration pris en compte par config_outils.php et specialement dedie a la configuration des 'class' SPIP
5 # -----------------------------------------------------------------------------------------------------------------------
7 function outils_class_spip_config_dist() {
9 // Ajout de l'outil 'class_spip'
12 'code:spip_options' => "\$GLOBALS['class_spip']='%%style_p%%';\n\$GLOBALS['class_spip_plus']='%%style_h%%';\n%%racc_hr%%%%racc_h1%%%%racc_h2%%%%racc_i1%%%%racc_i2%%%%racc_g1%%%%racc_g2%%%%puce%%",
13 'code:fonctions'=>"%%ouvre_ref%%%%ferme_ref%%%%ouvre_note%%%%ferme_note%%",
14 'categorie' => 'public',
16 // avant SPIP 2.0 : <hr/> seulement
17 // et apres : <hr/> + puce
18 (!defined('_SPIP19300')?
'<:class_spip:1:>':'<:class_spip:2:>').
19 // des SPIP 1.91 : les intertitres
21 // des SPIP 2.0 : les italiques, les gras + les styles
22 (!defined('_SPIP19300')?
'':'<:class_spip:4:>'),
25 // Ajout des variables utilisees ci-dessus
28 'format' => _format_CHAINE
,
30 'code:strlen(%s)' => ' class=%s',
33 'format' => _format_CHAINE
,
35 'code:strlen(%s)' => ' class=%s',
38 'format' => _format_CHAINE
,
39 'defaut' => defined('_SPIP19300')?
"''":"'<hr class=\"spip\" />'",
40 'code:strlen(%s)' => "\$GLOBALS['ligne_horizontale']=%s;\n",
41 'code:!strlen(%s)' => defined('_SPIP19300')?
"\$GLOBALS['ligne_horizontale']=\"<hr\$GLOBALS[class_spip_plus] />\";\n":"",
44 'format' => _format_CHAINE
,
45 'defaut' => defined('_SPIP19300')?
"''":"'<h3 class=\"spip\">'",
46 'code:strlen(%s)' => "\$GLOBALS['debut_intertitre']=%s;\n",
47 'code:!strlen(%s)' => "\$GLOBALS['debut_intertitre']=\"<h3\$GLOBALS[class_spip_plus]>\";\n",
50 'format' => _format_CHAINE
,
51 'defaut' => defined('_SPIP19300')?
"''":"'</h3>'",
52 'code:strlen(%s)' => "\$GLOBALS['fin_intertitre']=%s;\n",
53 'code:!strlen(%s)' => "\$GLOBALS['fin_intertitre']='</h3>';\n",
56 'format' => _format_CHAINE
,
58 'code:strlen(%s)' => "\$GLOBALS['debut_italique']=%s;\n",
59 'code:!strlen(%s)' => "\$GLOBALS['debut_italique']=\"<i\$GLOBALS[class_spip]>\";\n",
62 'format' => _format_CHAINE
,
64 'code:strlen(%s)' => "\$GLOBALS['fin_italique']=%s;\n",
65 'code:!strlen(%s)' => "\$GLOBALS['fin_italique']='</i>';\n",
68 'format' => _format_CHAINE
,
70 'code:strlen(%s)' => "\$GLOBALS['debut_gras']=%s;\n",
71 'code:!strlen(%s)' => "\$GLOBALS['debut_gras']=\"<strong\$GLOBALS[class_spip]>\";\n",
74 'format' => _format_CHAINE
,
76 'code:strlen(%s)' => "\$GLOBALS['fin_gras']=%s;\n",
77 'code:!strlen(%s)' => "\$GLOBALS['fin_gras']='</strong>';\n",
80 'format'=> _format_CHAINE
,
81 'code:!strlen(%s)'=>"\$GLOBALS['ouvre_ref']=' [';\n",
82 'code:strlen(%s)'=>"\$GLOBALS['ouvre_ref']=%s;\n"
85 'format'=> _format_CHAINE
,
86 'code:!strlen(%s)'=>"\$GLOBALS['ferme_ref']=']';\n",
87 'code:strlen(%s)'=>"\$GLOBALS['ferme_ref']=%s;\n"
89 'nom' => 'ouvre_note',
90 'format'=> _format_CHAINE
,
91 'code:!strlen(%s)'=>"\$GLOBALS['ouvre_note']='[';\n",
92 'code:strlen(%s)'=>"\$GLOBALS['ouvre_note']=%s;\n"
94 'nom' => 'ferme_note',
95 'format'=> _format_CHAINE
,
96 'code:!strlen(%s)'=> "\$GLOBALS['ferme_note']=']';\n",
97 'code:strlen(%s)'=> "\$GLOBALS['ferme_note']=%s;\n"
100 'format' => _format_CHAINE
,
101 'defaut' => defined('_SPIP19300')?
"''":'"AUTO"',
102 'code:strlen(%s)' => "\$GLOBALS['puce']=%s;",