3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
6 * Copyright (c) 2001-2014 *
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/config');
18 function configuration_referenceur_dist()
20 global $spip_lang_right;
22 $res = "<p>"._T('texte_multilinguisme')."</p>"
24 . _T('info_multi_articles')
25 . "<div style='text-align: $spip_lang_right;'>"
26 . afficher_choix('multi_articles', $GLOBALS['meta']['multi_articles'],
27 array('oui' => _T('item_oui'), 'non' => _T('item_non')), " ")
31 . _T('info_multi_rubriques')
32 . "<div style='text-align: $spip_lang_right;'>"
33 . afficher_choix('multi_rubriques', $GLOBALS['meta']['multi_rubriques'],
34 array('oui' => _T('item_oui'), 'non' => _T('item_non')), " ")
38 if ($GLOBALS['meta']['multi_rubriques'] == 'oui') {
40 . _T('info_multi_secteurs')
41 . "<div style='text-align: $spip_lang_right;'>"
42 . afficher_choix('multi_secteurs', $GLOBALS['meta']['multi_secteurs'],
43 array('oui' => _T('item_oui'), 'non' => _T('item_non')), " ")
47 $res .= "<input type='hidden' name='multi_secteurs' id='multi_secteurs' value='".$GLOBALS['meta']['multi_secteurs']."' />";
49 if (($GLOBALS['meta']['multi_rubriques'] == 'oui') OR ($GLOBALS['meta']['multi_articles'] == 'oui')) {
51 . "<p>"._T('texte_multilinguisme_trad')."</p>";
53 $res .= _T('info_gerer_trad')
54 . "<div style='text-align: $spip_lang_right;'>"
55 . afficher_choix('gerer_trad', $GLOBALS['meta']['gerer_trad'],
56 array('oui' => _T('item_oui'), 'non' => _T('item_non')), " ")
59 $res .= "<input type='hidden' name='gerer_trad' id='gerer_trad' value='".$GLOBALS['meta']['gerer_trad']."' />";
61 $res = debut_cadre_couleur("traductions-24.gif", true, "", _T('info_multilinguisme'))
62 . ajax_action_post('configurer', 'referenceur', 'config_multilang', '', $res)
63 . fin_cadre_couleur(true);
65 return ajax_action_greffe("configurer-referenceur", '', $res);