[SPIP] +2.1.12
[velocampus/web/www.git] / www / plugins / auto / couteau_suisse / couteau_suisse / outils / class_spip_config.php
1 <?php
2 if (!defined("_ECRIRE_INC_VERSION")) return;
3
4 # Fichier de configuration pris en compte par config_outils.php et specialement dedie a la configuration des 'class' SPIP
5 # -----------------------------------------------------------------------------------------------------------------------
6
7 function outils_class_spip_config_dist() {
8
9 // Ajout de l'outil 'class_spip'
10 add_outil(array(
11 'id' => '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',
15 'description' =>
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
20 '<:class_spip:3:>'.
21 // des SPIP 2.0 : les italiques, les gras + les styles
22 (!defined('_SPIP19300')?'':'<:class_spip:4:>'),
23 ));
24
25 // Ajout des variables utilisees ci-dessus
26 add_variables(array(
27 'nom' => 'style_p',
28 'format' => _format_CHAINE,
29 'defaut' => "''",
30 'code:strlen(%s)' => ' class=%s',
31 ), array(
32 'nom' => 'style_h',
33 'format' => _format_CHAINE,
34 'defaut' => '"spip"',
35 'code:strlen(%s)' => ' class=%s',
36 ), array(
37 'nom' => 'racc_hr',
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":"",
42 ), array(
43 'nom' => 'racc_h1',
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",
48 ), array(
49 'nom' => 'racc_h2',
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",
54 ), array(
55 'nom' => 'racc_i1',
56 'format' => _format_CHAINE,
57 'defaut' => '',
58 'code:strlen(%s)' => "\$GLOBALS['debut_italique']=%s;\n",
59 'code:!strlen(%s)' => "\$GLOBALS['debut_italique']=\"<i\$GLOBALS[class_spip]>\";\n",
60 ), array(
61 'nom' => 'racc_i2',
62 'format' => _format_CHAINE,
63 'defaut' => '',
64 'code:strlen(%s)' => "\$GLOBALS['fin_italique']=%s;\n",
65 'code:!strlen(%s)' => "\$GLOBALS['fin_italique']='</i>';\n",
66 ), array(
67 'nom' => 'racc_g1',
68 'format' => _format_CHAINE,
69 'defaut' => '',
70 'code:strlen(%s)' => "\$GLOBALS['debut_gras']=%s;\n",
71 'code:!strlen(%s)' => "\$GLOBALS['debut_gras']=\"<strong\$GLOBALS[class_spip]>\";\n",
72 ), array(
73 'nom' => 'racc_g2',
74 'format' => _format_CHAINE,
75 'defaut' => '',
76 'code:strlen(%s)' => "\$GLOBALS['fin_gras']=%s;\n",
77 'code:!strlen(%s)' => "\$GLOBALS['fin_gras']='</strong>';\n",
78 ), array(
79 'nom' => 'ouvre_ref',
80 'format'=> _format_CHAINE,
81 'code:!strlen(%s)'=>"\$GLOBALS['ouvre_ref']='&nbsp;[';\n",
82 'code:strlen(%s)'=>"\$GLOBALS['ouvre_ref']=%s;\n"
83 ), array(
84 'nom' => 'ferme_ref',
85 'format'=> _format_CHAINE,
86 'code:!strlen(%s)'=>"\$GLOBALS['ferme_ref']=']';\n",
87 'code:strlen(%s)'=>"\$GLOBALS['ferme_ref']=%s;\n"
88 ), array(
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"
93 ), array(
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"
98 ), array(
99 'nom' => 'puce',
100 'format' => _format_CHAINE,
101 'defaut' => defined('_SPIP19300')?"''":'"AUTO"',
102 'code:strlen(%s)' => "\$GLOBALS['puce']=%s;",
103 ));
104
105 }
106
107 ?>