1<?php
2/**
3 * @license    http://www.cecill.info/licences/Licence_CeCILL-B_V1-fr.html
4 * @author     Francois Merciol <webmestre@fsl56.org>
5 *
6 * Plugin showSamples: display sample from plugins
7 */
8
9if (!defined ('DOKU_INC'))
10    die ();
11if (!defined ('DOKU_PLUGIN'))
12    define ('DOKU_PLUGIN', DOKU_INC.'lib/plugins/');
13require_once (DOKU_PLUGIN.'action.php');
14
15class action_plugin_showsamples extends DokuWiki_Action_Plugin {
16
17    function register (Doku_Event_Handler $controller) {
18        $controller->register_hook ('DOKUWIKI_STARTED', 'AFTER',  $this, '_defconf');
19    }
20
21    function _defconf (&$event, $param) {
22        global $JSINFO;
23        $JSINFO ['carousel'] = array ('delai' => ($this->getConf ('carouselDelai')*1000));
24    }
25}
26