Ignore:
Timestamp:
May 15, 2012, 12:50:20 PM (12 years ago)
Author:
binaryworld
Message:

v0.2.0

Location:
extensions/Shadogo/trunk/libs/mediaboxAdvanced
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/Shadogo/trunk/libs/mediaboxAdvanced/index.php

    r10016 r14986  
    11<?php
    22// +-----------------------------------------------------------------------+
    3 // | Piwishadow - plugin for piwigo, a PHP based photo gallery             |
     3// | Shadogo - plugin for piwigo, a PHP based photo gallery                |
    44// +-----------------------------------------------------------------------+
    55// | Copyright(C) 2010-2011 BinaryWorld      http://binaryworld.hd.free.fr |
  • extensions/Shadogo/trunk/libs/mediaboxAdvanced/mediaboxAdv-1.3.4b.js

    r10016 r14986  
    235235                                        params[keyValue[0].trim()] = (keyValue.lenght == 1) ? true : keyValue[1].trim();
    236236                                }
     237                                params["el"] = el;
    237238                                // parse: lightbox[gallery_name width height]
    238239                                elrel = mediaboxRel.split(/[\[\]]/);
    239240                                elrel = elrel[1];
    240241                                // [VB] add optional params at the end of the array
    241                                 return [el.href, el.title, elrel, params];
     242                                //return [el.href, el.title, elrel, params];
     243                                return [el.get('href'), el.title, elrel, params];
    242244                        };
    243245
     
    438440                        var fav = (images[activeImage][3]["fav"] == 0) ? 1 : 0;
    439441                        images[activeImage][3]["fav"] = fav;
     442                                var el = images[activeImage][3]["el"];
     443                                // "lightbox[pscontent 80% 80%];id=3;fav=1"
     444                                el.rel = el.rel.replace(/fav=(0|1)/gi,"fav="+fav)
    440445                        favoriteLink.className = '';
    441446                        favoriteLink.set('html', options.text[6 + fav]);
Note: See TracChangeset for help on using the changeset viewer.