Dotclear

Changeset 197


Ignore:
Timestamp:
06/14/08 18:16:07 (15 years ago)
Author:
olivier
Message:

New lightbox plugin, based on jQuery Modal. WARNING: requires jQuery 1.2.6, update Dotclear from SVN.

Location:
plugins/lightbox
Files:
8 added
3 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/lightbox/_define.php

    r174 r197  
    2323$this->registerModule( 
    2424     /* Name */               "lightBox", 
    25      /* Description*/         "jQuery lightBox plugin", 
     25     /* Description*/         "lightBox like effect on images using jquery modal", 
    2626     /* Author */             "Olivier Meunier", 
    27      /* Version */            '1.0', 
     27     /* Version */            '1.1', 
    2828     /* Permissions */        'admin' 
    2929); 
  • plugins/lightbox/_public.php

    r185 r197  
    3434          echo 
    3535          '<style type="text/css">'."\n". 
    36           '@import url('.$url.'/css/jquery.lightbox-0.5.css);'."\n". 
     36          '@import url('.$url.'/css/modal.css);'."\n". 
    3737          "</style>\n". 
    38           '<script type="text/javascript" src="'.$url.'/js/jquery.lightbox-0.5.js"></script>'."\n". 
     38          '<script type="text/javascript" src="'.$url.'/js/modal.js"></script>'."\n". 
    3939          '<script type="text/javascript">'."\n". 
    4040          "//<![CDATA[\n". 
    4141          '$(function() {'."\n". 
    4242               'var lb_settings = {'."\n". 
    43                     "imageLoading  : '".html::escapeJS($url)."/images/lightbox-ico-loading.gif',\n". 
    44                     "imageBtnPrev  : '".html::escapeJS($url)."/images/prev-btn.png',\n". 
    45                     "imageBtnNext  : '".html::escapeJS($url)."/images/next-btn.png',\n". 
    46                     "imageBtnClose : '".html::escapeJS($url)."/images/close-btn.png',\n". 
    47                     "imageBlank    : '".html::escapeJS($url)."/images/lightbox-blank.gif'\n". 
     43                    "loader_img : '".html::escapeJS($url)."/img/loader.gif',\n". 
     44                    "prev_img   : '".html::escapeJS($url)."/img/prev.png',\n". 
     45                    "next_img   : '".html::escapeJS($url)."/img/next.png',\n". 
     46                    "close_img  : '".html::escapeJS($url)."/img/close.png',\n". 
     47                    "blank_img  : '".html::escapeJS($url)."/img/blank.gif'\n". 
    4848               "};". 
    4949               '$("div.post").each(function() {'."\n". 
    5050                         '$(this).find("a[href$=.jpg],a[href$=.jpeg],a[href$=.png],a[href$=.gif],'. 
    51                          'a[href$=.JPG],a[href$=.JPEG],a[href$=.PNG],a[href$=.GIF]").lightBox(lb_settings);'."\n". 
     51                         'a[href$=.JPG],a[href$=.JPEG],a[href$=.PNG],a[href$=.GIF]").modalImages(lb_settings);'."\n". 
    5252 
    5353               "})\n". 
Note: See TracChangeset for help on using the changeset viewer.

Sites map