Changeset 17139


Ignore:
Timestamp:
Jul 26, 2012, 5:27:28 PM (12 years ago)
Author:
plg
Message:

add plugin Lightbox

Location:
extensions/lightbox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/lightbox/functions.inc.php

    r12856 r17139  
    99  if (in_array($ext, $conf['picture_ext']))
    1010  {
    11     return get_root_url().$picture['path'];
     11    return DerivativeImage::url(IMG_LARGE, new SrcImage($picture));
    1212  }
    1313  elseif (isset($py_addext) and in_array($ext, $py_addext))
  • extensions/lightbox/lightbox.php

    r13654 r17139  
    88$selector = 'a[rel=colorbox'.$conf['lightbox_rel'].']';
    99
    10 $template->func_combine_script(array('id'=>'jquery.colorbox', 'path'=>'plugins/lightbox/js/jquery.colorbox.js'), $smarty);
    11 $template->func_combine_script(array('id'=>'core.scripts', 'path'=>'themes/default/js/scripts.js'), $smarty);
    12 $template->func_combine_css(array('path'=>'plugins/lightbox/theme/'.$params['theme'].'/colorbox.css'), $smarty);
     10$template->func_combine_script(array('id'=>'jquery.colorbox', 'path'=>'plugins/lightbox/js/jquery.colorbox.js'));
     11$template->func_combine_script(array('id'=>'core.scripts', 'path'=>'themes/default/js/scripts.js'));
     12$template->func_combine_css(array('path'=>'plugins/lightbox/theme/'.$params['theme'].'/colorbox.css'));
    1313$template->block_html_head('','
    1414<script type="text/javascript">
     
    3939</script>
    4040<style type="text/css">img.cboxPhoto { max-width: none; }</style>
    41 ', $smarty, $repeat);
     41');
    4242
    4343foreach($tpl_thumbnails_var as $key => $tpl_var)
Note: See TracChangeset for help on using the changeset viewer.