Ignore:
Timestamp:
Jan 26, 2014, 7:21:38 PM (10 years ago)
Author:
mistic100
Message:

remove is_adviser(), use core javascript, update themes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/lightbox/lightbox.php

    r26984 r26985  
    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'));
    11 $template->func_combine_script(array('id'=>'core.scripts', 'path'=>'themes/default/js/scripts.js'));
     10$template->func_combine_script(array('id'=>'jquery.colorbox', 'path'=>'themes/default/js/plugins/jquery.colorbox.min.js'));
    1211$template->func_combine_css(array('id'=>'colorbox','path'=>'plugins/lightbox/theme/'.$params['theme'].'/colorbox.css'));
    13 $template->block_html_head('','
    14 <script type="text/javascript">
     12$template->block_footer_script('','
    1513function PWG_Colorbox() {
    1614  jQuery("'.$selector.'").attr("href", function () {
     
    3735jQuery(document).ready(PWG_Colorbox);
    3836jQuery(window).bind("RVTS_loaded", PWG_Colorbox);
    39 </script>
    40 <style type="text/css">img.cboxPhoto { max-width: none; }</style>
    4137');
     38$template->block_html_style('', 'img.cboxPhoto { max-width: none; }');
    4239
    4340foreach($tpl_thumbnails_var as $key => $tpl_var)
Note: See TracChangeset for help on using the changeset viewer.