[PLUGINS] +crayons
[lhc/web/clavette_www.git] / www / plugins / crayons / controleurs / portfolio.php
1 <?php
2
3 if (!defined("_ECRIRE_INC_VERSION")) return;
4
5 // un controleur php (TODO -- NE FONCTIONNE PAS DU TOUT)
6
7 function controleurs_portfolio_dist($regs) {
8 list(,$crayon,$type,$champ,$id) = $regs;
9
10 include_spip('inc/minipres'); # pour aide()
11 include_spip('inc/presentation'); # pour debut_cadre()
12 include_spip('inc/layer'); # pour le js des fleches
13 include_spip('inc/documents'); # pour aide()
14
15 $html =
16 http_script("\nvar ajax_image_searching = \n'<div style=\"float: ".$GLOBALS['spip_lang_right'].";\"><img src=\"".url_absolue(_DIR_IMG_PACK."searching.gif")."\" alt=\"\" /></div>';")
17 . http_script('', generer_url_public('jquery.js'))
18 . http_script('', _DIR_JAVASCRIPT . 'layer.js','')
19 . afficher_documents_colonne($id, $type, 'portfolio');
20
21 $status = NULL;
22
23 return array($html, $status);
24 }
25
26
27
28
29 ?>