Changeset 2064
- Timestamp:
- 02/12/10 00:36:48 (13 years ago)
- Location:
- plugins/colorbox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/colorbox/_define.php
r2062 r2064 15 15 /* Description*/ "ColorBox like effect on images using jquery ColorBox plugin", 16 16 /* Author */ "Philippe aka amalgame and contributors", 17 /* Version */ '1.3. 1',17 /* Version */ '1.3.2', 18 18 /* Permissions */ 'admin' 19 19 ); -
plugins/colorbox/_public.php
r2062 r2064 52 52 echo 53 53 '$(window).load(function(){'. 54 'var count = 0; '. 54 55 '$("'.$selectors.'").each(function() {'."\n". 56 'count++;'."\n". 55 57 '$(this).find("a[href$=.jpg],a[href$=.jpeg],a[href$=.png],a[href$=.gif],'. 56 58 'a[href$=.JPG],a[href$=.JPEG],a[href$=.PNG],a[href$=.GIF]").addClass("colorbox_zoom");'."\n". 57 59 '$(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"; 59 61 60 62 if ($s->colorbox_zoom_icon_permanent) … … 114 116 } 115 117 116 $opts = array("rel: 'colorbox'");117 118 118 foreach (unserialize($s->colorbox_advanced) as $k => $v) { 119 119 if ($v === '') { … … 133 133 echo 134 134 "});\n". 135 '$("a[rel =\'colorbox\']").colorbox({'.implode(",\n",$opts).'});'."\n".135 '$("a[rel*=\'colorbox-\']").colorbox({'.implode(",\n",$opts).'});'."\n". 136 136 "});\n". 137 137 "\n//]]>\n".
Note: See TracChangeset
for help on using the changeset viewer.