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;
18 * affichage des liste d'objets
19 * surcharge pour aiguiller vers la mise en skel
22 * @param string $titre
23 * @param array $requete
24 * @param string $formater
28 function inc_lister_objets_dist($vue, $contexte=array(), $force=false){
30 if (!is_array($contexte))
31 return _L('$contexte doit etre un tableau dans inc/lister_objets');
33 $fond = "prive/objets/liste/$vue";
34 if (!find_in_path($fond."."._EXTENSION_SQUELETTES
)) {
35 // traiter les cas particuliers
36 include_spip('base/connect_sql');
37 $vue = table_objet($vue);
38 $fond = "prive/objets/liste/$vue";
39 if (!find_in_path($fond."."._EXTENSION_SQUELETTES
))
40 return _L("vue $vue introuvable pour lister les objets");
44 $contexte['sinon']=($force ?
$contexte['titre']:'');
46 $res = recuperer_fond($fond,$contexte,array('ajax'=>true));
47 if (_request('var_liste'))
48 echo var_export($contexte, true);