362206ad7dcfe8047a334529fb019796e5df428e
[lhc/web/www.git] / www / plugins / crayons / controleurs / portfolio.php
1 <?php
2
3 if (!defined('_ECRIRE_INC_VERSION')) {
4 return;
5 }
6
7 // un controleur php (TODO -- NE FONCTIONNE PAS DU TOUT)
8
9 function controleurs_portfolio_dist($regs) {
10 list(,$crayon,$type,$champ,$id) = $regs;
11
12 include_spip('inc/minipres'); # pour aide()
13 include_spip('inc/presentation'); # pour debut_cadre()
14 include_spip('inc/layer'); # pour le js des fleches
15 include_spip('inc/documents'); # pour aide()
16
17 $html =
18 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>';")
19 . http_script('', generer_url_public('jquery.js'))
20 . http_script('', _DIR_JAVASCRIPT . 'layer.js', '')
21 . afficher_documents_colonne($id, $type, 'portfolio');
22
23 $status = null;
24
25 return array($html, $status);
26 }