Changeset 4826
- Timestamp:
- Feb 2, 2010, 11:10:48 AM (14 years ago)
- Location:
- extensions/lightbox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/lightbox/lightbox.php
r4621 r4826 7 7 $conf['lightbox_rel'] = isset($conf['lightbox_rel']) ? ++$conf['lightbox_rel'] : 0; 8 8 9 $template->func_known_script(array('id'=>'jquery', 'src'=>get_root_url().'plugins/lightbox/jquery.min.js'), $smarty);10 9 $template->func_known_script(array('id'=>'colorbox', 'src'=>get_root_url().'plugins/lightbox/jquery.colorbox.js'), $smarty); 11 10 $template->block_html_head('', ' -
extensions/lightbox/main.inc.php
r4621 r4826 11 11 define('LIGHTBOX_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); 12 12 13 add_event_handler('init', 'load_jquery_lightbox_plugin'); 13 14 add_event_handler('loc_end_index_thumbnails', 'lightbox_plugin', 40, 2); 15 16 function 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 } 14 22 15 23 function lightbox_plugin($tpl_thumbnails_var, $pictures)
Note: See TracChangeset
for help on using the changeset viewer.