\n " + (pb.params.navbar ? pb.renderNavbar() : '') + "\n " + (pb.params.toolbar ? pb.renderToolbar() : '') + "\n
\n " + (pb.params.photos.map(function (photo, index) {
+ if (photo.caption) { return pb.renderCaption(photo.caption, index); }
+ return '';
+ }).join(' ')) + "\n
\n
\n
\n " + (pb.params.virtualSlides ? '' : pb.params.photos.map(function (photo, index) {
+ if (photo.html || ((typeof photo === 'string' || photo instanceof String) && photo.indexOf('<') >= 0 && photo.indexOf('>') >= 0)) {
+ return pb.renderObject(photo, index);
+ }
+ if (pb.params.swiper.lazy === true || (pb.params.swiper.lazy && pb.params.swiper.lazy.enabled)) {
+ return pb.renderLazyPhoto(photo, index);
+ }
+ return pb.renderPhoto(photo, index);
+ }).join(' ')) + "\n
\n
\n