7021147549b6138d6051c71d6b2900d859583af1
3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
6 * Copyright (c) 2001-2011 *
7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
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 \***************************************************************************/
13 if (!defined('_ECRIRE_INC_VERSION')) return;
15 include_spip('inc/presentation');
16 include_spip('inc/rubriques');
18 // http://doc.spip.org/@exec_config_multilang_dist
19 function exec_config_multilang_dist()
22 if (!autoriser('configurer', 'multilang')) {
23 include_spip('inc/minipres');
27 $config = charger_fonction('config', 'inc');
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");
34 echo debut_gauche('', true);
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);
41 echo "<br /><div style='text-align: center'>",
42 gros_titre(_T('info_langues'),'', false),
44 barre_onglets("config_lang", "multi"),
47 $referenceur = charger_fonction('referenceur', 'configuration');
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');
57 echo fin_gauche(), fin_page();