Last change
on this file since 112707 was
112707,
checked in by real3t@…, 2 years ago
|
Sortir les réseaux sociaux de ce qui constitue une adresse
|
File size:
1.2 KB
|
Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | * Pipeline pour SoyezCreateurs |
---|
4 | * Realisation : RealET : real3t@gmail.com |
---|
5 | * Attention, fichier en UTF-8 sans BOM |
---|
6 | */ |
---|
7 | |
---|
8 | if (!defined('_ECRIRE_INC_VERSION')) return; |
---|
9 | |
---|
10 | function soyezcreateurs_jqueryui_plugins($scripts) { |
---|
11 | if (lire_config('soyezcreateurs/native_tooltips') !== 'on') { |
---|
12 | $scripts[] = "jquery.ui.tooltip"; |
---|
13 | } |
---|
14 | return $scripts; |
---|
15 | } |
---|
16 | |
---|
17 | function soyezcreateurs_formulaire_traiter($flux){ |
---|
18 | if(strpos($flux['args']['form'], 'configurer_soyezcreateurs') !== false){ |
---|
19 | include_spip('inc/invalideur'); |
---|
20 | purger_repertoire(_DIR_VAR.'cache-css'); |
---|
21 | purger_repertoire(_DIR_VAR.'cache-js'); |
---|
22 | suivre_invalideur('configurer_soyezcreateurs'); |
---|
23 | } |
---|
24 | return $flux; |
---|
25 | } |
---|
26 | |
---|
27 | function soyezcreateurs_noizetier_blocs_defaut($flux) { |
---|
28 | $flux = array('contenu'); |
---|
29 | return $flux; |
---|
30 | } |
---|
31 | |
---|
32 | function soyezcreateurs_identite_extra_champs($champs) { |
---|
33 | define('_CHAMPS_INDENTITE_EXTRA_SC', 'adresse,code_postal,ville,pays,telephone,fax,email_contact,informations,id_article_contact,latitude,longitude'); |
---|
34 | $champs = explode(',', _CHAMPS_INDENTITE_EXTRA_SC); |
---|
35 | $champs[] = 'facebook'; |
---|
36 | $champs[] = 'twitter'; |
---|
37 | $champs[] = 'linkedin'; |
---|
38 | $champs[] = 'instagram'; |
---|
39 | $champs[] = 'pinterest'; |
---|
40 | $champs[] = 'viadeo'; |
---|
41 | return $champs; |
---|
42 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.