[SPIP] +2.1.12
[velocampus/web/www.git] / www / ecrire / exec / config_multilang.php
1 <?php
2
3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
5 * *
6 * Copyright (c) 2001-2011 *
7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
8 * *
9 * Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
10 * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. *
11 \***************************************************************************/
12
13 if (!defined('_ECRIRE_INC_VERSION')) return;
14
15 include_spip('inc/presentation');
16 include_spip('inc/rubriques');
17
18 // http://doc.spip.org/@exec_config_multilang_dist
19 function exec_config_multilang_dist()
20 {
21
22 if (!autoriser('configurer', 'multilang')) {
23 include_spip('inc/minipres');
24 echo minipres();
25 } else {
26
27 $config = charger_fonction('config', 'inc');
28 $config();
29
30 pipeline('exec_init',array('args'=>array('exec'=>'config_multilang'),'data'=>''));
31 $commencer_page = charger_fonction('commencer_page', 'inc');
32 echo $commencer_page(_T('titre_page_config_contenu'), "configuration", "langues");
33
34 echo debut_gauche('', true);
35
36 echo pipeline('affiche_gauche',array('args'=>array('exec'=>'config_multilang'),'data'=>''));
37 echo creer_colonne_droite('', true);
38 echo pipeline('affiche_droite',array('args'=>array('exec'=>'config_multilang'),'data'=>''));
39 echo debut_droite('', true);
40
41 echo "<br /><div style='text-align: center'>",
42 gros_titre(_T('info_langues'),'', false),
43 '</div><br />',
44 barre_onglets("config_lang", "multi"),
45 '<br />';
46
47 $referenceur = charger_fonction('referenceur', 'configuration');
48 echo $referenceur();
49
50 if ($GLOBALS['meta']['multi_articles'] == "oui"
51 OR $GLOBALS['meta']['multi_rubriques'] == "oui"
52 OR count(explode(',',$GLOBALS['meta']['langues_utilisees'])) > 1) {
53 $locuteur = charger_fonction('locuteur', 'configuration');
54 echo $locuteur();
55 }
56
57 echo fin_gauche(), fin_page();
58 }
59 }
60 ?>