admin-folders.js
5 years ago
admin-galleries.js
5 years ago
admin-gallery.js
5 years ago
admin-media.js
5 years ago
admin-plugins.js
5 years ago
admin-widgets.js
5 years ago
admin.js
5 years ago
front-basicmasonry.js
5 years ago
front-basicslider.js
5 years ago
front.js
5 years ago
gutenberg.min.js
5 years ago
gutenberg.min.js
12 lines
| 1 | !function(l){var r={};function a(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return l[e].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.m=l,a.c=r,a.d=function(e,t,l){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var l=Object.create(null);if(a.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)a.d(l,r,function(e){return t[e]}.bind(null,r));return l},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=0)}([function(e,t,l){var o=l(1),r=wp.editor,i=r.MediaUpload,s=r.BlockControls,a=wp.components,m=a.Button,c=a.Toolbar,p=a.Dashicon,u=a.IconButton,n=wp.blocks.registerBlockType,d=wp.i18n.__;n("responsive-lightbox/remote-library-image",{title:d("Remote Library Image"),description:d("Remote Library images"),icon:"format-image",category:"responsive-lightbox",keywords:[d("image"),d("photo")],attributes:{imageURL:{type:"string",default:""},imageID:{type:"string",default:""}},edit:function(e){var t=e.setAttributes,l=e.attributes,r=""!==l.imageID,a=o("components-placeholder",e.className,r?"rl-image-selected":"");function n(e){t({imageURL:e.sizes.full.url,imageID:e.id})}return wp.element.createElement("div",null,wp.element.createElement(s,null,r&&wp.element.createElement(c,null,wp.element.createElement(i,{title:d("Remote Library Images"),addToGallery:!0,gallery:!0,multiple:!1,onSelect:n,allowedTypes:["image"],value:l.imageID,render:function(e){var t=e.open;return wp.element.createElement(u,{className:["components-toolbar__control","rl-remote-library-media-button"],label:d("Edit image"),icon:"edit",onClick:t})}}))),wp.element.createElement("div",{className:a},wp.element.createElement("div",{className:"components-placeholder__label"},wp.element.createElement(p,{icon:"format-image"}),d("Responsive Lightbox | Remote Library Image")),wp.element.createElement("div",{className:"components-placeholder__instructions"},d("Select a file from your remote libraries.")),wp.element.createElement("div",{className:"components-placeholder__fieldset"},wp.element.createElement(i,{title:d("Remote Library Images"),addToGallery:!0,gallery:!0,multiple:!1,onSelect:n,allowedTypes:["image"],value:l.imageID,render:function(e){var t=e.open;return wp.element.createElement(m,{isLarge:!0,className:["editor-media-placeholder__button","editor-media-placeholder__media-library-button","rl-remote-library-media-button"],onClick:function(e){e.stopPropagation(),t()}},d("Select image"))}})),wp.element.createElement("img",{className:"rl-block-image-preview",src:l.imageURL})))},save:function(e){var t=e.attributes;return wp.element.createElement("figure",{className:"rl-image wp-block-image"},wp.element.createElement("img",{src:t.imageURL}))}}),n("responsive-lightbox/gallery",{title:d("Gallery"),description:d("Galleries"),icon:"format-gallery",category:"responsive-lightbox",keywords:[d("images"),d("photos"),d("gallery")],attributes:{imageURL:{type:"string",default:""},galleryID:{type:"integer",default:0}},edit:function(e){var t=e.setAttributes,l=e.attributes,r=0!==l.galleryID,a=o("components-placeholder",e.className,r?"rl-gallery-selected":"");function n(){t({imageURL:ResponsiveLightboxGallery.lastGalleryImage,galleryID:parseInt(ResponsiveLightboxGallery.lastGalleryID)}),this.removeEventListener("click",n)}return wp.element.createElement("div",null,wp.element.createElement(s,null,r&&wp.element.createElement(c,null,wp.element.createElement(u,{className:["components-toolbar__control","rl-gallery-media-button"],label:d("Edit gallery"),icon:"edit",onClick:function(e){e.stopPropagation(),ResponsiveLightboxGallery.resetFilters=!0,ResponsiveLightboxGallery.open(l.galleryID),ResponsiveLightboxGallery.getModalButton().addEventListener("click",n)}}))),wp.element.createElement("div",{className:a},wp.element.createElement("div",{className:"components-placeholder__label"},wp.element.createElement(p,{icon:"format-image"}),d("Responsive Lightbox | Gallery")),wp.element.createElement("div",{className:"components-placeholder__instructions"},d("Select a gallery.")),wp.element.createElement("div",{className:"components-placeholder__fieldset"},wp.element.createElement(m,{isLarge:!0,className:["editor-media-placeholder__button","editor-media-placeholder__media-library-button","rl-gallery-media-button"],onClick:function(e){e.stopPropagation(),ResponsiveLightboxGallery.resetFilters=!0,ResponsiveLightboxGallery.open(),ResponsiveLightboxGallery.getModalButton().addEventListener("click",n)}},d("Select gallery"))),wp.element.createElement("img",{className:"rl-block-image-preview",src:l.imageURL})))},save:function(e){var t=e.attributes;return wp.element.createElement("div",null,'[rl_gallery id="',t.galleryID,'"]')}})},function(e,t,l){var r; |
| 2 | /*! |
| 3 | Copyright (c) 2017 Jed Watson. |
| 4 | Licensed under the MIT License (MIT), see |
| 5 | http://jedwatson.github.io/classnames |
| 6 | */ |
| 7 | /*! |
| 8 | Copyright (c) 2017 Jed Watson. |
| 9 | Licensed under the MIT License (MIT), see |
| 10 | http://jedwatson.github.io/classnames |
| 11 | */ |
| 12 | !function(){"use strict";var o={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var l=arguments[t];if(l){var r=typeof l;if("string"==r||"number"==r)e.push(l);else if(Array.isArray(l)&&l.length){var a=i.apply(null,l);a&&e.push(a)}else if("object"==r)for(var n in l)o.call(l,n)&&l[n]&&e.push(n)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()}]); |