Dotclear

Changeset 177


Ignore:
Timestamp:
03/10/08 01:21:33 (16 years ago)
Author:
olivier
Message:

More images support and minor fixes in lightbox plugin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/lightbox/_public.php

    r175 r177  
    3939          '<script type="text/javascript">'."\n". 
    4040          "//<![CDATA[\n". 
    41           //"var lightBoxSettings = {};\n". 
    4241          '$(function() {'."\n". 
    43                '$("div.post a[href$=.jpg]").lightBox({'."\n". 
    44                     "imageLoading  : '".html::escapeJS($url)."/images/lightbox-ico-loading.gif',\n". 
    45                     "imageBtnPrev  : '".html::escapeJS($url)."/images/prev-btn.png',\n". 
    46                     "imageBtnNext  : '".html::escapeJS($url)."/images/next-btn.png',\n". 
    47                     "imageBtnClose : '".html::escapeJS($url)."/images/close-btn.png',\n". 
    48                     "imageBlank    : '".html::escapeJS($url)."/images/lightbox-blank.gif'\n". 
    49                "});\n". 
     42               '$("div.post").each(function() {'."\n". 
     43                    '$(this).find("a[href$=.jpg],a[href$=.jpeg],a[href$=.png],a[href$=.gif]").lightBox({'."\n". 
     44                         "imageLoading  : '".html::escapeJS($url)."/images/lightbox-ico-loading.gif',\n". 
     45                         "imageBtnPrev  : '".html::escapeJS($url)."/images/prev-btn.png',\n". 
     46                         "imageBtnNext  : '".html::escapeJS($url)."/images/next-btn.png',\n". 
     47                         "imageBtnClose : '".html::escapeJS($url)."/images/close-btn.png',\n". 
     48                         "imageBlank    : '".html::escapeJS($url)."/images/lightbox-blank.gif'\n". 
     49                    "});\n". 
     50               "})\n". 
    5051          "});\n". 
    5152          "\n//]>\n". 
Note: See TracChangeset for help on using the changeset viewer.

Sites map