Changeset 4826 for extensions/lightbox


Ignore:
Timestamp:
02/02/10 11:10:48 (10 years ago)
Author:
patdenice
Message:

Load jquery earlier...
Compatibility with AMM.

Location:
extensions/lightbox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/lightbox/lightbox.php

    r4621 r4826  
    77$conf['lightbox_rel'] = isset($conf['lightbox_rel']) ? ++$conf['lightbox_rel'] : 0; 
    88 
    9 $template->func_known_script(array('id'=>'jquery', 'src'=>get_root_url().'plugins/lightbox/jquery.min.js'), $smarty); 
    109$template->func_known_script(array('id'=>'colorbox', 'src'=>get_root_url().'plugins/lightbox/jquery.colorbox.js'), $smarty); 
    1110$template->block_html_head('', ' 
  • extensions/lightbox/main.inc.php

    r4621 r4826  
    1111define('LIGHTBOX_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); 
    1212 
     13add_event_handler('init', 'load_jquery_lightbox_plugin'); 
    1314add_event_handler('loc_end_index_thumbnails', 'lightbox_plugin', 40, 2); 
     15 
     16function load_jquery_lightbox_plugin() 
     17{ 
     18  global $template; 
     19 
     20  $template->func_known_script(array('id'=>'jquery', 'src'=>get_root_url().'plugins/lightbox/jquery.min.js'), $smarty); 
     21} 
    1422 
    1523function lightbox_plugin($tpl_thumbnails_var, $pictures) 
Note: See TracChangeset for help on using the changeset viewer.