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');
19 // Actives/desactiver les breves
22 function configuration_breves_dist(){
24 $activer_breves = $GLOBALS['meta']["activer_breves"];
26 $res = "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">"
27 . "<tr><td class='verdana2'>"
28 . _T('texte_breves')."<br />\n"
31 . "<tr><td align='center' class='verdana2'>"
32 . afficher_choix('activer_breves', $activer_breves,
33 array('oui' => _T('item_utiliser_breves'),
34 'non' => _T('item_non_utiliser_breves')), " ")
38 $res = debut_cadre_trait_couleur("breve-24.gif", true, "", _T('titre_breves').aide ("confbreves"))
39 . ajax_action_post('configurer', 'breves', 'configuration','',$res)
40 . fin_cadre_trait_couleur(true);
42 return ajax_action_greffe('configurer-breves', '', $res);