Ignore:
Timestamp:
Aug 9, 2012, 8:35:17 PM (12 years ago)
Author:
cljosse
Message:

[extensions] Autosize fix compatibility with 2.4, update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/main.inc.php

    r17309 r17503  
    22/*
    33Plugin Name: AutoSize
    4 Version: 2.05
     4Version: 2.06
    55Description: Ajuste l'affichage des photos en fonction de la hauteur de la fenetre de navigation
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=448
     
    3434add_event_handler('get_admin_plugin_menu_links', array(&$autosize_controler,'cl_autosize_admin')  );
    3535
    36  add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_script_1'),  EVENT_HANDLER_PRIORITY_NEUTRAL   );   
    3736
    38 add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_affiche'), EVENT_HANDLER_PRIORITY_NEUTRAL+21  );
    39 
    40 add_event_handler('loc_end_page_tail',array(&$autosize_controler, 'cl_autosize_script_3'),  EVENT_HANDLER_PRIORITY_NEUTRAL-1);
     37// init cl_autosize_script_1 cl_autosize_affiche
    4138
    4239
    43 add_event_handler('render_element_content', array(&$autosize_controler, 'autosize_calcContent'),40,2);
     40add_event_handler('render_element_content',  array(&$autosize_controler,'init'),EVENT_HANDLER_PRIORITY_NEUTRAL,2  );
     41
     42//avant pamooramics
     43add_event_handler('render_element_content', array(&$autosize_controler, 'autosize_calcContent'),40,2);
     44
     45add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_script_2'),  EVENT_HANDLER_PRIORITY_NEUTRAL   );
     46
     47add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_script_1'),  EVENT_HANDLER_PRIORITY_NEUTRAL   );
     48
     49add_event_handler('loc_after_page_header',array(&$autosize_controler, 'cl_autosize_script_3'),  EVENT_HANDLER_PRIORITY_NEUTRAL  );
     50
     51add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_affiche'), EVENT_HANDLER_PRIORITY_NEUTRAL +21    );
     52
     53
    4454
    4555?>
Note: See TracChangeset for help on using the changeset viewer.