photoswipe

PhotoSwipe: edit parseThumbnailElements function to parse additional markup element

若如初见. 提交于 2019-12-01 02:46:15
Using PhotoSwipe the thumbnail gallery markup looks like this: <div class="wrap clearfix"> <div class="my-gallery" itemscope itemtype="http://schema.org/ImageGallery"> <ul class="gallery-grid"> <li> <figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject"> <a href="img/dektop/1.jpg" itemprop="contentUrl" data-size="1200x1200"> <img src="img/thumb/1.jpg" itemprop="thumbnail" alt="Image description" /> </a> <figcaption itemprop="caption description">Image caption 1</figcaption> </figure> </li> <li> <figure itemprop="associatedMedia" itemscope itemtype="http://schema