Dotclear

Changeset 2064


Ignore:
Timestamp:
02/12/10 00:36:48 (13 years ago)
Author:
Tomtom33
Message:

colorbox 1.3.2 :

  • fixes gallery issue
Location:
plugins/colorbox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/colorbox/_define.php

    r2062 r2064  
    1515     /* Description*/         "ColorBox like effect on images using jquery ColorBox plugin", 
    1616     /* Author */             "Philippe aka amalgame and contributors", 
    17      /* Version */            '1.3.1', 
     17     /* Version */            '1.3.2', 
    1818     /* Permissions */        'admin' 
    1919); 
  • plugins/colorbox/_public.php

    r2062 r2064  
    5252          echo 
    5353          '$(window).load(function(){'. 
     54               'var count = 0; '. 
    5455               '$("'.$selectors.'").each(function() {'."\n". 
     56                    'count++;'."\n". 
    5557                    '$(this).find("a[href$=.jpg],a[href$=.jpeg],a[href$=.png],a[href$=.gif],'. 
    5658                    'a[href$=.JPG],a[href$=.JPEG],a[href$=.PNG],a[href$=.GIF]").addClass("colorbox_zoom");'."\n". 
    5759                    '$(this).find("a[href$=.jpg],a[href$=.jpeg],a[href$=.png],a[href$=.gif],'. 
    58                     'a[href$=.JPG],a[href$=.JPEG],a[href$=.PNG],a[href$=.GIF]").attr("rel", "colorbox");'."\n"; 
     60                    'a[href$=.JPG],a[href$=.JPEG],a[href$=.PNG],a[href$=.GIF]").attr("rel", "colorbox-"+count);'."\n"; 
    5961                     
    6062          if ($s->colorbox_zoom_icon_permanent) 
     
    114116          } 
    115117           
    116           $opts = array("rel: 'colorbox'"); 
    117            
    118118          foreach (unserialize($s->colorbox_advanced) as $k => $v) { 
    119119               if ($v === '') { 
     
    133133          echo  
    134134          "});\n". 
    135           '$("a[rel=\'colorbox\']").colorbox({'.implode(",\n",$opts).'});'."\n". 
     135          '$("a[rel*=\'colorbox-\']").colorbox({'.implode(",\n",$opts).'});'."\n". 
    136136          "});\n". 
    137137          "\n//]]>\n". 
Note: See TracChangeset for help on using the changeset viewer.

Sites map