Changeset 10078 for extensions/lightbox/lightbox.php
- Timestamp:
- Apr 5, 2011, 7:23:52 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/lightbox/lightbox.php
r9978 r10078 8 8 $selector = 'a[rel=colorbox'.$conf['lightbox_rel'].']'; 9 9 10 $template->func_combine_script(array('id'=>'jquery.colorbox', 'path'=>'plugins/lightbox/js/jquery.colorbox.js' , 'load'=>'footer'), $smarty);10 $template->func_combine_script(array('id'=>'jquery.colorbox', 'path'=>'plugins/lightbox/js/jquery.colorbox.js'), $smarty); 11 11 $template->func_combine_css(array('path'=>'plugins/lightbox/theme/'.$params['theme'].'/colorbox.css'), $smarty); 12 $template->block_footer_script(array('require'=>'jquery.colorbox'), ' 12 $template->block_html_head('',' 13 <script type="text/javascript"> 13 14 jQuery(document).ready(function(){ 14 15 jQuery("'.$selector.'").attr("href", function () { … … 33 34 }); 34 35 }); 36 </script> 35 37 ', $smarty, $repeat); 36 38
Note: See TracChangeset
for help on using the changeset viewer.