source: spip-zone/_plugins_/-jQuery/head.php @ 4903

Last change on this file since 4903 was 4903, checked in by fil@…, 15 years ago

bug au chargement du plugin jquery quand INSERT_HEAD est initialement vide

File size: 444 bytes
Line 
1<?php
2
3function JQuery_insert_head($flux){
4                //if (_request('jqdb')!==NULL)
5                        $js = '<script src="'.find_in_path('jquery.lite.213.js').'" type="text/javascript"></script>';
6                        $js .= '<script src="'.find_in_path('form.js').'" type="text/javascript"></script>';
7                //else
8                //      $js = '<script src="'.find_in_path('jquery.pack.213.js').'" type="text/javascript"></script>';
9               
10                return preg_replace('/(<script )?/', $js."\n\$1", $flux, 1);
11        }
12
13?>
Note: See TracBrowser for help on using the repository browser.