Geo
This commit is contained in:
7
js/featherlight.gallery.min.js
vendored
Normal file
7
js/featherlight.gallery.min.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Featherlight Gallery – an extension for the ultra slim jQuery lightbox
|
||||
* Version 1.3.4 - http://noelboss.github.io/featherlight/
|
||||
*
|
||||
* Copyright 2015, Noël Raoul Bossart (http://www.noelboss.com)
|
||||
* MIT Licensed.
|
||||
**/!function(a){"use strict";function b(c,d){if(!(this instanceof b)){var e=new b(a.extend({$source:c,$currentTarget:c.first()},d));return e.open(),e}a.featherlight.apply(this,arguments),this.chainCallbacks(h)}var c=function(a){window.console&&window.console.warn&&window.console.warn("FeatherlightGallery: "+a)};if("undefined"==typeof a)return c("Too much lightness, Featherlight needs jQuery.");if(!a.featherlight)return c("Load the featherlight plugin before the gallery plugin");var d="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,e=a.event&&a.event.special.swipeleft&&a,f=window.Hammer&&function(a){var b=new window.Hammer.Manager(a[0]);return b.add(new window.Hammer.Swipe),b},g=d&&(e||f);d&&!g&&c("No compatible swipe library detected; one must be included before featherlightGallery for swipe motions to navigate the galleries.");var h={afterClose:function(a,b){var c=this;return c.$instance.off("next."+c.namespace+" previous."+c.namespace),c._swiper&&(c._swiper.off("swipeleft",c._swipeleft).off("swiperight",c._swiperight),c._swiper=null),a(b)},beforeOpen:function(a,b){var c=this;return c.$instance.on("next."+c.namespace+" previous."+c.namespace,function(a){var b="next"===a.type?1:-1;c.navigateTo(c.currentNavigation()+b)}),g?c._swiper=g(c.$instance).on("swipeleft",c._swipeleft=function(){c.$instance.trigger("next")}).on("swiperight",c._swiperight=function(){c.$instance.trigger("previous")}):c.$instance.find("."+c.namespace+"-content").append(c.createNavigation("previous")).append(c.createNavigation("next")),a(b)},onKeyUp:function(a,b){var c={37:"previous",39:"next"}[b.keyCode];return c?(this.$instance.trigger(c),!1):a(b)}};a.featherlight.extend(b,{autoBind:"[data-featherlight-gallery]"}),a.extend(b.prototype,{previousIcon:"◀",nextIcon:"▶",galleryFadeIn:100,galleryFadeOut:300,slides:function(){return this.filter?this.$source.find(this.filter):this.$source},images:function(){return c("images is deprecated, please use slides instead"),this.slides()},currentNavigation:function(){return this.slides().index(this.$currentTarget)},navigateTo:function(b){var c=this,d=c.slides(),e=d.length,f=c.$instance.find("."+c.namespace+"-inner");return b=(b%e+e)%e,c.$currentTarget=d.eq(b),c.beforeContent(),a.when(c.getContent(),f.fadeTo(c.galleryFadeOut,.2)).always(function(a){c.setContent(a),c.afterContent(),a.fadeTo(c.galleryFadeIn,1)})},createNavigation:function(b){var c=this;return a('<span title="'+b+'" class="'+this.namespace+"-"+b+'"><span>'+this[b+"Icon"]+"</span></span>").click(function(){a(this).trigger(b+"."+c.namespace)})}}),a.featherlightGallery=b,a.fn.featherlightGallery=function(a){return b.attach(this,a)},a(document).ready(function(){b._onReady()})}(jQuery);
|
||||
@@ -1,6 +1,6 @@
|
||||
$(document).ready(function(){
|
||||
|
||||
$('.gallery').featherlightGallery({
|
||||
$('.galerie').featherlightGallery({
|
||||
gallery: {
|
||||
fadeIn: 300,
|
||||
fadeOut: 300
|
||||
@@ -8,7 +8,7 @@ $(document).ready(function(){
|
||||
openSpeed: 300,
|
||||
closeSpeed: 300
|
||||
});
|
||||
$('.gallery2').featherlightGallery({
|
||||
$('.galerie2').featherlightGallery({
|
||||
gallery: {
|
||||
next: 'next »',
|
||||
previous: '« previous'
|
||||
|
||||
8
js/featherlight.min.js
vendored
Executable file
8
js/featherlight.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
4
js/jquery.min.js
vendored
Normal file
4
js/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
40
js/short-zenphoto.js
Normal file
40
js/short-zenphoto.js
Normal file
@@ -0,0 +1,40 @@
|
||||
(function() {
|
||||
tinymce.create('tinymce.plugins.zenphoto', {
|
||||
init : function(ed, url) {
|
||||
ed.addButton('zenphoto', {
|
||||
title : 'Add Zenphoto Shortcode',
|
||||
image : url+'/recentpostsbutton.png',
|
||||
onclick : function() {
|
||||
var album = prompt("Album", "");
|
||||
var image = prompt("Image", "");
|
||||
|
||||
if (image != null && image != ''){
|
||||
if (album != null && album != '')
|
||||
ed.execCommand('mceInsertContent', false, '[zenphoto album="'+album+'" image="'+image+'"]');
|
||||
/*else
|
||||
ed.execCommand('mceInsertContent', false, '[zenphoto'+text+'[/recent-posts]');*/
|
||||
}
|
||||
else{
|
||||
if (album != null && album != '')
|
||||
ed.execCommand('mceInsertContent', false, '[zenphoto album="'+album+'"]');
|
||||
/*else
|
||||
ed.execCommand('mceInsertContent', false, '[zenphoto]');*/
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
createControl : function(n, cm) {
|
||||
return null;
|
||||
},
|
||||
getInfo : function() {
|
||||
return {
|
||||
longname : "Zenphoto Shortcode",
|
||||
author : 'Bruno',
|
||||
authorurl : 'https://clicclac.info',
|
||||
infourl : 'https://clicclac.info/wordpress/',
|
||||
version : "1.0"
|
||||
};
|
||||
}
|
||||
});
|
||||
tinymce.PluginManager.add('zenphoto', tinymce.plugins.zenphoto);
|
||||
})();
|
||||
Reference in New Issue
Block a user