source: spip-zone/_plugins_/formulaires_uniform/form_uniform.php @ 107918

Last change on this file since 107918 was 35276, checked in by arno@…, 10 years ago

Nouveau plugin: uniformiser graphiquement les boutons radio, checkbox et upload.

File size: 616 bytes
Line 
1<?php
2
3$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
4define('_DIR_PLUGIN_FORM_UNIFORM',(_DIR_PLUGINS.end($p)));
5
6function form_uniform_charger_script($flux) {
7
8
9
10        $flux .= '<link rel="stylesheet" href="'._DIR_PLUGIN_FORM_UNIFORM.'css/uniform.default.css" type="text/css" media="all" />';
11        $flux .= '<script type="text/javascript" src="'._DIR_PLUGIN_FORM_UNIFORM.'jquery.uniform.js"></script>';
12       
13        $flux .= '<script type="text/javascript">
14                $(document).ready(function() {
15                        $("input:checkbox, input:radio, input:file").uniform();
16                });
17        </script>';
18       
19        return $flux;
20}
21
22?>
Note: See TracBrowser for help on using the repository browser.