1 | <?php |
---|
2 | if (!defined("_ECRIRE_INC_VERSION")) return; |
---|
3 | define('_EXTENSION_PHP', ''); // Ne pas chercher de .php3 ! |
---|
4 | |
---|
5 | define('_BONUX_STYLE',1); // http://zone.spip.org/trac/spip-zone/changeset/35480 |
---|
6 | define('_LARGEUR_MODE_IMAGE', 799); // Voir http://permalink.gmane.org/gmane.comp.web.spip.zone/16461 |
---|
7 | define('_TITRER_DOCUMENTS', true); // Le titre des documents joints est automatiquement pris à partir du nom du fichier (avec mediatheque) ; Voir http://zone.spip.org/trac/spip-zone/changeset/41565 |
---|
8 | |
---|
9 | $GLOBALS['toujours_paragrapher'] = true; |
---|
10 | $GLOBALS['barre_typo_pas_de_fork_typo'] = false; // Pour tenir compte de http://zone.spip.org/trac/spip-zone/changeset/22723 et disposer des raccourcis typo supplémentaires ! |
---|
11 | |
---|
12 | // Recalculer le cache si la config du site change |
---|
13 | $GLOBALS['marqueur'] .= ":".md5($GLOBALS['meta']['boutonstexte'].$GLOBALS['meta']['btv2'].$GLOBALS['meta']['soyezcreateurs_couleurs'].$GLOBALS['meta']['soyezcreateurs_layout'].$GLOBALS['meta']['soyezcreateurs'].$GLOBALS['meta']['soyezcreateurs_google'].$GLOBALS['meta']['bte'].$GLOBALS['meta']['nom_site'].$GLOBALS['meta']['slogan_site'].$GLOBALS['meta']['descriptif_site'].$GLOBALS['meta']['email_webmaster']); // Sur un conseil de Cedric : http://permalink.gmane.org/gmane.comp.web.spip.zone/6258 |
---|
14 | define('_TRI_GROUPES_MOTS', '0+titre,titre'); // cf http://trac.rezo.net/trac/spip/changeset/14712 |
---|
15 | define('_DUREE_CACHE_DEFAUT', 30*24*3600); // pris en compte à partir de http://trac.rezo.net/trac/spip/changeset/10121 |
---|
16 | define('_URLS_PROPRES_MAX', 60); // pris en compte à partire de http://trac.rezo.net/trac/spip/changeset/10346 |
---|
17 | define('_TRI_ARTICLES_RUBRIQUE', '0+titre,date DESC'); // cf http://trac.rezo.net/trac/spip/changeset/11492 |
---|
18 | define("_CLEVERMAIL_NOUVEAUTES_HTML", 'lettre_libre'); |
---|
19 | define("_CLEVERMAIL_NOUVEAUTES_TEXT", 'lettre_libre_txt'); |
---|
20 | define("_CLEVERMAIL_DISTANT", false); |
---|
21 | |
---|
22 | $couleurs = charger_fonction('couleurs', 'inc'); |
---|
23 | $couleurs( array( |
---|
24 | // Vert |
---|
25 | 1 => array ( |
---|
26 | "couleur_foncee" => "#9DBA00", |
---|
27 | "couleur_claire" => "#C5E41C", |
---|
28 | "couleur_lien" => "#657701", |
---|
29 | "couleur_lien_off" => "#A6C113" |
---|
30 | ), |
---|
31 | // Violet clair |
---|
32 | 2 => array ( |
---|
33 | "couleur_foncee" => "#eb68b3", |
---|
34 | "couleur_claire" => "#ffa9e6", |
---|
35 | "couleur_lien" => "#8F004D", |
---|
36 | "couleur_lien_off" => "#BE6B97" |
---|
37 | ), |
---|
38 | // Orange |
---|
39 | 3 => array ( |
---|
40 | "couleur_foncee" => "#fa9a00", |
---|
41 | "couleur_claire" => "#ffc000", |
---|
42 | "couleur_lien" => "#FF5B00", |
---|
43 | "couleur_lien_off" => "#B49280" |
---|
44 | ), |
---|
45 | // Saumon |
---|
46 | 4 => array ( |
---|
47 | "couleur_foncee" => "#CDA261", |
---|
48 | "couleur_claire" => "#FFDDAA", |
---|
49 | "couleur_lien" => "#AA6A09", |
---|
50 | "couleur_lien_off" => "#B79562" |
---|
51 | ), |
---|
52 | // Bleu pastel |
---|
53 | 5 => array ( |
---|
54 | "couleur_foncee" => "#5da7c5", |
---|
55 | "couleur_claire" => "#97d2e1", |
---|
56 | "couleur_lien" => "#116587", |
---|
57 | "couleur_lien_off" => "#81B7CD" |
---|
58 | ), |
---|
59 | // Gris |
---|
60 | 6 => array ( |
---|
61 | "couleur_foncee" => "#85909A", |
---|
62 | "couleur_claire" => "#C0CAD4", |
---|
63 | "couleur_lien" => "#3B5063", |
---|
64 | "couleur_lien_off" => "#6D8499" |
---|
65 | ), |
---|
66 | 7 => array ("couleur_foncee" => "#0F7FB3", |
---|
67 | "couleur_claire" => "#0094d3", |
---|
68 | "couleur_lien" => "#116587", |
---|
69 | "couleur_lien_off" => "#81B7CD" |
---|
70 | ), |
---|
71 | // Vert de gris |
---|
72 | 8 => array ( |
---|
73 | "couleur_foncee" => "#999966", |
---|
74 | "couleur_claire" => "#CCCC99", |
---|
75 | "couleur_lien" => "#666633", |
---|
76 | "couleur_lien_off" => "#999966" |
---|
77 | ), |
---|
78 | // Rose vieux |
---|
79 | 9 => array ( |
---|
80 | "couleur_foncee" => "#EB68B3", |
---|
81 | "couleur_claire" => "#E4A7C5", |
---|
82 | "couleur_lien" => "#8F004D", |
---|
83 | "couleur_lien_off" => "#BE6B97" |
---|
84 | ), |
---|
85 | // Violet |
---|
86 | 10 => array ( |
---|
87 | "couleur_foncee" => "#8F8FBD", |
---|
88 | "couleur_claire" => "#C4C4DD", |
---|
89 | "couleur_lien" => "#6071A5", |
---|
90 | "couleur_lien_off" => "#5C5C8C" |
---|
91 | ), |
---|
92 | // Gris |
---|
93 | 11 => array ( |
---|
94 | "couleur_foncee" => "#909090", |
---|
95 | "couleur_claire" => "#D3D3D3", |
---|
96 | "couleur_lien" => "#808080", |
---|
97 | "couleur_lien_off" => "#909090" |
---|
98 | ), |
---|
99 | )); |
---|
100 | |
---|
101 | // Tous ces parametres sont inutiles et non pris en compte si le plugin cfg est installe |
---|
102 | $GLOBALS['barre_typo_pas_de_fausses_puces'] = true; |
---|
103 | $GLOBALS['BarreTypoEnrichie_Preserve_Header'] = true; |
---|
104 | $GLOBALS['config_intertitre'] = true; // Necessaire pour empécher la configuration par CFG |
---|
105 | $GLOBALS['debut_intertitre'] = '<h2 class="spip">'; |
---|
106 | $GLOBALS['fin_intertitre'] = '</h2>'; |
---|
107 | $GLOBALS['debut_intertitre_2'] = '<h3 class="spip">'; |
---|
108 | $GLOBALS['fin_intertitre_2'] = '</h3>'; |
---|
109 | $GLOBALS['debut_intertitre_3'] = '<h4 class="spip">'; |
---|
110 | $GLOBALS['fin_intertitre_3'] = '</h4>'; |
---|
111 | $GLOBALS['debut_intertitre_4'] = '<h5 class="spip">'; |
---|
112 | $GLOBALS['fin_intertitre_4'] = '</h5>'; |
---|
113 | $GLOBALS['debut_intertitre_5'] = '<h6 class="spip">'; |
---|
114 | $GLOBALS['fin_intertitre_5'] = '</h6>'; |
---|
115 | |
---|
116 | // Pour suivre les recommandations du RGAA : |
---|
117 | $GLOBALS['debut_italique'] = "<em$class_spip>"; |
---|
118 | $GLOBALS['fin_italique'] = '</em>'; |
---|
119 | |
---|
120 | // Pour pouvoir styler en appliquant : http://www.sovavsiti.cz/css/hr.html |
---|
121 | $GLOBALS['ligne_horizontale'] = "\n<div class='hrspip'><hr class='spip' /></div>\n"; |
---|
122 | |
---|
123 | # Envoi de mail aux contributeurs d'un forum si reponse a leur message |
---|
124 | define('_SUIVI_FORUM_THREAD', true); |
---|
125 | |
---|
126 | // Se passer de |supprimer_numero partout |
---|
127 | //$table_des_traitements['TITRE'][]= 'typo(supprimer_numero(%s), "TYPO", $connect)'; // cf http://trac.rezo.net/trac/spip/changeset/15451 |
---|
128 | // Remplacé par un pipeline sur declarer_tables_interfaces |
---|
129 | |
---|
130 | // Gere l'inscription aux evenements |
---|
131 | // cf http://zone.spip.org/trac/spip-zone/changeset/33103 |
---|
132 | $GLOBALS['agenda_affiche_inscription'] = (lire_config('soyezcreateurs/agenda_inscription', '') == 'on') ? 'oui' : 'non'; |
---|
133 | |
---|
134 | define('_CS_OUTILS_CACHES', 'cs_comportement:insert_head:verstexte:trousse_balises:dossier_squelettes:type_urls:filtrer_javascript:spam:moderation_moderee:paragrapher2:auteur_forum:no_IP:flock:spip_cache:forum_lgrmaxi:simpl_interface:icone_visiter:pucesli:glossaire:blocs:toutmulti:decoupe:filets_sep:couleurs:f_jQuery:desactiver_flash:jcorner:SPIP_liens:class_spip:supprimer_numero:xml:visiteurs_connectes:titre_parent:horloge:liens_en_clair:orientation:sommaire:maj_auto:previsualisation:chatons:introduction:forcer_langue:masquer:introduction:tri_articles:webmestres:ecran_securite:autobr'); |
---|
135 | |
---|
136 | ######## PACK ACTUEL DE CONFIGURATION DU COUTEAU SUISSE ######### |
---|
137 | // Attention, les surcharges sur les define() ou les globales ne sont pas specifiees ici |
---|
138 | $GLOBALS['cs_installer']['SoyezCreateurs'] = 'cs_SoyezCreateurs'; |
---|
139 | |
---|
140 | function cs_SoyezCreateurs() { return array( |
---|
141 | // Installation des outils par défaut |
---|
142 | 'outils' => |
---|
143 | 'boites_privees, |
---|
144 | auteurs, |
---|
145 | citations_bb, |
---|
146 | decoration, |
---|
147 | typo_exposants, |
---|
148 | guillemets, |
---|
149 | smileys, |
---|
150 | mailcrypt, |
---|
151 | soft_scroller, |
---|
152 | insertions, |
---|
153 | corbeille, |
---|
154 | spip_ecran', |
---|
155 | |
---|
156 | // Installation des variables par défaut |
---|
157 | 'variables' => array( |
---|
158 | 'expo_bofbof' => 1, |
---|
159 | 'decoration_styles' => 'span.surfluo = background-color:#ffff00; padding:0px 2px; |
---|
160 | span.surgris = background-color:#EAEAEC; padding:0px 2px; |
---|
161 | fluo = surfluo |
---|
162 | span.en.lang = en |
---|
163 | span.de.lang = de |
---|
164 | span.it.lang = it |
---|
165 | span.es.lang = es |
---|
166 | div.bloc-en.lang = en |
---|
167 | div.bloc-de.lang = de |
---|
168 | div.bloc-it.lang = it |
---|
169 | div.bloc-es.lang = es', |
---|
170 | 'pp_edition_decoration' => 1, |
---|
171 | 'pp_forum_decoration' => 1, |
---|
172 | 'spip_ecran' => 'large', |
---|
173 | 'insertions' => 'oeuf = œuf |
---|
174 | cceuil = ccueil |
---|
175 | (a priori) = {a priori} |
---|
176 | (([hH])uits) = $1uit |
---|
177 | /([cC]h?)oeur/ = $1œur |
---|
178 | /oeuvre/ = œuvre |
---|
179 | (O[Ee]uvre([rs]?)) = Œuvre$1 |
---|
180 | /\\b([cC]|[mM].c|[rR]ec)on+ais+a((?:n(?:ce|te?)|ble)s?)\\b/ = $1onnaissa$2 |
---|
181 | CO2 = <abbr title="CO2, Dioxyde de carbone, O=C=O">CO<sub>2</sub></abbr> |
---|
182 | oeil = œil |
---|
183 | (O[Ee]il) = Œil', |
---|
184 | 'cs_rss' => 0, |
---|
185 | 'format_spip' => 0, |
---|
186 | 'stat_auteurs' => 1, |
---|
187 | 'qui_webmasters' => 1, |
---|
188 | 'bp_urls_propres' => 1, |
---|
189 | 'bp_tri_auteurs' => 1 |
---|
190 | ) |
---|
191 | ); |
---|
192 | } |
---|
193 | |
---|
194 | function balise_SECTEUR_PDF_dist($p) { |
---|
195 | if (!is_array($p->param)) |
---|
196 | $p->param=array(); |
---|
197 | |
---|
198 | // Produire le premier argument {secteur_pdf} |
---|
199 | $texte = new Texte; |
---|
200 | $texte->type='texte'; |
---|
201 | $texte->texte='secteur_pdf'; |
---|
202 | $param = array(0=>NULL, 1=>array(0=>$texte)); |
---|
203 | array_unshift($p->param, $param); |
---|
204 | |
---|
205 | // Transformer les filtres en arguments |
---|
206 | for ($i=1; $i<count($p->param); $i++) { |
---|
207 | if ($p->param[$i][0]) { |
---|
208 | if (!strstr($p->param[$i][0], '=')) |
---|
209 | break;# on a rencontre un vrai filtre, c'est fini |
---|
210 | $texte = new Texte; |
---|
211 | $texte->type='texte'; |
---|
212 | $texte->texte=$p->param[$i][0]; |
---|
213 | $param = array(0=>$texte); |
---|
214 | $p->param[$i][1] = $param; |
---|
215 | $p->param[$i][0] = NULL; |
---|
216 | } |
---|
217 | } |
---|
218 | |
---|
219 | // Appeler la balise #MODELE{secteur_pdf}{arguments} |
---|
220 | if (!function_exists($f = 'balise_modele')) |
---|
221 | $f = 'balise_modele_dist'; |
---|
222 | return $f($p); |
---|
223 | } |
---|
224 | |
---|
225 | function autoriser_evenement_creer_bouton($faire, $type='', $id=0, $qui = NULL, $opt = NULL){ |
---|
226 | if (isset($opt['contexte']['id_article'])) |
---|
227 | return autoriser('creerevenementdans','article',$opt['contexte']['id_article'],$qui); |
---|
228 | return false; |
---|
229 | } |
---|
230 | |
---|
231 | include_spip('inc/plugin'); |
---|
232 | |
---|
233 | if ($plugins_actifs = liste_plugin_actifs() AND empty($plugins_actifs[strtoupper('critere_mots')])){ |
---|
234 | function critere_mots_dist($idb, &$boucles, $crit){ |
---|
235 | return true; |
---|
236 | } |
---|
237 | function critere_mots_selon_id_dist($idb, &$boucles, $crit){ |
---|
238 | return true; |
---|
239 | } |
---|
240 | function critere_mots_selon_titre_dist($idb, &$boucles, $crit){ |
---|
241 | return true; |
---|
242 | } |
---|
243 | } |
---|
244 | ?> |
---|