Version Description
- Replace $.fancebox with $.fancyboxforwp.
Download this release
Release Info
Developer | machothemes |
Plugin | FancyBox for WordPress |
Version | 3.1.9 |
Comparing to | |
See all releases |
Code changes from version 3.1.8 to 3.1.9
- assets/js/jquery.fancybox.js +93 -93
- fancybox.php +32 -16
- license.txt +674 -0
- readme.txt +9 -4
assets/js/jquery.fancybox.js
CHANGED
@@ -523,13 +523,13 @@
|
|
523 |
var FancyBox = function(content, opts, index) {
|
524 |
var self = this;
|
525 |
|
526 |
-
self.opts = mergeOpts({index: index}, $.
|
527 |
|
528 |
if ($.isPlainObject(opts)) {
|
529 |
self.opts = mergeOpts(self.opts, opts);
|
530 |
}
|
531 |
|
532 |
-
if ($.
|
533 |
self.opts = mergeOpts(self.opts, self.opts.mobile);
|
534 |
}
|
535 |
|
@@ -571,7 +571,7 @@
|
|
571 |
buttonStr;
|
572 |
|
573 |
if (firstItemOpts.closeExisting) {
|
574 |
-
$.
|
575 |
}
|
576 |
|
577 |
// Hide scrollbars
|
@@ -580,9 +580,9 @@
|
|
580 |
$("body").addClass("fancybox-active");
|
581 |
|
582 |
if (
|
583 |
-
!$.
|
584 |
firstItemOpts.hideScrollbar !== false &&
|
585 |
-
!$.
|
586 |
document.body.scrollHeight > window.innerHeight
|
587 |
) {
|
588 |
$("head").append(
|
@@ -678,7 +678,7 @@
|
|
678 |
|
679 |
if ($.isPlainObject(item)) {
|
680 |
// We probably have manual usage here, something like
|
681 |
-
// $.
|
682 |
|
683 |
obj = item;
|
684 |
opts = item.opts || item;
|
@@ -696,14 +696,14 @@
|
|
696 |
obj.src = self.opts.src || opts.src || $item.attr("href");
|
697 |
|
698 |
// Assume that simple syntax is used, for example:
|
699 |
-
// `$.
|
700 |
if (!obj.type && !obj.src) {
|
701 |
obj.type = "inline";
|
702 |
obj.src = item;
|
703 |
}
|
704 |
} else {
|
705 |
// Assume we have a simple html code, for example:
|
706 |
-
// $.
|
707 |
obj = {
|
708 |
type: "html",
|
709 |
src: item + ""
|
@@ -718,7 +718,7 @@
|
|
718 |
obj.opts.buttons = opts.buttons;
|
719 |
}
|
720 |
|
721 |
-
if ($.
|
722 |
obj.opts = mergeOpts(obj.opts, obj.opts.mobile);
|
723 |
}
|
724 |
|
@@ -925,12 +925,12 @@
|
|
925 |
self.$refs.stage.show();
|
926 |
|
927 |
self.update(e);
|
928 |
-
}, $.
|
929 |
}
|
930 |
});
|
931 |
|
932 |
$D.on("keydown.fb", function(e) {
|
933 |
-
var instance = $.
|
934 |
current = instance.current,
|
935 |
keycode = e.keyCode || e.which;
|
936 |
|
@@ -1136,12 +1136,12 @@
|
|
1136 |
}
|
1137 |
|
1138 |
// Get actual slide/stage positions (before cleaning up)
|
1139 |
-
slidePos = $.
|
1140 |
-
stagePos = $.
|
1141 |
|
1142 |
// Clean up all slides
|
1143 |
$.each(self.slides, function(index, slide) {
|
1144 |
-
$.
|
1145 |
});
|
1146 |
|
1147 |
if (previous.pos !== current.pos) {
|
@@ -1164,7 +1164,7 @@
|
|
1164 |
// This is mostly needed for freshly added slides, because they are not yet positioned
|
1165 |
var leftPos = slide.pos * slidePos.width + slide.pos * slide.opts.gutter;
|
1166 |
|
1167 |
-
$.
|
1168 |
|
1169 |
if (slide.pos !== current.pos) {
|
1170 |
slide.$slide.addClass("fancybox-slide--" + (slide.pos > current.pos ? "next" : "previous"));
|
@@ -1174,7 +1174,7 @@
|
|
1174 |
forceRedraw(slide.$slide);
|
1175 |
|
1176 |
// Animate the slide
|
1177 |
-
$.
|
1178 |
slide.$slide,
|
1179 |
{
|
1180 |
top: 0,
|
@@ -1201,7 +1201,7 @@
|
|
1201 |
|
1202 |
previous.$slide.addClass("fancybox-slide--" + (previous.pos > current.pos ? "next" : "previous"));
|
1203 |
|
1204 |
-
$.
|
1205 |
previous.$slide,
|
1206 |
prop,
|
1207 |
duration,
|
@@ -1256,8 +1256,8 @@
|
|
1256 |
var self = this,
|
1257 |
current = self.current,
|
1258 |
$content = current.$content,
|
1259 |
-
canvasWidth = $.
|
1260 |
-
canvasHeight = $.
|
1261 |
newImgWidth = current.width,
|
1262 |
newImgHeight = current.height,
|
1263 |
imgPos,
|
@@ -1272,15 +1272,15 @@
|
|
1272 |
|
1273 |
self.isAnimating = true;
|
1274 |
|
1275 |
-
$.
|
1276 |
|
1277 |
x = x === undefined ? canvasWidth * 0.5 : x;
|
1278 |
y = y === undefined ? canvasHeight * 0.5 : y;
|
1279 |
|
1280 |
-
imgPos = $.
|
1281 |
|
1282 |
-
imgPos.top -= $.
|
1283 |
-
imgPos.left -= $.
|
1284 |
|
1285 |
scaleX = newImgWidth / imgPos.width;
|
1286 |
scaleY = newImgHeight / imgPos.height;
|
@@ -1316,7 +1316,7 @@
|
|
1316 |
|
1317 |
self.updateCursor(newImgWidth, newImgHeight);
|
1318 |
|
1319 |
-
$.
|
1320 |
$content,
|
1321 |
{
|
1322 |
top: posY,
|
@@ -1351,13 +1351,13 @@
|
|
1351 |
|
1352 |
self.isAnimating = true;
|
1353 |
|
1354 |
-
$.
|
1355 |
|
1356 |
end = self.getFitPos(current);
|
1357 |
|
1358 |
self.updateCursor(end.width, end.height);
|
1359 |
|
1360 |
-
$.
|
1361 |
$content,
|
1362 |
{
|
1363 |
top: end.top,
|
@@ -1391,8 +1391,8 @@
|
|
1391 |
return false;
|
1392 |
}
|
1393 |
|
1394 |
-
maxWidth = $.
|
1395 |
-
maxHeight = $.
|
1396 |
|
1397 |
maxWidth -=
|
1398 |
parseFloat($slide.css("paddingLeft")) +
|
@@ -1472,9 +1472,9 @@
|
|
1472 |
|
1473 |
// Then resize content to fit inside the slide
|
1474 |
if ($content && (width || height || slide.contentType === "video") && !slide.hasError) {
|
1475 |
-
$.
|
1476 |
|
1477 |
-
$.
|
1478 |
|
1479 |
if (slide.pos === self.currPos) {
|
1480 |
self.isAnimating = false;
|
@@ -1521,7 +1521,7 @@
|
|
1521 |
.children()
|
1522 |
.removeClass("fancybox-slide--previous fancybox-slide--next");
|
1523 |
|
1524 |
-
$.
|
1525 |
$slide,
|
1526 |
{
|
1527 |
top: 0,
|
@@ -1556,8 +1556,8 @@
|
|
1556 |
return false;
|
1557 |
}
|
1558 |
|
1559 |
-
stagePos = $.
|
1560 |
-
slidePos = $.
|
1561 |
|
1562 |
return (
|
1563 |
!current.$slide.hasClass("fancybox-animated") &&
|
@@ -1639,7 +1639,7 @@
|
|
1639 |
if (nextWidth !== undefined && nextHeight !== undefined) {
|
1640 |
rez = nextWidth < current.width && nextHeight < current.height;
|
1641 |
} else if ($content) {
|
1642 |
-
rez = $.
|
1643 |
rez = rez.width < current.width && rez.height < current.height;
|
1644 |
}
|
1645 |
|
@@ -1661,7 +1661,7 @@
|
|
1661 |
if (nextWidth !== undefined && nextHeight !== undefined) {
|
1662 |
pos = {width: nextWidth, height: nextHeight};
|
1663 |
} else if (current.isComplete) {
|
1664 |
-
pos = $.
|
1665 |
}
|
1666 |
|
1667 |
if (pos && rez) {
|
@@ -1988,7 +1988,7 @@
|
|
1988 |
$iframe;
|
1989 |
|
1990 |
// Fix responsive iframes on iOS (along with `position:absolute;` for iframe element)
|
1991 |
-
if ($.
|
1992 |
opts.css.overflow = "scroll";
|
1993 |
}
|
1994 |
|
@@ -2102,7 +2102,7 @@
|
|
2102 |
self.hideLoading(slide);
|
2103 |
|
2104 |
if (slide.$content) {
|
2105 |
-
$.
|
2106 |
}
|
2107 |
|
2108 |
slide.$slide.empty();
|
@@ -2431,12 +2431,12 @@
|
|
2431 |
}
|
2432 |
|
2433 |
// Draw image at start position
|
2434 |
-
$.
|
2435 |
|
2436 |
forceRedraw(slide.$content);
|
2437 |
|
2438 |
// Start animation
|
2439 |
-
$.
|
2440 |
self.isAnimating = false;
|
2441 |
|
2442 |
self.complete();
|
@@ -2465,7 +2465,7 @@
|
|
2465 |
|
2466 |
// Prepare for CSS transiton
|
2467 |
// =========================
|
2468 |
-
$.
|
2469 |
|
2470 |
//effectClassName = "fancybox-animated fancybox-slide--" + (slide.pos >= self.prevPos ? "next" : "previous") + " fancybox-fx-" + effect;
|
2471 |
effectClassName = "fancybox-slide--" + (slide.pos >= self.prevPos ? "next" : "previous") + " fancybox-animated fancybox-fx-" + effect;
|
@@ -2481,7 +2481,7 @@
|
|
2481 |
slide.$content.hide().show(0);
|
2482 |
}
|
2483 |
|
2484 |
-
$.
|
2485 |
$slide,
|
2486 |
"fancybox-slide--current",
|
2487 |
duration,
|
@@ -2515,7 +2515,7 @@
|
|
2515 |
return false;
|
2516 |
}
|
2517 |
|
2518 |
-
thumbPos = $.
|
2519 |
|
2520 |
btw = parseFloat($thumb.css("border-top-width") || 0);
|
2521 |
brw = parseFloat($thumb.css("border-right-width") || 0);
|
@@ -2565,7 +2565,7 @@
|
|
2565 |
if (slide.pos >= self.currPos - 1 && slide.pos <= self.currPos + 1) {
|
2566 |
slides[slide.pos] = slide;
|
2567 |
} else if (slide) {
|
2568 |
-
$.
|
2569 |
|
2570 |
slide.$slide.off().remove();
|
2571 |
}
|
@@ -2765,7 +2765,7 @@
|
|
2765 |
current.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated");
|
2766 |
|
2767 |
if (e !== true) {
|
2768 |
-
$.
|
2769 |
} else {
|
2770 |
effect = false;
|
2771 |
}
|
@@ -2800,9 +2800,9 @@
|
|
2800 |
}
|
2801 |
|
2802 |
if (effect === "zoom") {
|
2803 |
-
$.
|
2804 |
|
2805 |
-
domRect = $.
|
2806 |
|
2807 |
start = {
|
2808 |
top: domRect.top,
|
@@ -2824,17 +2824,17 @@
|
|
2824 |
end.opacity = 0;
|
2825 |
}
|
2826 |
|
2827 |
-
$.
|
2828 |
|
2829 |
forceRedraw($content);
|
2830 |
|
2831 |
-
$.
|
2832 |
|
2833 |
return true;
|
2834 |
}
|
2835 |
|
2836 |
if (effect && duration) {
|
2837 |
-
$.
|
2838 |
current.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),
|
2839 |
"fancybox-animated fancybox-fx-" + effect,
|
2840 |
duration,
|
@@ -2889,7 +2889,7 @@
|
|
2889 |
self.current = null;
|
2890 |
|
2891 |
// Check if there are other instances
|
2892 |
-
instance = $.
|
2893 |
|
2894 |
if (instance) {
|
2895 |
instance.activate();
|
@@ -3028,7 +3028,7 @@
|
|
3028 |
}
|
3029 |
});
|
3030 |
|
3031 |
-
$.
|
3032 |
version: "3.5.1",
|
3033 |
defaults: defaults,
|
3034 |
|
@@ -3036,10 +3036,10 @@
|
|
3036 |
//
|
3037 |
// Examples of usage:
|
3038 |
//
|
3039 |
-
// $instance = $.
|
3040 |
-
// $.
|
3041 |
-
// $.
|
3042 |
-
// $.
|
3043 |
// console.info( this.currIndex );
|
3044 |
// });
|
3045 |
// ======================================================
|
@@ -3248,7 +3248,7 @@
|
|
3248 |
}
|
3249 |
}
|
3250 |
|
3251 |
-
$.
|
3252 |
} else {
|
3253 |
$el.addClass(to);
|
3254 |
}
|
@@ -3301,7 +3301,7 @@
|
|
3301 |
}
|
3302 |
|
3303 |
$target = opts.$target || $(e.currentTarget).trigger("blur");
|
3304 |
-
instance = $.
|
3305 |
|
3306 |
if (instance && instance.$trigger && instance.$trigger.is($target)) {
|
3307 |
return;
|
@@ -3328,7 +3328,7 @@
|
|
3328 |
index = 0;
|
3329 |
}
|
3330 |
|
3331 |
-
instance = $.
|
3332 |
|
3333 |
// Save last active element
|
3334 |
instance.$trigger = $target;
|
@@ -3664,7 +3664,7 @@
|
|
3664 |
delete window.onYouTubeIframeAPIReady;
|
3665 |
}
|
3666 |
|
3667 |
-
instance = $.
|
3668 |
|
3669 |
if (instance) {
|
3670 |
$el = instance.current.$content.find("iframe");
|
@@ -3917,11 +3917,11 @@
|
|
3917 |
self.canvasHeight = Math.round($slide[0].clientHeight);
|
3918 |
|
3919 |
self.contentLastPos = null;
|
3920 |
-
self.contentStartPos = $.
|
3921 |
-
self.sliderStartPos = $.
|
3922 |
|
3923 |
// Since position will be absolute, but we need to make it relative to the stage
|
3924 |
-
self.stagePos = $.
|
3925 |
|
3926 |
self.sliderStartPos.top -= self.stagePos.top;
|
3927 |
self.sliderStartPos.left -= self.stagePos.left;
|
@@ -3934,7 +3934,7 @@
|
|
3934 |
.on(isTouchDevice ? "touchend.fb.touch touchcancel.fb.touch" : "mouseup.fb.touch mouseleave.fb.touch", $.proxy(self, "ontouchend"))
|
3935 |
.on(isTouchDevice ? "touchmove.fb.touch" : "mousemove.fb.touch", $.proxy(self, "ontouchmove"));
|
3936 |
|
3937 |
-
if ($.
|
3938 |
document.addEventListener("scroll", self.onscroll, true);
|
3939 |
}
|
3940 |
|
@@ -3944,7 +3944,7 @@
|
|
3944 |
e.preventDefault();
|
3945 |
}
|
3946 |
|
3947 |
-
if (!($.
|
3948 |
return;
|
3949 |
}
|
3950 |
}
|
@@ -3952,14 +3952,14 @@
|
|
3952 |
self.isScrollable = isScrollable($target) || isScrollable($target.parent());
|
3953 |
|
3954 |
// Check if element is scrollable and try to prevent default behavior (scrolling)
|
3955 |
-
if (!($.
|
3956 |
e.preventDefault();
|
3957 |
}
|
3958 |
|
3959 |
// One finger or mouse click - swipe or pan an image
|
3960 |
if (self.startPoints.length === 1 || current.hasError) {
|
3961 |
if (self.canPan) {
|
3962 |
-
$.
|
3963 |
|
3964 |
self.isPanning = true;
|
3965 |
} else {
|
@@ -3977,7 +3977,7 @@
|
|
3977 |
|
3978 |
self.isZooming = true;
|
3979 |
|
3980 |
-
$.
|
3981 |
|
3982 |
self.centerPointStartX = (self.startPoints[0].x + self.startPoints[1].x) * 0.5 - $(window).scrollLeft();
|
3983 |
self.centerPointStartY = (self.startPoints[0].y + self.startPoints[1].y) * 0.5 - $(window).scrollTop();
|
@@ -4061,7 +4061,7 @@
|
|
4061 |
self.isSwiping = angle > 45 && angle < 135 ? "y" : "x";
|
4062 |
}
|
4063 |
|
4064 |
-
if (self.isSwiping === "y" && $.
|
4065 |
self.isScrolling = true;
|
4066 |
|
4067 |
return;
|
@@ -4075,10 +4075,10 @@
|
|
4075 |
$.each(instance.slides, function(index, slide) {
|
4076 |
var slidePos, stagePos;
|
4077 |
|
4078 |
-
$.
|
4079 |
|
4080 |
-
slidePos = $.
|
4081 |
-
stagePos = $.
|
4082 |
|
4083 |
slide.$slide
|
4084 |
.css({
|
@@ -4096,7 +4096,7 @@
|
|
4096 |
self.sliderStartPos.left = slidePos.left - stagePos.left;
|
4097 |
}
|
4098 |
|
4099 |
-
$.
|
4100 |
top: slidePos.top - stagePos.top,
|
4101 |
left: slidePos.left - stagePos.left
|
4102 |
});
|
@@ -4145,7 +4145,7 @@
|
|
4145 |
$.each(self.instance.slides, function(index, slide) {
|
4146 |
var pos = slide.pos - self.instance.currPos;
|
4147 |
|
4148 |
-
$.
|
4149 |
top: self.sliderLastPos.top,
|
4150 |
left: self.sliderLastPos.left + pos * self.canvasWidth + pos * slide.opts.gutter
|
4151 |
});
|
@@ -4160,7 +4160,7 @@
|
|
4160 |
var self = this;
|
4161 |
|
4162 |
// Prevent accidental movement (sometimes, when tapping casually, finger can move a bit)
|
4163 |
-
if (distance(self.newPoints[0], self.realPoints[0]) < ($.
|
4164 |
self.startPoints = self.newPoints;
|
4165 |
return;
|
4166 |
}
|
@@ -4174,7 +4174,7 @@
|
|
4174 |
}
|
4175 |
|
4176 |
self.requestId = requestAFrame(function() {
|
4177 |
-
$.
|
4178 |
});
|
4179 |
};
|
4180 |
|
@@ -4322,7 +4322,7 @@
|
|
4322 |
}
|
4323 |
|
4324 |
self.requestId = requestAFrame(function() {
|
4325 |
-
$.
|
4326 |
});
|
4327 |
};
|
4328 |
|
@@ -4390,7 +4390,7 @@
|
|
4390 |
// Close if swiped vertically / navigate if horizontally
|
4391 |
if (swiping == "y" && !scrolling && Math.abs(self.distanceY) > 50) {
|
4392 |
// Continue vertical movement
|
4393 |
-
$.
|
4394 |
self.instance.current.$slide,
|
4395 |
{
|
4396 |
top: self.sliderStartPos.top + self.distanceY + self.velocityY * 150,
|
@@ -4438,7 +4438,7 @@
|
|
4438 |
newPos.width = self.contentStartPos.width;
|
4439 |
newPos.height = self.contentStartPos.height;
|
4440 |
|
4441 |
-
$.
|
4442 |
};
|
4443 |
|
4444 |
Guestures.prototype.endZooming = function() {
|
@@ -4468,7 +4468,7 @@
|
|
4468 |
};
|
4469 |
|
4470 |
// Reset scalex/scaleY values; this helps for perfomance and does not break animation
|
4471 |
-
$.
|
4472 |
|
4473 |
if (newWidth < self.canvasWidth && newHeight < self.canvasHeight) {
|
4474 |
self.instance.scaleToFit(150);
|
@@ -4477,7 +4477,7 @@
|
|
4477 |
} else {
|
4478 |
newPos = self.limitPosition(newOffsetX, newOffsetY, newWidth, newHeight);
|
4479 |
|
4480 |
-
$.
|
4481 |
}
|
4482 |
};
|
4483 |
|
@@ -4627,13 +4627,13 @@
|
|
4627 |
// Enables slideshow functionality
|
4628 |
//
|
4629 |
// Example of usage:
|
4630 |
-
// $.
|
4631 |
//
|
4632 |
// ==========================================================================
|
4633 |
(function(document, $) {
|
4634 |
"use strict";
|
4635 |
|
4636 |
-
$.extend(true, $.
|
4637 |
btnTpl: {
|
4638 |
slideShow:
|
4639 |
'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}">' +
|
@@ -4683,7 +4683,7 @@
|
|
4683 |
if (current && (force === true || current.opts.loop || instance.currIndex < instance.group.length - 1)) {
|
4684 |
if (self.isActive && current.contentType !== "video") {
|
4685 |
if (self.$progress) {
|
4686 |
-
$.
|
4687 |
}
|
4688 |
|
4689 |
self.timer = setTimeout(function() {
|
@@ -4809,7 +4809,7 @@
|
|
4809 |
|
4810 |
// Page Visibility API to pause slideshow when window is not active
|
4811 |
$(document).on("visibilitychange", function() {
|
4812 |
-
var instance = $.
|
4813 |
SlideShow = instance && instance.SlideShow;
|
4814 |
|
4815 |
if (SlideShow && SlideShow.isActive) {
|
@@ -4908,7 +4908,7 @@
|
|
4908 |
}
|
4909 |
};
|
4910 |
|
4911 |
-
$.extend(true, $.
|
4912 |
btnTpl: {
|
4913 |
fullScreen:
|
4914 |
'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}">' +
|
@@ -4923,7 +4923,7 @@
|
|
4923 |
|
4924 |
$(document).on(fn.fullscreenchange, function() {
|
4925 |
var isFullscreen = FullScreen.isFullscreen(),
|
4926 |
-
instance = $.
|
4927 |
|
4928 |
if (instance) {
|
4929 |
// If image is zooming, then force to stop and reposition properly
|
@@ -5008,7 +5008,7 @@
|
|
5008 |
CLASS_ACTIVE = CLASS + "-active";
|
5009 |
|
5010 |
// Make sure there are default values
|
5011 |
-
$.
|
5012 |
true,
|
5013 |
{
|
5014 |
btnTpl: {
|
@@ -5024,7 +5024,7 @@
|
|
5024 |
axis: "y" // Vertical (y) or horizontal (x) scrolling
|
5025 |
}
|
5026 |
},
|
5027 |
-
$.
|
5028 |
);
|
5029 |
|
5030 |
var FancyThumbs = function(instance) {
|
@@ -5260,7 +5260,7 @@
|
|
5260 |
(function(document, $) {
|
5261 |
"use strict";
|
5262 |
|
5263 |
-
$.extend(true, $.
|
5264 |
btnTpl: {
|
5265 |
share:
|
5266 |
'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}">' +
|
@@ -5313,7 +5313,7 @@
|
|
5313 |
}
|
5314 |
|
5315 |
$(document).on("click", "[data-fancybox-share]", function() {
|
5316 |
-
var instance = $.
|
5317 |
current = instance.current || null,
|
5318 |
url,
|
5319 |
tpl;
|
@@ -5332,7 +5332,7 @@
|
|
5332 |
.replace(/\{\{url_raw\}\}/g, escapeHtml(url))
|
5333 |
.replace(/\{\{descr\}\}/g, instance.$caption ? encodeURIComponent(instance.$caption.text()) : "");
|
5334 |
|
5335 |
-
$.
|
5336 |
src: instance.translate(instance, tpl),
|
5337 |
type: "html",
|
5338 |
opts: {
|
@@ -5434,7 +5434,7 @@
|
|
5434 |
// Start when DOM becomes ready
|
5435 |
$(function() {
|
5436 |
// Check if user has disabled this module
|
5437 |
-
if ($.
|
5438 |
return;
|
5439 |
}
|
5440 |
|
@@ -5563,7 +5563,7 @@
|
|
5563 |
|
5564 |
// Check current hash and trigger click event on matching element to start fancyBox, if needed
|
5565 |
setTimeout(function() {
|
5566 |
-
if (!$.
|
5567 |
triggerFromUrl(parseUrl());
|
5568 |
}
|
5569 |
}, 50);
|
523 |
var FancyBox = function(content, opts, index) {
|
524 |
var self = this;
|
525 |
|
526 |
+
self.opts = mergeOpts({index: index}, $.fancyboxforwp.defaults);
|
527 |
|
528 |
if ($.isPlainObject(opts)) {
|
529 |
self.opts = mergeOpts(self.opts, opts);
|
530 |
}
|
531 |
|
532 |
+
if ($.fancyboxforwp.isMobile) {
|
533 |
self.opts = mergeOpts(self.opts, self.opts.mobile);
|
534 |
}
|
535 |
|
571 |
buttonStr;
|
572 |
|
573 |
if (firstItemOpts.closeExisting) {
|
574 |
+
$.fancyboxforwp.close(true);
|
575 |
}
|
576 |
|
577 |
// Hide scrollbars
|
580 |
$("body").addClass("fancybox-active");
|
581 |
|
582 |
if (
|
583 |
+
!$.fancyboxforwp.getInstance() &&
|
584 |
firstItemOpts.hideScrollbar !== false &&
|
585 |
+
!$.fancyboxforwp.isMobile &&
|
586 |
document.body.scrollHeight > window.innerHeight
|
587 |
) {
|
588 |
$("head").append(
|
678 |
|
679 |
if ($.isPlainObject(item)) {
|
680 |
// We probably have manual usage here, something like
|
681 |
+
// $.fancyboxforwp.open( [ { src : "image.jpg", type : "image" } ] )
|
682 |
|
683 |
obj = item;
|
684 |
opts = item.opts || item;
|
696 |
obj.src = self.opts.src || opts.src || $item.attr("href");
|
697 |
|
698 |
// Assume that simple syntax is used, for example:
|
699 |
+
// `$.fancyboxforwp.open( $("#test"), {} );`
|
700 |
if (!obj.type && !obj.src) {
|
701 |
obj.type = "inline";
|
702 |
obj.src = item;
|
703 |
}
|
704 |
} else {
|
705 |
// Assume we have a simple html code, for example:
|
706 |
+
// $.fancyboxforwp.open( '<div><h1>Hi!</h1></div>' );
|
707 |
obj = {
|
708 |
type: "html",
|
709 |
src: item + ""
|
718 |
obj.opts.buttons = opts.buttons;
|
719 |
}
|
720 |
|
721 |
+
if ($.fancyboxforwp.isMobile && obj.opts.mobile) {
|
722 |
obj.opts = mergeOpts(obj.opts, obj.opts.mobile);
|
723 |
}
|
724 |
|
925 |
self.$refs.stage.show();
|
926 |
|
927 |
self.update(e);
|
928 |
+
}, $.fancyboxforwp.isMobile ? 600 : 250);
|
929 |
}
|
930 |
});
|
931 |
|
932 |
$D.on("keydown.fb", function(e) {
|
933 |
+
var instance = $.fancyboxforwp ? $.fancyboxforwp.getInstance() : null,
|
934 |
current = instance.current,
|
935 |
keycode = e.keyCode || e.which;
|
936 |
|
1136 |
}
|
1137 |
|
1138 |
// Get actual slide/stage positions (before cleaning up)
|
1139 |
+
slidePos = $.fancyboxforwp.getTranslate(previous.$slide);
|
1140 |
+
stagePos = $.fancyboxforwp.getTranslate(self.$refs.stage);
|
1141 |
|
1142 |
// Clean up all slides
|
1143 |
$.each(self.slides, function(index, slide) {
|
1144 |
+
$.fancyboxforwp.stop(slide.$slide, true);
|
1145 |
});
|
1146 |
|
1147 |
if (previous.pos !== current.pos) {
|
1164 |
// This is mostly needed for freshly added slides, because they are not yet positioned
|
1165 |
var leftPos = slide.pos * slidePos.width + slide.pos * slide.opts.gutter;
|
1166 |
|
1167 |
+
$.fancyboxforwp.setTranslate(slide.$slide, {top: 0, left: leftPos - stagePos.left + diff});
|
1168 |
|
1169 |
if (slide.pos !== current.pos) {
|
1170 |
slide.$slide.addClass("fancybox-slide--" + (slide.pos > current.pos ? "next" : "previous"));
|
1174 |
forceRedraw(slide.$slide);
|
1175 |
|
1176 |
// Animate the slide
|
1177 |
+
$.fancyboxforwp.animate(
|
1178 |
slide.$slide,
|
1179 |
{
|
1180 |
top: 0,
|
1201 |
|
1202 |
previous.$slide.addClass("fancybox-slide--" + (previous.pos > current.pos ? "next" : "previous"));
|
1203 |
|
1204 |
+
$.fancyboxforwp.animate(
|
1205 |
previous.$slide,
|
1206 |
prop,
|
1207 |
duration,
|
1256 |
var self = this,
|
1257 |
current = self.current,
|
1258 |
$content = current.$content,
|
1259 |
+
canvasWidth = $.fancyboxforwp.getTranslate(current.$slide).width,
|
1260 |
+
canvasHeight = $.fancyboxforwp.getTranslate(current.$slide).height,
|
1261 |
newImgWidth = current.width,
|
1262 |
newImgHeight = current.height,
|
1263 |
imgPos,
|
1272 |
|
1273 |
self.isAnimating = true;
|
1274 |
|
1275 |
+
$.fancyboxforwp.stop($content);
|
1276 |
|
1277 |
x = x === undefined ? canvasWidth * 0.5 : x;
|
1278 |
y = y === undefined ? canvasHeight * 0.5 : y;
|
1279 |
|
1280 |
+
imgPos = $.fancyboxforwp.getTranslate($content);
|
1281 |
|
1282 |
+
imgPos.top -= $.fancyboxforwp.getTranslate(current.$slide).top;
|
1283 |
+
imgPos.left -= $.fancyboxforwp.getTranslate(current.$slide).left;
|
1284 |
|
1285 |
scaleX = newImgWidth / imgPos.width;
|
1286 |
scaleY = newImgHeight / imgPos.height;
|
1316 |
|
1317 |
self.updateCursor(newImgWidth, newImgHeight);
|
1318 |
|
1319 |
+
$.fancyboxforwp.animate(
|
1320 |
$content,
|
1321 |
{
|
1322 |
top: posY,
|
1351 |
|
1352 |
self.isAnimating = true;
|
1353 |
|
1354 |
+
$.fancyboxforwp.stop($content);
|
1355 |
|
1356 |
end = self.getFitPos(current);
|
1357 |
|
1358 |
self.updateCursor(end.width, end.height);
|
1359 |
|
1360 |
+
$.fancyboxforwp.animate(
|
1361 |
$content,
|
1362 |
{
|
1363 |
top: end.top,
|
1391 |
return false;
|
1392 |
}
|
1393 |
|
1394 |
+
maxWidth = $.fancyboxforwp.getTranslate(self.$refs.stage).width;
|
1395 |
+
maxHeight = $.fancyboxforwp.getTranslate(self.$refs.stage).height;
|
1396 |
|
1397 |
maxWidth -=
|
1398 |
parseFloat($slide.css("paddingLeft")) +
|
1472 |
|
1473 |
// Then resize content to fit inside the slide
|
1474 |
if ($content && (width || height || slide.contentType === "video") && !slide.hasError) {
|
1475 |
+
$.fancyboxforwp.stop($content);
|
1476 |
|
1477 |
+
$.fancyboxforwp.setTranslate($content, self.getFitPos(slide));
|
1478 |
|
1479 |
if (slide.pos === self.currPos) {
|
1480 |
self.isAnimating = false;
|
1521 |
.children()
|
1522 |
.removeClass("fancybox-slide--previous fancybox-slide--next");
|
1523 |
|
1524 |
+
$.fancyboxforwp.animate(
|
1525 |
$slide,
|
1526 |
{
|
1527 |
top: 0,
|
1556 |
return false;
|
1557 |
}
|
1558 |
|
1559 |
+
stagePos = $.fancyboxforwp.getTranslate(this.$refs.stage);
|
1560 |
+
slidePos = $.fancyboxforwp.getTranslate(current.$slide);
|
1561 |
|
1562 |
return (
|
1563 |
!current.$slide.hasClass("fancybox-animated") &&
|
1639 |
if (nextWidth !== undefined && nextHeight !== undefined) {
|
1640 |
rez = nextWidth < current.width && nextHeight < current.height;
|
1641 |
} else if ($content) {
|
1642 |
+
rez = $.fancyboxforwp.getTranslate($content);
|
1643 |
rez = rez.width < current.width && rez.height < current.height;
|
1644 |
}
|
1645 |
|
1661 |
if (nextWidth !== undefined && nextHeight !== undefined) {
|
1662 |
pos = {width: nextWidth, height: nextHeight};
|
1663 |
} else if (current.isComplete) {
|
1664 |
+
pos = $.fancyboxforwp.getTranslate(current.$content);
|
1665 |
}
|
1666 |
|
1667 |
if (pos && rez) {
|
1988 |
$iframe;
|
1989 |
|
1990 |
// Fix responsive iframes on iOS (along with `position:absolute;` for iframe element)
|
1991 |
+
if ($.fancyboxforwp.isMobile) {
|
1992 |
opts.css.overflow = "scroll";
|
1993 |
}
|
1994 |
|
2102 |
self.hideLoading(slide);
|
2103 |
|
2104 |
if (slide.$content) {
|
2105 |
+
$.fancyboxforwp.stop(slide.$content);
|
2106 |
}
|
2107 |
|
2108 |
slide.$slide.empty();
|
2431 |
}
|
2432 |
|
2433 |
// Draw image at start position
|
2434 |
+
$.fancyboxforwp.setTranslate(slide.$content.removeClass("fancybox-is-hidden"), start);
|
2435 |
|
2436 |
forceRedraw(slide.$content);
|
2437 |
|
2438 |
// Start animation
|
2439 |
+
$.fancyboxforwp.animate(slide.$content, end, duration, function() {
|
2440 |
self.isAnimating = false;
|
2441 |
|
2442 |
self.complete();
|
2465 |
|
2466 |
// Prepare for CSS transiton
|
2467 |
// =========================
|
2468 |
+
$.fancyboxforwp.stop($slide);
|
2469 |
|
2470 |
//effectClassName = "fancybox-animated fancybox-slide--" + (slide.pos >= self.prevPos ? "next" : "previous") + " fancybox-fx-" + effect;
|
2471 |
effectClassName = "fancybox-slide--" + (slide.pos >= self.prevPos ? "next" : "previous") + " fancybox-animated fancybox-fx-" + effect;
|
2481 |
slide.$content.hide().show(0);
|
2482 |
}
|
2483 |
|
2484 |
+
$.fancyboxforwp.animate(
|
2485 |
$slide,
|
2486 |
"fancybox-slide--current",
|
2487 |
duration,
|
2515 |
return false;
|
2516 |
}
|
2517 |
|
2518 |
+
thumbPos = $.fancyboxforwp.getTranslate($thumb);
|
2519 |
|
2520 |
btw = parseFloat($thumb.css("border-top-width") || 0);
|
2521 |
brw = parseFloat($thumb.css("border-right-width") || 0);
|
2565 |
if (slide.pos >= self.currPos - 1 && slide.pos <= self.currPos + 1) {
|
2566 |
slides[slide.pos] = slide;
|
2567 |
} else if (slide) {
|
2568 |
+
$.fancyboxforwp.stop(slide.$slide);
|
2569 |
|
2570 |
slide.$slide.off().remove();
|
2571 |
}
|
2765 |
current.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated");
|
2766 |
|
2767 |
if (e !== true) {
|
2768 |
+
$.fancyboxforwp.stop(current.$slide);
|
2769 |
} else {
|
2770 |
effect = false;
|
2771 |
}
|
2800 |
}
|
2801 |
|
2802 |
if (effect === "zoom") {
|
2803 |
+
$.fancyboxforwp.stop($content);
|
2804 |
|
2805 |
+
domRect = $.fancyboxforwp.getTranslate($content);
|
2806 |
|
2807 |
start = {
|
2808 |
top: domRect.top,
|
2824 |
end.opacity = 0;
|
2825 |
}
|
2826 |
|
2827 |
+
$.fancyboxforwp.setTranslate($content, start);
|
2828 |
|
2829 |
forceRedraw($content);
|
2830 |
|
2831 |
+
$.fancyboxforwp.animate($content, end, duration, done);
|
2832 |
|
2833 |
return true;
|
2834 |
}
|
2835 |
|
2836 |
if (effect && duration) {
|
2837 |
+
$.fancyboxforwp.animate(
|
2838 |
current.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),
|
2839 |
"fancybox-animated fancybox-fx-" + effect,
|
2840 |
duration,
|
2889 |
self.current = null;
|
2890 |
|
2891 |
// Check if there are other instances
|
2892 |
+
instance = $.fancyboxforwp.getInstance();
|
2893 |
|
2894 |
if (instance) {
|
2895 |
instance.activate();
|
3028 |
}
|
3029 |
});
|
3030 |
|
3031 |
+
$.fancyboxforwp = {
|
3032 |
version: "3.5.1",
|
3033 |
defaults: defaults,
|
3034 |
|
3036 |
//
|
3037 |
// Examples of usage:
|
3038 |
//
|
3039 |
+
// $instance = $.fancyboxforwp.getInstance();
|
3040 |
+
// $.fancyboxforwp.getInstance().jumpTo( 1 );
|
3041 |
+
// $.fancyboxforwp.getInstance( 'jumpTo', 1 );
|
3042 |
+
// $.fancyboxforwp.getInstance( function() {
|
3043 |
// console.info( this.currIndex );
|
3044 |
// });
|
3045 |
// ======================================================
|
3248 |
}
|
3249 |
}
|
3250 |
|
3251 |
+
$.fancyboxforwp.setTranslate($el, to);
|
3252 |
} else {
|
3253 |
$el.addClass(to);
|
3254 |
}
|
3301 |
}
|
3302 |
|
3303 |
$target = opts.$target || $(e.currentTarget).trigger("blur");
|
3304 |
+
instance = $.fancyboxforwp.getInstance();
|
3305 |
|
3306 |
if (instance && instance.$trigger && instance.$trigger.is($target)) {
|
3307 |
return;
|
3328 |
index = 0;
|
3329 |
}
|
3330 |
|
3331 |
+
instance = $.fancyboxforwp.open(items, opts, index);
|
3332 |
|
3333 |
// Save last active element
|
3334 |
instance.$trigger = $target;
|
3664 |
delete window.onYouTubeIframeAPIReady;
|
3665 |
}
|
3666 |
|
3667 |
+
instance = $.fancyboxforwp.getInstance();
|
3668 |
|
3669 |
if (instance) {
|
3670 |
$el = instance.current.$content.find("iframe");
|
3917 |
self.canvasHeight = Math.round($slide[0].clientHeight);
|
3918 |
|
3919 |
self.contentLastPos = null;
|
3920 |
+
self.contentStartPos = $.fancyboxforwp.getTranslate(self.$content) || {top: 0, left: 0};
|
3921 |
+
self.sliderStartPos = $.fancyboxforwp.getTranslate($slide);
|
3922 |
|
3923 |
// Since position will be absolute, but we need to make it relative to the stage
|
3924 |
+
self.stagePos = $.fancyboxforwp.getTranslate(instance.$refs.stage);
|
3925 |
|
3926 |
self.sliderStartPos.top -= self.stagePos.top;
|
3927 |
self.sliderStartPos.left -= self.stagePos.left;
|
3934 |
.on(isTouchDevice ? "touchend.fb.touch touchcancel.fb.touch" : "mouseup.fb.touch mouseleave.fb.touch", $.proxy(self, "ontouchend"))
|
3935 |
.on(isTouchDevice ? "touchmove.fb.touch" : "mousemove.fb.touch", $.proxy(self, "ontouchmove"));
|
3936 |
|
3937 |
+
if ($.fancyboxforwp.isMobile) {
|
3938 |
document.addEventListener("scroll", self.onscroll, true);
|
3939 |
}
|
3940 |
|
3944 |
e.preventDefault();
|
3945 |
}
|
3946 |
|
3947 |
+
if (!($.fancyboxforwp.isMobile && $target.hasClass("fancybox-caption"))) {
|
3948 |
return;
|
3949 |
}
|
3950 |
}
|
3952 |
self.isScrollable = isScrollable($target) || isScrollable($target.parent());
|
3953 |
|
3954 |
// Check if element is scrollable and try to prevent default behavior (scrolling)
|
3955 |
+
if (!($.fancyboxforwp.isMobile && self.isScrollable)) {
|
3956 |
e.preventDefault();
|
3957 |
}
|
3958 |
|
3959 |
// One finger or mouse click - swipe or pan an image
|
3960 |
if (self.startPoints.length === 1 || current.hasError) {
|
3961 |
if (self.canPan) {
|
3962 |
+
$.fancyboxforwp.stop(self.$content);
|
3963 |
|
3964 |
self.isPanning = true;
|
3965 |
} else {
|
3977 |
|
3978 |
self.isZooming = true;
|
3979 |
|
3980 |
+
$.fancyboxforwp.stop(self.$content);
|
3981 |
|
3982 |
self.centerPointStartX = (self.startPoints[0].x + self.startPoints[1].x) * 0.5 - $(window).scrollLeft();
|
3983 |
self.centerPointStartY = (self.startPoints[0].y + self.startPoints[1].y) * 0.5 - $(window).scrollTop();
|
4061 |
self.isSwiping = angle > 45 && angle < 135 ? "y" : "x";
|
4062 |
}
|
4063 |
|
4064 |
+
if (self.isSwiping === "y" && $.fancyboxforwp.isMobile && self.isScrollable) {
|
4065 |
self.isScrolling = true;
|
4066 |
|
4067 |
return;
|
4075 |
$.each(instance.slides, function(index, slide) {
|
4076 |
var slidePos, stagePos;
|
4077 |
|
4078 |
+
$.fancyboxforwp.stop(slide.$slide);
|
4079 |
|
4080 |
+
slidePos = $.fancyboxforwp.getTranslate(slide.$slide);
|
4081 |
+
stagePos = $.fancyboxforwp.getTranslate(instance.$refs.stage);
|
4082 |
|
4083 |
slide.$slide
|
4084 |
.css({
|
4096 |
self.sliderStartPos.left = slidePos.left - stagePos.left;
|
4097 |
}
|
4098 |
|
4099 |
+
$.fancyboxforwp.setTranslate(slide.$slide, {
|
4100 |
top: slidePos.top - stagePos.top,
|
4101 |
left: slidePos.left - stagePos.left
|
4102 |
});
|
4145 |
$.each(self.instance.slides, function(index, slide) {
|
4146 |
var pos = slide.pos - self.instance.currPos;
|
4147 |
|
4148 |
+
$.fancyboxforwp.setTranslate(slide.$slide, {
|
4149 |
top: self.sliderLastPos.top,
|
4150 |
left: self.sliderLastPos.left + pos * self.canvasWidth + pos * slide.opts.gutter
|
4151 |
});
|
4160 |
var self = this;
|
4161 |
|
4162 |
// Prevent accidental movement (sometimes, when tapping casually, finger can move a bit)
|
4163 |
+
if (distance(self.newPoints[0], self.realPoints[0]) < ($.fancyboxforwp.isMobile ? 10 : 5)) {
|
4164 |
self.startPoints = self.newPoints;
|
4165 |
return;
|
4166 |
}
|
4174 |
}
|
4175 |
|
4176 |
self.requestId = requestAFrame(function() {
|
4177 |
+
$.fancyboxforwp.setTranslate(self.$content, self.contentLastPos);
|
4178 |
});
|
4179 |
};
|
4180 |
|
4322 |
}
|
4323 |
|
4324 |
self.requestId = requestAFrame(function() {
|
4325 |
+
$.fancyboxforwp.setTranslate(self.$content, self.contentLastPos);
|
4326 |
});
|
4327 |
};
|
4328 |
|
4390 |
// Close if swiped vertically / navigate if horizontally
|
4391 |
if (swiping == "y" && !scrolling && Math.abs(self.distanceY) > 50) {
|
4392 |
// Continue vertical movement
|
4393 |
+
$.fancyboxforwp.animate(
|
4394 |
self.instance.current.$slide,
|
4395 |
{
|
4396 |
top: self.sliderStartPos.top + self.distanceY + self.velocityY * 150,
|
4438 |
newPos.width = self.contentStartPos.width;
|
4439 |
newPos.height = self.contentStartPos.height;
|
4440 |
|
4441 |
+
$.fancyboxforwp.animate(self.$content, newPos, 330);
|
4442 |
};
|
4443 |
|
4444 |
Guestures.prototype.endZooming = function() {
|
4468 |
};
|
4469 |
|
4470 |
// Reset scalex/scaleY values; this helps for perfomance and does not break animation
|
4471 |
+
$.fancyboxforwp.setTranslate(self.$content, reset);
|
4472 |
|
4473 |
if (newWidth < self.canvasWidth && newHeight < self.canvasHeight) {
|
4474 |
self.instance.scaleToFit(150);
|
4477 |
} else {
|
4478 |
newPos = self.limitPosition(newOffsetX, newOffsetY, newWidth, newHeight);
|
4479 |
|
4480 |
+
$.fancyboxforwp.animate(self.$content, newPos, 150);
|
4481 |
}
|
4482 |
};
|
4483 |
|
4627 |
// Enables slideshow functionality
|
4628 |
//
|
4629 |
// Example of usage:
|
4630 |
+
// $.fancyboxforwp.getInstance().SlideShow.start()
|
4631 |
//
|
4632 |
// ==========================================================================
|
4633 |
(function(document, $) {
|
4634 |
"use strict";
|
4635 |
|
4636 |
+
$.extend(true, $.fancyboxforwp.defaults, {
|
4637 |
btnTpl: {
|
4638 |
slideShow:
|
4639 |
'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}">' +
|
4683 |
if (current && (force === true || current.opts.loop || instance.currIndex < instance.group.length - 1)) {
|
4684 |
if (self.isActive && current.contentType !== "video") {
|
4685 |
if (self.$progress) {
|
4686 |
+
$.fancyboxforwp.animate(self.$progress.show(), {scaleX: 1}, current.opts.slideShow.speed);
|
4687 |
}
|
4688 |
|
4689 |
self.timer = setTimeout(function() {
|
4809 |
|
4810 |
// Page Visibility API to pause slideshow when window is not active
|
4811 |
$(document).on("visibilitychange", function() {
|
4812 |
+
var instance = $.fancyboxforwp.getInstance(),
|
4813 |
SlideShow = instance && instance.SlideShow;
|
4814 |
|
4815 |
if (SlideShow && SlideShow.isActive) {
|
4908 |
}
|
4909 |
};
|
4910 |
|
4911 |
+
$.extend(true, $.fancyboxforwp.defaults, {
|
4912 |
btnTpl: {
|
4913 |
fullScreen:
|
4914 |
'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}">' +
|
4923 |
|
4924 |
$(document).on(fn.fullscreenchange, function() {
|
4925 |
var isFullscreen = FullScreen.isFullscreen(),
|
4926 |
+
instance = $.fancyboxforwp.getInstance();
|
4927 |
|
4928 |
if (instance) {
|
4929 |
// If image is zooming, then force to stop and reposition properly
|
5008 |
CLASS_ACTIVE = CLASS + "-active";
|
5009 |
|
5010 |
// Make sure there are default values
|
5011 |
+
$.fancyboxforwp.defaults = $.extend(
|
5012 |
true,
|
5013 |
{
|
5014 |
btnTpl: {
|
5024 |
axis: "y" // Vertical (y) or horizontal (x) scrolling
|
5025 |
}
|
5026 |
},
|
5027 |
+
$.fancyboxforwp.defaults
|
5028 |
);
|
5029 |
|
5030 |
var FancyThumbs = function(instance) {
|
5260 |
(function(document, $) {
|
5261 |
"use strict";
|
5262 |
|
5263 |
+
$.extend(true, $.fancyboxforwp.defaults, {
|
5264 |
btnTpl: {
|
5265 |
share:
|
5266 |
'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}">' +
|
5313 |
}
|
5314 |
|
5315 |
$(document).on("click", "[data-fancybox-share]", function() {
|
5316 |
+
var instance = $.fancyboxforwp.getInstance(),
|
5317 |
current = instance.current || null,
|
5318 |
url,
|
5319 |
tpl;
|
5332 |
.replace(/\{\{url_raw\}\}/g, escapeHtml(url))
|
5333 |
.replace(/\{\{descr\}\}/g, instance.$caption ? encodeURIComponent(instance.$caption.text()) : "");
|
5334 |
|
5335 |
+
$.fancyboxforwp.open({
|
5336 |
src: instance.translate(instance, tpl),
|
5337 |
type: "html",
|
5338 |
opts: {
|
5434 |
// Start when DOM becomes ready
|
5435 |
$(function() {
|
5436 |
// Check if user has disabled this module
|
5437 |
+
if ($.fancyboxforwp.defaults.hash === false) {
|
5438 |
return;
|
5439 |
}
|
5440 |
|
5563 |
|
5564 |
// Check current hash and trigger click event on matching element to start fancyBox, if needed
|
5565 |
setTimeout(function() {
|
5566 |
+
if (!$.fancyboxforwp.getInstance()) {
|
5567 |
triggerFromUrl(parseUrl());
|
5568 |
}
|
5569 |
}, 50);
|
fancybox.php
CHANGED
@@ -1,25 +1,41 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
-
Plugin
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
Author:
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
/**
|
19 |
* Plugin Init
|
20 |
*/
|
21 |
// Constants
|
22 |
-
define( 'FBFW_VERSION', '3.1.
|
23 |
define( 'FBFW_PATH', plugin_dir_path( __FILE__ ) );
|
24 |
define( 'FBFW_URL', plugin_dir_url( __FILE__ ) );
|
25 |
define( 'FBFW_PLUGIN_BASE', plugin_basename( __FILE__ ) );
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* Plugin Name: FancyBox for WordPress
|
4 |
+
* Plugin URI: https://wordpress.org/plugins/fancybox-for-wordpress/
|
5 |
+
* Description: Integrates <a href="http://fancyapps.com/fancybox/3/">FancyBox 3</a> into WordPress.
|
6 |
+
* Version: 3.1.9
|
7 |
+
* Author: Colorlib
|
8 |
+
* Author URI: https://colorlib.com/wp/
|
9 |
+
* Tested up to: 5.1
|
10 |
+
* Requires: 4.6 or higher
|
11 |
+
* License: GPLv3 or later
|
12 |
+
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
13 |
+
* Requires PHP: 5.6
|
14 |
+
* Text Domain: colorlib-login-customizer
|
15 |
+
* Domain Path: /languages
|
16 |
+
*
|
17 |
+
* Copyright 2008-2016 Janis Skarnelis http://twitter.com/moskis/
|
18 |
+
* Copyright 2016-2019 Colorlib support@colorlib.com
|
19 |
+
*
|
20 |
+
* This program is free software; you can redistribute it and/or modify
|
21 |
+
* it under the terms of the GNU General Public License, version 3, as
|
22 |
+
* published by the Free Software Foundation.
|
23 |
+
*
|
24 |
+
* This program is distributed in the hope that it will be useful,
|
25 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
26 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
27 |
+
* GNU General Public License for more details.
|
28 |
+
*
|
29 |
+
* You should have received a copy of the GNU General Public License
|
30 |
+
* along with this program; if not, write to the Free Software
|
31 |
+
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
32 |
+
*/
|
33 |
|
34 |
/**
|
35 |
* Plugin Init
|
36 |
*/
|
37 |
// Constants
|
38 |
+
define( 'FBFW_VERSION', '3.1.9' );
|
39 |
define( 'FBFW_PATH', plugin_dir_path( __FILE__ ) );
|
40 |
define( 'FBFW_URL', plugin_dir_url( __FILE__ ) );
|
41 |
define( 'FBFW_PLUGIN_BASE', plugin_basename( __FILE__ ) );
|
license.txt
ADDED
@@ -0,0 +1,674 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
GNU GENERAL PUBLIC LICENSE
|
2 |
+
Version 3, 29 June 2007
|
3 |
+
|
4 |
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
5 |
+
Everyone is permitted to copy and distribute verbatim copies
|
6 |
+
of this license document, but changing it is not allowed.
|
7 |
+
|
8 |
+
Preamble
|
9 |
+
|
10 |
+
The GNU General Public License is a free, copyleft license for
|
11 |
+
software and other kinds of works.
|
12 |
+
|
13 |
+
The licenses for most software and other practical works are designed
|
14 |
+
to take away your freedom to share and change the works. By contrast,
|
15 |
+
the GNU General Public License is intended to guarantee your freedom to
|
16 |
+
share and change all versions of a program--to make sure it remains free
|
17 |
+
software for all its users. We, the Free Software Foundation, use the
|
18 |
+
GNU General Public License for most of our software; it applies also to
|
19 |
+
any other work released this way by its authors. You can apply it to
|
20 |
+
your programs, too.
|
21 |
+
|
22 |
+
When we speak of free software, we are referring to freedom, not
|
23 |
+
price. Our General Public Licenses are designed to make sure that you
|
24 |
+
have the freedom to distribute copies of free software (and charge for
|
25 |
+
them if you wish), that you receive source code or can get it if you
|
26 |
+
want it, that you can change the software or use pieces of it in new
|
27 |
+
free programs, and that you know you can do these things.
|
28 |
+
|
29 |
+
To protect your rights, we need to prevent others from denying you
|
30 |
+
these rights or asking you to surrender the rights. Therefore, you have
|
31 |
+
certain responsibilities if you distribute copies of the software, or if
|
32 |
+
you modify it: responsibilities to respect the freedom of others.
|
33 |
+
|
34 |
+
For example, if you distribute copies of such a program, whether
|
35 |
+
gratis or for a fee, you must pass on to the recipients the same
|
36 |
+
freedoms that you received. You must make sure that they, too, receive
|
37 |
+
or can get the source code. And you must show them these terms so they
|
38 |
+
know their rights.
|
39 |
+
|
40 |
+
Developers that use the GNU GPL protect your rights with two steps:
|
41 |
+
(1) assert copyright on the software, and (2) offer you this License
|
42 |
+
giving you legal permission to copy, distribute and/or modify it.
|
43 |
+
|
44 |
+
For the developers' and authors' protection, the GPL clearly explains
|
45 |
+
that there is no warranty for this free software. For both users' and
|
46 |
+
authors' sake, the GPL requires that modified versions be marked as
|
47 |
+
changed, so that their problems will not be attributed erroneously to
|
48 |
+
authors of previous versions.
|
49 |
+
|
50 |
+
Some devices are designed to deny users access to install or run
|
51 |
+
modified versions of the software inside them, although the manufacturer
|
52 |
+
can do so. This is fundamentally incompatible with the aim of
|
53 |
+
protecting users' freedom to change the software. The systematic
|
54 |
+
pattern of such abuse occurs in the area of products for individuals to
|
55 |
+
use, which is precisely where it is most unacceptable. Therefore, we
|
56 |
+
have designed this version of the GPL to prohibit the practice for those
|
57 |
+
products. If such problems arise substantially in other domains, we
|
58 |
+
stand ready to extend this provision to those domains in future versions
|
59 |
+
of the GPL, as needed to protect the freedom of users.
|
60 |
+
|
61 |
+
Finally, every program is threatened constantly by software patents.
|
62 |
+
States should not allow patents to restrict development and use of
|
63 |
+
software on general-purpose computers, but in those that do, we wish to
|
64 |
+
avoid the special danger that patents applied to a free program could
|
65 |
+
make it effectively proprietary. To prevent this, the GPL assures that
|
66 |
+
patents cannot be used to render the program non-free.
|
67 |
+
|
68 |
+
The precise terms and conditions for copying, distribution and
|
69 |
+
modification follow.
|
70 |
+
|
71 |
+
TERMS AND CONDITIONS
|
72 |
+
|
73 |
+
0. Definitions.
|
74 |
+
|
75 |
+
"This License" refers to version 3 of the GNU General Public License.
|
76 |
+
|
77 |
+
"Copyright" also means copyright-like laws that apply to other kinds of
|
78 |
+
works, such as semiconductor masks.
|
79 |
+
|
80 |
+
"The Program" refers to any copyrightable work licensed under this
|
81 |
+
License. Each licensee is addressed as "you". "Licensees" and
|
82 |
+
"recipients" may be individuals or organizations.
|
83 |
+
|
84 |
+
To "modify" a work means to copy from or adapt all or part of the work
|
85 |
+
in a fashion requiring copyright permission, other than the making of an
|
86 |
+
exact copy. The resulting work is called a "modified version" of the
|
87 |
+
earlier work or a work "based on" the earlier work.
|
88 |
+
|
89 |
+
A "covered work" means either the unmodified Program or a work based
|
90 |
+
on the Program.
|
91 |
+
|
92 |
+
To "propagate" a work means to do anything with it that, without
|
93 |
+
permission, would make you directly or secondarily liable for
|
94 |
+
infringement under applicable copyright law, except executing it on a
|
95 |
+
computer or modifying a private copy. Propagation includes copying,
|
96 |
+
distribution (with or without modification), making available to the
|
97 |
+
public, and in some countries other activities as well.
|
98 |
+
|
99 |
+
To "convey" a work means any kind of propagation that enables other
|
100 |
+
parties to make or receive copies. Mere interaction with a user through
|
101 |
+
a computer network, with no transfer of a copy, is not conveying.
|
102 |
+
|
103 |
+
An interactive user interface displays "Appropriate Legal Notices"
|
104 |
+
to the extent that it includes a convenient and prominently visible
|
105 |
+
feature that (1) displays an appropriate copyright notice, and (2)
|
106 |
+
tells the user that there is no warranty for the work (except to the
|
107 |
+
extent that warranties are provided), that licensees may convey the
|
108 |
+
work under this License, and how to view a copy of this License. If
|
109 |
+
the interface presents a list of user commands or options, such as a
|
110 |
+
menu, a prominent item in the list meets this criterion.
|
111 |
+
|
112 |
+
1. Source Code.
|
113 |
+
|
114 |
+
The "source code" for a work means the preferred form of the work
|
115 |
+
for making modifications to it. "Object code" means any non-source
|
116 |
+
form of a work.
|
117 |
+
|
118 |
+
A "Standard Interface" means an interface that either is an official
|
119 |
+
standard defined by a recognized standards body, or, in the case of
|
120 |
+
interfaces specified for a particular programming language, one that
|
121 |
+
is widely used among developers working in that language.
|
122 |
+
|
123 |
+
The "System Libraries" of an executable work include anything, other
|
124 |
+
than the work as a whole, that (a) is included in the normal form of
|
125 |
+
packaging a Major Component, but which is not part of that Major
|
126 |
+
Component, and (b) serves only to enable use of the work with that
|
127 |
+
Major Component, or to implement a Standard Interface for which an
|
128 |
+
implementation is available to the public in source code form. A
|
129 |
+
"Major Component", in this context, means a major essential component
|
130 |
+
(kernel, window system, and so on) of the specific operating system
|
131 |
+
(if any) on which the executable work runs, or a compiler used to
|
132 |
+
produce the work, or an object code interpreter used to run it.
|
133 |
+
|
134 |
+
The "Corresponding Source" for a work in object code form means all
|
135 |
+
the source code needed to generate, install, and (for an executable
|
136 |
+
work) run the object code and to modify the work, including scripts to
|
137 |
+
control those activities. However, it does not include the work's
|
138 |
+
System Libraries, or general-purpose tools or generally available free
|
139 |
+
programs which are used unmodified in performing those activities but
|
140 |
+
which are not part of the work. For example, Corresponding Source
|
141 |
+
includes interface definition files associated with source files for
|
142 |
+
the work, and the source code for shared libraries and dynamically
|
143 |
+
linked subprograms that the work is specifically designed to require,
|
144 |
+
such as by intimate data communication or control flow between those
|
145 |
+
subprograms and other parts of the work.
|
146 |
+
|
147 |
+
The Corresponding Source need not include anything that users
|
148 |
+
can regenerate automatically from other parts of the Corresponding
|
149 |
+
Source.
|
150 |
+
|
151 |
+
The Corresponding Source for a work in source code form is that
|
152 |
+
same work.
|
153 |
+
|
154 |
+
2. Basic Permissions.
|
155 |
+
|
156 |
+
All rights granted under this License are granted for the term of
|
157 |
+
copyright on the Program, and are irrevocable provided the stated
|
158 |
+
conditions are met. This License explicitly affirms your unlimited
|
159 |
+
permission to run the unmodified Program. The output from running a
|
160 |
+
covered work is covered by this License only if the output, given its
|
161 |
+
content, constitutes a covered work. This License acknowledges your
|
162 |
+
rights of fair use or other equivalent, as provided by copyright law.
|
163 |
+
|
164 |
+
You may make, run and propagate covered works that you do not
|
165 |
+
convey, without conditions so long as your license otherwise remains
|
166 |
+
in force. You may convey covered works to others for the sole purpose
|
167 |
+
of having them make modifications exclusively for you, or provide you
|
168 |
+
with facilities for running those works, provided that you comply with
|
169 |
+
the terms of this License in conveying all material for which you do
|
170 |
+
not control copyright. Those thus making or running the covered works
|
171 |
+
for you must do so exclusively on your behalf, under your direction
|
172 |
+
and control, on terms that prohibit them from making any copies of
|
173 |
+
your copyrighted material outside their relationship with you.
|
174 |
+
|
175 |
+
Conveying under any other circumstances is permitted solely under
|
176 |
+
the conditions stated below. Sublicensing is not allowed; section 10
|
177 |
+
makes it unnecessary.
|
178 |
+
|
179 |
+
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
180 |
+
|
181 |
+
No covered work shall be deemed part of an effective technological
|
182 |
+
measure under any applicable law fulfilling obligations under article
|
183 |
+
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
184 |
+
similar laws prohibiting or restricting circumvention of such
|
185 |
+
measures.
|
186 |
+
|
187 |
+
When you convey a covered work, you waive any legal power to forbid
|
188 |
+
circumvention of technological measures to the extent such circumvention
|
189 |
+
is effected by exercising rights under this License with respect to
|
190 |
+
the covered work, and you disclaim any intention to limit operation or
|
191 |
+
modification of the work as a means of enforcing, against the work's
|
192 |
+
users, your or third parties' legal rights to forbid circumvention of
|
193 |
+
technological measures.
|
194 |
+
|
195 |
+
4. Conveying Verbatim Copies.
|
196 |
+
|
197 |
+
You may convey verbatim copies of the Program's source code as you
|
198 |
+
receive it, in any medium, provided that you conspicuously and
|
199 |
+
appropriately publish on each copy an appropriate copyright notice;
|
200 |
+
keep intact all notices stating that this License and any
|
201 |
+
non-permissive terms added in accord with section 7 apply to the code;
|
202 |
+
keep intact all notices of the absence of any warranty; and give all
|
203 |
+
recipients a copy of this License along with the Program.
|
204 |
+
|
205 |
+
You may charge any price or no price for each copy that you convey,
|
206 |
+
and you may offer support or warranty protection for a fee.
|
207 |
+
|
208 |
+
5. Conveying Modified Source Versions.
|
209 |
+
|
210 |
+
You may convey a work based on the Program, or the modifications to
|
211 |
+
produce it from the Program, in the form of source code under the
|
212 |
+
terms of section 4, provided that you also meet all of these conditions:
|
213 |
+
|
214 |
+
a) The work must carry prominent notices stating that you modified
|
215 |
+
it, and giving a relevant date.
|
216 |
+
|
217 |
+
b) The work must carry prominent notices stating that it is
|
218 |
+
released under this License and any conditions added under section
|
219 |
+
7. This requirement modifies the requirement in section 4 to
|
220 |
+
"keep intact all notices".
|
221 |
+
|
222 |
+
c) You must license the entire work, as a whole, under this
|
223 |
+
License to anyone who comes into possession of a copy. This
|
224 |
+
License will therefore apply, along with any applicable section 7
|
225 |
+
additional terms, to the whole of the work, and all its parts,
|
226 |
+
regardless of how they are packaged. This License gives no
|
227 |
+
permission to license the work in any other way, but it does not
|
228 |
+
invalidate such permission if you have separately received it.
|
229 |
+
|
230 |
+
d) If the work has interactive user interfaces, each must display
|
231 |
+
Appropriate Legal Notices; however, if the Program has interactive
|
232 |
+
interfaces that do not display Appropriate Legal Notices, your
|
233 |
+
work need not make them do so.
|
234 |
+
|
235 |
+
A compilation of a covered work with other separate and independent
|
236 |
+
works, which are not by their nature extensions of the covered work,
|
237 |
+
and which are not combined with it such as to form a larger program,
|
238 |
+
in or on a volume of a storage or distribution medium, is called an
|
239 |
+
"aggregate" if the compilation and its resulting copyright are not
|
240 |
+
used to limit the access or legal rights of the compilation's users
|
241 |
+
beyond what the individual works permit. Inclusion of a covered work
|
242 |
+
in an aggregate does not cause this License to apply to the other
|
243 |
+
parts of the aggregate.
|
244 |
+
|
245 |
+
6. Conveying Non-Source Forms.
|
246 |
+
|
247 |
+
You may convey a covered work in object code form under the terms
|
248 |
+
of sections 4 and 5, provided that you also convey the
|
249 |
+
machine-readable Corresponding Source under the terms of this License,
|
250 |
+
in one of these ways:
|
251 |
+
|
252 |
+
a) Convey the object code in, or embodied in, a physical product
|
253 |
+
(including a physical distribution medium), accompanied by the
|
254 |
+
Corresponding Source fixed on a durable physical medium
|
255 |
+
customarily used for software interchange.
|
256 |
+
|
257 |
+
b) Convey the object code in, or embodied in, a physical product
|
258 |
+
(including a physical distribution medium), accompanied by a
|
259 |
+
written offer, valid for at least three years and valid for as
|
260 |
+
long as you offer spare parts or customer support for that product
|
261 |
+
model, to give anyone who possesses the object code either (1) a
|
262 |
+
copy of the Corresponding Source for all the software in the
|
263 |
+
product that is covered by this License, on a durable physical
|
264 |
+
medium customarily used for software interchange, for a price no
|
265 |
+
more than your reasonable cost of physically performing this
|
266 |
+
conveying of source, or (2) access to copy the
|
267 |
+
Corresponding Source from a network server at no charge.
|
268 |
+
|
269 |
+
c) Convey individual copies of the object code with a copy of the
|
270 |
+
written offer to provide the Corresponding Source. This
|
271 |
+
alternative is allowed only occasionally and noncommercially, and
|
272 |
+
only if you received the object code with such an offer, in accord
|
273 |
+
with subsection 6b.
|
274 |
+
|
275 |
+
d) Convey the object code by offering access from a designated
|
276 |
+
place (gratis or for a charge), and offer equivalent access to the
|
277 |
+
Corresponding Source in the same way through the same place at no
|
278 |
+
further charge. You need not require recipients to copy the
|
279 |
+
Corresponding Source along with the object code. If the place to
|
280 |
+
copy the object code is a network server, the Corresponding Source
|
281 |
+
may be on a different server (operated by you or a third party)
|
282 |
+
that supports equivalent copying facilities, provided you maintain
|
283 |
+
clear directions next to the object code saying where to find the
|
284 |
+
Corresponding Source. Regardless of what server hosts the
|
285 |
+
Corresponding Source, you remain obligated to ensure that it is
|
286 |
+
available for as long as needed to satisfy these requirements.
|
287 |
+
|
288 |
+
e) Convey the object code using peer-to-peer transmission, provided
|
289 |
+
you inform other peers where the object code and Corresponding
|
290 |
+
Source of the work are being offered to the general public at no
|
291 |
+
charge under subsection 6d.
|
292 |
+
|
293 |
+
A separable portion of the object code, whose source code is excluded
|
294 |
+
from the Corresponding Source as a System Library, need not be
|
295 |
+
included in conveying the object code work.
|
296 |
+
|
297 |
+
A "User Product" is either (1) a "consumer product", which means any
|
298 |
+
tangible personal property which is normally used for personal, family,
|
299 |
+
or household purposes, or (2) anything designed or sold for incorporation
|
300 |
+
into a dwelling. In determining whether a product is a consumer product,
|
301 |
+
doubtful cases shall be resolved in favor of coverage. For a particular
|
302 |
+
product received by a particular user, "normally used" refers to a
|
303 |
+
typical or common use of that class of product, regardless of the status
|
304 |
+
of the particular user or of the way in which the particular user
|
305 |
+
actually uses, or expects or is expected to use, the product. A product
|
306 |
+
is a consumer product regardless of whether the product has substantial
|
307 |
+
commercial, industrial or non-consumer uses, unless such uses represent
|
308 |
+
the only significant mode of use of the product.
|
309 |
+
|
310 |
+
"Installation Information" for a User Product means any methods,
|
311 |
+
procedures, authorization keys, or other information required to install
|
312 |
+
and execute modified versions of a covered work in that User Product from
|
313 |
+
a modified version of its Corresponding Source. The information must
|
314 |
+
suffice to ensure that the continued functioning of the modified object
|
315 |
+
code is in no case prevented or interfered with solely because
|
316 |
+
modification has been made.
|
317 |
+
|
318 |
+
If you convey an object code work under this section in, or with, or
|
319 |
+
specifically for use in, a User Product, and the conveying occurs as
|
320 |
+
part of a transaction in which the right of possession and use of the
|
321 |
+
User Product is transferred to the recipient in perpetuity or for a
|
322 |
+
fixed term (regardless of how the transaction is characterized), the
|
323 |
+
Corresponding Source conveyed under this section must be accompanied
|
324 |
+
by the Installation Information. But this requirement does not apply
|
325 |
+
if neither you nor any third party retains the ability to install
|
326 |
+
modified object code on the User Product (for example, the work has
|
327 |
+
been installed in ROM).
|
328 |
+
|
329 |
+
The requirement to provide Installation Information does not include a
|
330 |
+
requirement to continue to provide support service, warranty, or updates
|
331 |
+
for a work that has been modified or installed by the recipient, or for
|
332 |
+
the User Product in which it has been modified or installed. Access to a
|
333 |
+
network may be denied when the modification itself materially and
|
334 |
+
adversely affects the operation of the network or violates the rules and
|
335 |
+
protocols for communication across the network.
|
336 |
+
|
337 |
+
Corresponding Source conveyed, and Installation Information provided,
|
338 |
+
in accord with this section must be in a format that is publicly
|
339 |
+
documented (and with an implementation available to the public in
|
340 |
+
source code form), and must require no special password or key for
|
341 |
+
unpacking, reading or copying.
|
342 |
+
|
343 |
+
7. Additional Terms.
|
344 |
+
|
345 |
+
"Additional permissions" are terms that supplement the terms of this
|
346 |
+
License by making exceptions from one or more of its conditions.
|
347 |
+
Additional permissions that are applicable to the entire Program shall
|
348 |
+
be treated as though they were included in this License, to the extent
|
349 |
+
that they are valid under applicable law. If additional permissions
|
350 |
+
apply only to part of the Program, that part may be used separately
|
351 |
+
under those permissions, but the entire Program remains governed by
|
352 |
+
this License without regard to the additional permissions.
|
353 |
+
|
354 |
+
When you convey a copy of a covered work, you may at your option
|
355 |
+
remove any additional permissions from that copy, or from any part of
|
356 |
+
it. (Additional permissions may be written to require their own
|
357 |
+
removal in certain cases when you modify the work.) You may place
|
358 |
+
additional permissions on material, added by you to a covered work,
|
359 |
+
for which you have or can give appropriate copyright permission.
|
360 |
+
|
361 |
+
Notwithstanding any other provision of this License, for material you
|
362 |
+
add to a covered work, you may (if authorized by the copyright holders of
|
363 |
+
that material) supplement the terms of this License with terms:
|
364 |
+
|
365 |
+
a) Disclaiming warranty or limiting liability differently from the
|
366 |
+
terms of sections 15 and 16 of this License; or
|
367 |
+
|
368 |
+
b) Requiring preservation of specified reasonable legal notices or
|
369 |
+
author attributions in that material or in the Appropriate Legal
|
370 |
+
Notices displayed by works containing it; or
|
371 |
+
|
372 |
+
c) Prohibiting misrepresentation of the origin of that material, or
|
373 |
+
requiring that modified versions of such material be marked in
|
374 |
+
reasonable ways as different from the original version; or
|
375 |
+
|
376 |
+
d) Limiting the use for publicity purposes of names of licensors or
|
377 |
+
authors of the material; or
|
378 |
+
|
379 |
+
e) Declining to grant rights under trademark law for use of some
|
380 |
+
trade names, trademarks, or service marks; or
|
381 |
+
|
382 |
+
f) Requiring indemnification of licensors and authors of that
|
383 |
+
material by anyone who conveys the material (or modified versions of
|
384 |
+
it) with contractual assumptions of liability to the recipient, for
|
385 |
+
any liability that these contractual assumptions directly impose on
|
386 |
+
those licensors and authors.
|
387 |
+
|
388 |
+
All other non-permissive additional terms are considered "further
|
389 |
+
restrictions" within the meaning of section 10. If the Program as you
|
390 |
+
received it, or any part of it, contains a notice stating that it is
|
391 |
+
governed by this License along with a term that is a further
|
392 |
+
restriction, you may remove that term. If a license document contains
|
393 |
+
a further restriction but permits relicensing or conveying under this
|
394 |
+
License, you may add to a covered work material governed by the terms
|
395 |
+
of that license document, provided that the further restriction does
|
396 |
+
not survive such relicensing or conveying.
|
397 |
+
|
398 |
+
If you add terms to a covered work in accord with this section, you
|
399 |
+
must place, in the relevant source files, a statement of the
|
400 |
+
additional terms that apply to those files, or a notice indicating
|
401 |
+
where to find the applicable terms.
|
402 |
+
|
403 |
+
Additional terms, permissive or non-permissive, may be stated in the
|
404 |
+
form of a separately written license, or stated as exceptions;
|
405 |
+
the above requirements apply either way.
|
406 |
+
|
407 |
+
8. Termination.
|
408 |
+
|
409 |
+
You may not propagate or modify a covered work except as expressly
|
410 |
+
provided under this License. Any attempt otherwise to propagate or
|
411 |
+
modify it is void, and will automatically terminate your rights under
|
412 |
+
this License (including any patent licenses granted under the third
|
413 |
+
paragraph of section 11).
|
414 |
+
|
415 |
+
However, if you cease all violation of this License, then your
|
416 |
+
license from a particular copyright holder is reinstated (a)
|
417 |
+
provisionally, unless and until the copyright holder explicitly and
|
418 |
+
finally terminates your license, and (b) permanently, if the copyright
|
419 |
+
holder fails to notify you of the violation by some reasonable means
|
420 |
+
prior to 60 days after the cessation.
|
421 |
+
|
422 |
+
Moreover, your license from a particular copyright holder is
|
423 |
+
reinstated permanently if the copyright holder notifies you of the
|
424 |
+
violation by some reasonable means, this is the first time you have
|
425 |
+
received notice of violation of this License (for any work) from that
|
426 |
+
copyright holder, and you cure the violation prior to 30 days after
|
427 |
+
your receipt of the notice.
|
428 |
+
|
429 |
+
Termination of your rights under this section does not terminate the
|
430 |
+
licenses of parties who have received copies or rights from you under
|
431 |
+
this License. If your rights have been terminated and not permanently
|
432 |
+
reinstated, you do not qualify to receive new licenses for the same
|
433 |
+
material under section 10.
|
434 |
+
|
435 |
+
9. Acceptance Not Required for Having Copies.
|
436 |
+
|
437 |
+
You are not required to accept this License in order to receive or
|
438 |
+
run a copy of the Program. Ancillary propagation of a covered work
|
439 |
+
occurring solely as a consequence of using peer-to-peer transmission
|
440 |
+
to receive a copy likewise does not require acceptance. However,
|
441 |
+
nothing other than this License grants you permission to propagate or
|
442 |
+
modify any covered work. These actions infringe copyright if you do
|
443 |
+
not accept this License. Therefore, by modifying or propagating a
|
444 |
+
covered work, you indicate your acceptance of this License to do so.
|
445 |
+
|
446 |
+
10. Automatic Licensing of Downstream Recipients.
|
447 |
+
|
448 |
+
Each time you convey a covered work, the recipient automatically
|
449 |
+
receives a license from the original licensors, to run, modify and
|
450 |
+
propagate that work, subject to this License. You are not responsible
|
451 |
+
for enforcing compliance by third parties with this License.
|
452 |
+
|
453 |
+
An "entity transaction" is a transaction transferring control of an
|
454 |
+
organization, or substantially all assets of one, or subdividing an
|
455 |
+
organization, or merging organizations. If propagation of a covered
|
456 |
+
work results from an entity transaction, each party to that
|
457 |
+
transaction who receives a copy of the work also receives whatever
|
458 |
+
licenses to the work the party's predecessor in interest had or could
|
459 |
+
give under the previous paragraph, plus a right to possession of the
|
460 |
+
Corresponding Source of the work from the predecessor in interest, if
|
461 |
+
the predecessor has it or can get it with reasonable efforts.
|
462 |
+
|
463 |
+
You may not impose any further restrictions on the exercise of the
|
464 |
+
rights granted or affirmed under this License. For example, you may
|
465 |
+
not impose a license fee, royalty, or other charge for exercise of
|
466 |
+
rights granted under this License, and you may not initiate litigation
|
467 |
+
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
468 |
+
any patent claim is infringed by making, using, selling, offering for
|
469 |
+
sale, or importing the Program or any portion of it.
|
470 |
+
|
471 |
+
11. Patents.
|
472 |
+
|
473 |
+
A "contributor" is a copyright holder who authorizes use under this
|
474 |
+
License of the Program or a work on which the Program is based. The
|
475 |
+
work thus licensed is called the contributor's "contributor version".
|
476 |
+
|
477 |
+
A contributor's "essential patent claims" are all patent claims
|
478 |
+
owned or controlled by the contributor, whether already acquired or
|
479 |
+
hereafter acquired, that would be infringed by some manner, permitted
|
480 |
+
by this License, of making, using, or selling its contributor version,
|
481 |
+
but do not include claims that would be infringed only as a
|
482 |
+
consequence of further modification of the contributor version. For
|
483 |
+
purposes of this definition, "control" includes the right to grant
|
484 |
+
patent sublicenses in a manner consistent with the requirements of
|
485 |
+
this License.
|
486 |
+
|
487 |
+
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
488 |
+
patent license under the contributor's essential patent claims, to
|
489 |
+
make, use, sell, offer for sale, import and otherwise run, modify and
|
490 |
+
propagate the contents of its contributor version.
|
491 |
+
|
492 |
+
In the following three paragraphs, a "patent license" is any express
|
493 |
+
agreement or commitment, however denominated, not to enforce a patent
|
494 |
+
(such as an express permission to practice a patent or covenant not to
|
495 |
+
sue for patent infringement). To "grant" such a patent license to a
|
496 |
+
party means to make such an agreement or commitment not to enforce a
|
497 |
+
patent against the party.
|
498 |
+
|
499 |
+
If you convey a covered work, knowingly relying on a patent license,
|
500 |
+
and the Corresponding Source of the work is not available for anyone
|
501 |
+
to copy, free of charge and under the terms of this License, through a
|
502 |
+
publicly available network server or other readily accessible means,
|
503 |
+
then you must either (1) cause the Corresponding Source to be so
|
504 |
+
available, or (2) arrange to deprive yourself of the benefit of the
|
505 |
+
patent license for this particular work, or (3) arrange, in a manner
|
506 |
+
consistent with the requirements of this License, to extend the patent
|
507 |
+
license to downstream recipients. "Knowingly relying" means you have
|
508 |
+
actual knowledge that, but for the patent license, your conveying the
|
509 |
+
covered work in a country, or your recipient's use of the covered work
|
510 |
+
in a country, would infringe one or more identifiable patents in that
|
511 |
+
country that you have reason to believe are valid.
|
512 |
+
|
513 |
+
If, pursuant to or in connection with a single transaction or
|
514 |
+
arrangement, you convey, or propagate by procuring conveyance of, a
|
515 |
+
covered work, and grant a patent license to some of the parties
|
516 |
+
receiving the covered work authorizing them to use, propagate, modify
|
517 |
+
or convey a specific copy of the covered work, then the patent license
|
518 |
+
you grant is automatically extended to all recipients of the covered
|
519 |
+
work and works based on it.
|
520 |
+
|
521 |
+
A patent license is "discriminatory" if it does not include within
|
522 |
+
the scope of its coverage, prohibits the exercise of, or is
|
523 |
+
conditioned on the non-exercise of one or more of the rights that are
|
524 |
+
specifically granted under this License. You may not convey a covered
|
525 |
+
work if you are a party to an arrangement with a third party that is
|
526 |
+
in the business of distributing software, under which you make payment
|
527 |
+
to the third party based on the extent of your activity of conveying
|
528 |
+
the work, and under which the third party grants, to any of the
|
529 |
+
parties who would receive the covered work from you, a discriminatory
|
530 |
+
patent license (a) in connection with copies of the covered work
|
531 |
+
conveyed by you (or copies made from those copies), or (b) primarily
|
532 |
+
for and in connection with specific products or compilations that
|
533 |
+
contain the covered work, unless you entered into that arrangement,
|
534 |
+
or that patent license was granted, prior to 28 March 2007.
|
535 |
+
|
536 |
+
Nothing in this License shall be construed as excluding or limiting
|
537 |
+
any implied license or other defenses to infringement that may
|
538 |
+
otherwise be available to you under applicable patent law.
|
539 |
+
|
540 |
+
12. No Surrender of Others' Freedom.
|
541 |
+
|
542 |
+
If conditions are imposed on you (whether by court order, agreement or
|
543 |
+
otherwise) that contradict the conditions of this License, they do not
|
544 |
+
excuse you from the conditions of this License. If you cannot convey a
|
545 |
+
covered work so as to satisfy simultaneously your obligations under this
|
546 |
+
License and any other pertinent obligations, then as a consequence you may
|
547 |
+
not convey it at all. For example, if you agree to terms that obligate you
|
548 |
+
to collect a royalty for further conveying from those to whom you convey
|
549 |
+
the Program, the only way you could satisfy both those terms and this
|
550 |
+
License would be to refrain entirely from conveying the Program.
|
551 |
+
|
552 |
+
13. Use with the GNU Affero General Public License.
|
553 |
+
|
554 |
+
Notwithstanding any other provision of this License, you have
|
555 |
+
permission to link or combine any covered work with a work licensed
|
556 |
+
under version 3 of the GNU Affero General Public License into a single
|
557 |
+
combined work, and to convey the resulting work. The terms of this
|
558 |
+
License will continue to apply to the part which is the covered work,
|
559 |
+
but the special requirements of the GNU Affero General Public License,
|
560 |
+
section 13, concerning interaction through a network will apply to the
|
561 |
+
combination as such.
|
562 |
+
|
563 |
+
14. Revised Versions of this License.
|
564 |
+
|
565 |
+
The Free Software Foundation may publish revised and/or new versions of
|
566 |
+
the GNU General Public License from time to time. Such new versions will
|
567 |
+
be similar in spirit to the present version, but may differ in detail to
|
568 |
+
address new problems or concerns.
|
569 |
+
|
570 |
+
Each version is given a distinguishing version number. If the
|
571 |
+
Program specifies that a certain numbered version of the GNU General
|
572 |
+
Public License "or any later version" applies to it, you have the
|
573 |
+
option of following the terms and conditions either of that numbered
|
574 |
+
version or of any later version published by the Free Software
|
575 |
+
Foundation. If the Program does not specify a version number of the
|
576 |
+
GNU General Public License, you may choose any version ever published
|
577 |
+
by the Free Software Foundation.
|
578 |
+
|
579 |
+
If the Program specifies that a proxy can decide which future
|
580 |
+
versions of the GNU General Public License can be used, that proxy's
|
581 |
+
public statement of acceptance of a version permanently authorizes you
|
582 |
+
to choose that version for the Program.
|
583 |
+
|
584 |
+
Later license versions may give you additional or different
|
585 |
+
permissions. However, no additional obligations are imposed on any
|
586 |
+
author or copyright holder as a result of your choosing to follow a
|
587 |
+
later version.
|
588 |
+
|
589 |
+
15. Disclaimer of Warranty.
|
590 |
+
|
591 |
+
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
592 |
+
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
593 |
+
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
594 |
+
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
595 |
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
596 |
+
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
597 |
+
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
598 |
+
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
599 |
+
|
600 |
+
16. Limitation of Liability.
|
601 |
+
|
602 |
+
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
603 |
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
604 |
+
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
605 |
+
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
606 |
+
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
607 |
+
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
608 |
+
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
609 |
+
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
610 |
+
SUCH DAMAGES.
|
611 |
+
|
612 |
+
17. Interpretation of Sections 15 and 16.
|
613 |
+
|
614 |
+
If the disclaimer of warranty and limitation of liability provided
|
615 |
+
above cannot be given local legal effect according to their terms,
|
616 |
+
reviewing courts shall apply local law that most closely approximates
|
617 |
+
an absolute waiver of all civil liability in connection with the
|
618 |
+
Program, unless a warranty or assumption of liability accompanies a
|
619 |
+
copy of the Program in return for a fee.
|
620 |
+
|
621 |
+
END OF TERMS AND CONDITIONS
|
622 |
+
|
623 |
+
How to Apply These Terms to Your New Programs
|
624 |
+
|
625 |
+
If you develop a new program, and you want it to be of the greatest
|
626 |
+
possible use to the public, the best way to achieve this is to make it
|
627 |
+
free software which everyone can redistribute and change under these terms.
|
628 |
+
|
629 |
+
To do so, attach the following notices to the program. It is safest
|
630 |
+
to attach them to the start of each source file to most effectively
|
631 |
+
state the exclusion of warranty; and each file should have at least
|
632 |
+
the "copyright" line and a pointer to where the full notice is found.
|
633 |
+
|
634 |
+
{one line to give the program's name and a brief idea of what it does.}
|
635 |
+
Copyright (C) {year} {name of author}
|
636 |
+
|
637 |
+
This program is free software: you can redistribute it and/or modify
|
638 |
+
it under the terms of the GNU General Public License as published by
|
639 |
+
the Free Software Foundation, either version 3 of the License, or
|
640 |
+
(at your option) any later version.
|
641 |
+
|
642 |
+
This program is distributed in the hope that it will be useful,
|
643 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
644 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
645 |
+
GNU General Public License for more details.
|
646 |
+
|
647 |
+
You should have received a copy of the GNU General Public License
|
648 |
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
649 |
+
|
650 |
+
Also add information on how to contact you by electronic and paper mail.
|
651 |
+
|
652 |
+
If the program does terminal interaction, make it output a short
|
653 |
+
notice like this when it starts in an interactive mode:
|
654 |
+
|
655 |
+
{project} Copyright (C) {year} {fullname}
|
656 |
+
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
657 |
+
This is free software, and you are welcome to redistribute it
|
658 |
+
under certain conditions; type `show c' for details.
|
659 |
+
|
660 |
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
661 |
+
parts of the General Public License. Of course, your program's commands
|
662 |
+
might be different; for a GUI interface, you would use an "about box".
|
663 |
+
|
664 |
+
You should also get your employer (if you work as a programmer) or school,
|
665 |
+
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
666 |
+
For more information on this, and how to apply and follow the GNU GPL, see
|
667 |
+
<http://www.gnu.org/licenses/>.
|
668 |
+
|
669 |
+
The GNU General Public License does not permit incorporating your program
|
670 |
+
into proprietary programs. If your program is a subroutine library, you
|
671 |
+
may consider it more useful to permit linking proprietary applications with
|
672 |
+
the library. If this is what you want to do, use the GNU Lesser General
|
673 |
+
Public License instead of this License. But first, please read
|
674 |
+
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
readme.txt
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
=== FancyBox for WordPress ===
|
2 |
Contributors: silkalns
|
3 |
Tags: fancybox, lightbox, jquery, gallery, image, images, photo, photos, picture, pictures, zoom
|
4 |
-
Requires at least:
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 3.1.
|
7 |
-
|
|
|
|
|
8 |
|
9 |
Seamlessly integrates FancyBox lightbox into your WordPress blog: Upload, activate, and you're done. Additional configuration optional.
|
10 |
|
@@ -31,6 +33,9 @@ If you enjoy using FancyBox lightbox for WordPress please leave a [positive feed
|
|
31 |
|
32 |
== Changelog ==
|
33 |
|
|
|
|
|
|
|
34 |
= 3.1.8 =
|
35 |
* Fixed "Click to Hide on Overlay only works with Images"
|
36 |
* Fixed "The requested content cannot be loaded" when trying to view page/post in fancybox
|
1 |
=== FancyBox for WordPress ===
|
2 |
Contributors: silkalns
|
3 |
Tags: fancybox, lightbox, jquery, gallery, image, images, photo, photos, picture, pictures, zoom
|
4 |
+
Requires at least: 4.6
|
5 |
+
Tested up to: 5.1
|
6 |
+
Stable tag: 3.1.9
|
7 |
+
Requires PHP: 5.6
|
8 |
+
License: GPLv3 or later
|
9 |
+
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
11 |
Seamlessly integrates FancyBox lightbox into your WordPress blog: Upload, activate, and you're done. Additional configuration optional.
|
12 |
|
33 |
|
34 |
== Changelog ==
|
35 |
|
36 |
+
= 3.1.9 =
|
37 |
+
* Replace $.fancebox with $.fancyboxforwp.
|
38 |
+
|
39 |
= 3.1.8 =
|
40 |
* Fixed "Click to Hide on Overlay only works with Images"
|
41 |
* Fixed "The requested content cannot be loaded" when trying to view page/post in fancybox
|