Changeset 18823 for extensions/Autosize/main.inc.php
- Timestamp:
- Oct 31, 2012, 12:58:54 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/main.inc.php
r18731 r18823 2 2 /* 3 3 Plugin Name: AutoSize 4 Version: 2.11. 04 Version: 2.11.1 5 5 Description: Ajuste l'affichage des photos en fonction de la hauteur de la fenetre de navigation 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=448 … … 30 30 include_once(AUTOSIZE_PATH.'autosize.inc.php'); 31 31 //================================================================== 32 global $page,$autosize_c ontroler;32 global $page,$autosize_ctrl; 33 33 if (!isset( $page['start'])) { 34 34 $page['start']=0; 35 35 } 36 $autosize_c ontroler = new autosize_controler();37 add_event_handler('get_admin_plugin_menu_links', array(&$autosize_c ontroler,'cl_autosize_admin') );36 $autosize_ctrl = new autosize_ctrl(); 37 add_event_handler('get_admin_plugin_menu_links', array(&$autosize_ctrl,'cl_autosize_admin') ); 38 38 39 if( isset($_GET['cl_debug']) && $_GET['cl_debug'] =='false') { 40 $DEBUG_autosize=""; 41 }else{ 42 $DEBUG_autosize = isset($_POST['cl_debug']) ? $_POST['cl_debug'] : "" ; 43 $DEBUG_autosize = isset($_GET['cl_debug']) ? $_GET['cl_debug'] : $DEBUG_autosize ; 44 $DEBUG_autosize = isset($conf['cl_debug']) ? $conf['cl_debug']."," . $DEBUG_autosize : $DEBUG_autosize ; 45 //=============================================================== 46 } 47 if(!preg_match("|NO|", $DEBUG_autosize, $val)) { 39 48 40 49 // init cl_autosize_script_1 cl_autosize_affiche 41 //Important avant pamooramics 42 add_event_handler('render_element_content', array(&$autosize_controler, 'autosize_calcContent'),40,2); 50 //Important avant pamooramics, gvideo 51 52 add_event_handler('render_element_content', array(&$autosize_ctrl, 'autosize_calcContent'),EVENT_HANDLER_PRIORITY_NEUTRAL-11,2); 53 43 54 /**/ 44 add_event_handler('render_element_content', array(&$autosize_c ontroler,'init'),EVENT_HANDLER_PRIORITY_NEUTRAL-1,2 );45 add_event_handler('render_element_content', array(&$autosize_c ontroler,'init2'),EVENT_HANDLER_PRIORITY_NEUTRAL+1,2 );46 add_event_handler('loc_after_page_header', array(&$autosize_c ontroler, 'cl_autosize_script_1') );47 add_event_handler('loc_after_page_header', array(&$autosize_c ontroler, 'cl_autosize_script_2') );48 add_event_handler('loc_after_page_header',array(&$autosize_c ontroler, 'cl_autosize_script_3') );49 add_event_handler('loc_after_page_header', array(&$autosize_c ontroler, 'cl_autosize_affiche'), EVENT_HANDLER_PRIORITY_NEUTRAL +21 );55 add_event_handler('render_element_content', array(&$autosize_ctrl,'init'),EVENT_HANDLER_PRIORITY_NEUTRAL-1,2 ); 56 add_event_handler('render_element_content', array(&$autosize_ctrl,'init2'),EVENT_HANDLER_PRIORITY_NEUTRAL+1,2 ); 57 add_event_handler('loc_after_page_header', array(&$autosize_ctrl, 'cl_autosize_script_1') ); 58 add_event_handler('loc_after_page_header', array(&$autosize_ctrl, 'cl_autosize_script_2') ); 59 add_event_handler('loc_after_page_header',array(&$autosize_ctrl, 'cl_autosize_script_3') ); 60 add_event_handler('loc_after_page_header', array(&$autosize_ctrl, 'cl_autosize_affiche'), EVENT_HANDLER_PRIORITY_NEUTRAL +21 ); 50 61 } 62 } ; 51 63 52 64
Note: See TracChangeset
for help on using the changeset viewer.