Changeset 4621 for extensions/lightbox/lightbox.php
- Timestamp:
- Jan 4, 2010, 7:32:52 PM (14 years ago)
- Location:
- extensions/lightbox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/lightbox
-
Property
svn:ignore
set to
colorbox
-
Property
svn:ignore
set to
-
extensions/lightbox/lightbox.php
r3298 r4621 10 10 $template->func_known_script(array('id'=>'colorbox', 'src'=>get_root_url().'plugins/lightbox/jquery.colorbox.js'), $smarty); 11 11 $template->block_html_head('', ' 12 <link rel="stylesheet" href="'.get_root_url().'plugins/lightbox/colorbox.css" type="text/css" media="screen"> 13 <link rel="stylesheet" href="'.get_root_url().'plugins/lightbox/theme/'.$params['theme'].'/theme.css" type="text/css" media="screen"> 14 <!--[if IE]> 15 <link type="text/css" media="screen" rel="stylesheet" href="'.get_root_url().'plugins/lightbox/theme/'.$params['theme'].'/theme-ie.css" title="example" /> 16 <![endif]--> 12 <link rel="stylesheet" href="'.get_root_url().'plugins/lightbox/theme/'.$params['theme'].'/colorbox.css" type="text/css" media="screen"> 17 13 <script type="text/javascript"> 18 14 $(document).ready(function(){ … … 21 17 }); 22 18 $(".thumbnails a").colorbox({ 23 c ontentCurrent: "",19 current: "", 24 20 transition: "'.$params['transition'].'", 25 transitionSpeed: "'.$params['transition_speed'].'",21 speed: "'.$params['transition_speed'].'", 26 22 initialWidth: "'.(!empty($params['initial_width']) ? $params['initial_width'] : $config_default['initial_width']).'", 27 23 initialHeight: "'.(!empty($params['initial_height']) ? $params['initial_height'] : $config_default['initial_height']).'", 28 fixedWidth: '.(!empty($params['fixed_width']) ? '"'.$params['fixed_width'].'"' : 'false').',29 fixedHeight: '.(!empty($params['fixed_height']) ? '"'.$params['fixed_height'].'"' : 'false').'24 width: '.(!empty($params['fixed_width']) ? '"'.$params['fixed_width'].'"' : 'false').', 25 height: '.(!empty($params['fixed_height']) ? '"'.$params['fixed_height'].'"' : 'false').' 30 26 }, 31 function( img) {27 function() { 32 28 $.post("'.get_root_url().'plugins/lightbox/save_history.php", { 33 imgid: img.id,29 imgid: this.id, 34 30 catid: "'.@$page['category']['id'].'", 35 31 section: "'.@$page['section'].'",
Note: See TracChangeset
for help on using the changeset viewer.