|
Revision 7895, 1.2 KB
(checked in by cljosse, 2 years ago)
|
|
[cl_conflit] save
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | /* |
|---|
| 3 | Plugin Name: cl_conflit |
|---|
| 4 | Version: 1.0.0 |
|---|
| 5 | Description: gestion des conflits entre jQuery et les autres librairies |
|---|
| 6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=474 |
|---|
| 7 | Author: cljosse |
|---|
| 8 | Author URI:http://cljosse.free.fr |
|---|
| 9 | */ |
|---|
| 10 | |
|---|
| 11 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
|---|
| 12 | if (!defined('CONFLIT_PATH')) |
|---|
| 13 | define( 'CONFLIT_PATH', PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/' ); |
|---|
| 14 | |
|---|
| 15 | $path = CONFLIT_PATH; |
|---|
| 16 | |
|---|
| 17 | //============================================================================ |
|---|
| 18 | global $cl_version , $cl_plugin ; |
|---|
| 19 | $cl_version = $plugin; |
|---|
| 20 | $cl_plugin = $plugin; |
|---|
| 21 | //============================================================================ |
|---|
| 22 | include_once(CONFLIT_PATH.'conflit.inc.php'); |
|---|
| 23 | $conflit_controler = new conflit_controler(); |
|---|
| 24 | |
|---|
| 25 | add_event_handler('loc_after_page_header', array(&$conflit_controler, 'cl_conflit_script'), EVENT_HANDLER_PRIORITY_NEUTRAL+20 , 2); |
|---|
| 26 | add_event_handler('loc_end_page_tail',array(&$conflit_controler, 'cl_conflit_script_2'), EVENT_HANDLER_PRIORITY_NEUTRAL ); |
|---|
| 27 | add_event_handler('render_element_content',array(&$conflit_controler, 'cl_conflit_script_3'), EVENT_HANDLER_PRIORITY_NEUTRAL-1, 2 ); |
|---|
| 28 | |
|---|
| 29 | |
|---|
| 30 | ?> |
|---|