Version Description
Thanks to some changes implemented in the core featherlight script, the accessibility of WP Featherlight is now significantly improved. Lightboxed elements now have more appropriate focus management for screen readers and the close button is more accessible.
This update also fixes a potential plugin compatibly problem in the WordPress admin. In version 1.0, it was possible under unusual circumstances for the plugin to throw a fatal error when attempting to add the disable checkbox to the publish metabox.
- Tweak: Improved accessibility (accessible close button, better focus management)
- Fix: Prevented a fatal error that could happen when another plugin unsets the WP_Post object on the publish metabox.
- Dev: Updated Featherlight to
1.7.0
Download this release
Release Info
Developer | wpsitecare |
Plugin | WP Featherlight – A Simple jQuery Lightbox |
Version | 1.1.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.1.0
- CHANGELOG.md +80 -0
- README.md +42 -0
- admin/class-meta.php +10 -2
- css/wp-featherlight-rtl.css +26 -2
- css/wp-featherlight-rtl.css.map +0 -0
- css/wp-featherlight-rtl.min.css +1 -1
- css/wp-featherlight.css +26 -2
- css/wp-featherlight.min.css +1 -1
- includes/class-plugin.php +1 -1
- includes/class-scripts.php +6 -6
- js/src/vendor/featherlight.gallery.min.js +0 -1
- js/src/vendor/featherlight.min.js +0 -1
- js/src/wpFeatherlight.min.js +0 -1
- js/{src/vendor → vendor}/featherlight.gallery.js +9 -5
- js/vendor/featherlight.gallery.min.js +1 -0
- js/{src/vendor → vendor}/featherlight.js +65 -11
- js/vendor/featherlight.min.js +1 -0
- js/{src/vendor → vendor}/jquery.detect_swipe.js +0 -0
- js/{src/vendor → vendor}/jquery.detect_swipe.min.js +0 -0
- js/{src/wpFeatherlight.js → wpFeatherlight.js} +5 -1
- js/wpFeatherlight.min.js +1 -0
- js/wpFeatherlight.pkgd.js +79 -17
- js/wpFeatherlight.pkgd.min.js +1 -1
- languages/wp-featherlight.pot +4 -4
- readme.txt +13 -4
- wp-featherlight.php +1 -1
CHANGELOG.md
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
## 1.1.0
|
2 |
+
Thanks to some changes implemented in the core featherlight script, the accessibility of WP Featherlight is now significantly improved. Lightboxed elements now have more appropriate focus management for screen readers and the close button is more accessible.
|
3 |
+
|
4 |
+
This update also fixes a potential plugin compatibly problem in the WordPress admin. In version 1.0, it was possible under unusual circumstances for the plugin to throw a fatal error when attempting to add the disable checkbox to the publish metabox.
|
5 |
+
|
6 |
+
- Tweak: Improved accessibility (accessible close button, better focus management)
|
7 |
+
- Fix: Prevented a fatal error that could happen when another plugin unsets the WP_Post object on the publish metabox.
|
8 |
+
- Dev: Updated [Featherlight](https://github.com/noelboss/featherlight/) to `1.7.0`
|
9 |
+
|
10 |
+
## 1.0.0
|
11 |
+
Even though this is a major version change, this is primarily a maintenance release. The reason for the jump to 1.0.0 is because we've changed some code which could break backwards compatibility with custom extensions and integrations.
|
12 |
+
|
13 |
+
If you're just using the plugin on your site and haven't customized it or paid anyone to customize it for you, you should be able to update without any issues.
|
14 |
+
|
15 |
+
If you're a developer and have written custom code extending the PHP side of WP Featherlight, be sure to test your code before updating.
|
16 |
+
|
17 |
+
Under the hood, we've [deprecated some internal methods](https://github.com/wpsitecare/wp-featherlight/search?utf8=%E2%9C%93&q=_deprecated_function) which could potentially break custom code which extends WP Featherlight. The changes are primarily limited to class initialization, so unless you were doing something specific to that, it's unlikely that you'll run into issues.
|
18 |
+
|
19 |
+
- Tweak: Improved transition between images within galleries
|
20 |
+
- Tweak: Moved our disable lightbox checkbox into the publish meta box to streamline the admin
|
21 |
+
- Tweak: Made styles more aggressive to ensure elements look consistent across different themes by default
|
22 |
+
- Fix: Reduced false positives for URLs that use image extensions but don't actually link to an image
|
23 |
+
- Dev: Updated [Featherlight](https://github.com/noelboss/featherlight/) to `1.5.1`
|
24 |
+
- Dev: Updated [jQuery Detect Swipe](http://github.com/marcandre/detect_swipe) to `2.1.3`
|
25 |
+
- Dev: Deprecated some internal methods
|
26 |
+
- Dev: Reorganized how classes are instantiated and plugin actions are fired
|
27 |
+
|
28 |
+
## 0.3.0
|
29 |
+
|
30 |
+
There are quite a few internal changes in the plugin for this release, plus some nice new features and improvements on the front-end. We've streamlined everything as much as possible and also added support for some languages other than English! Here's a breakdown of everything that's changed:
|
31 |
+
|
32 |
+
### New Features
|
33 |
+
- Automatic captioning for WordPress images and gallery items (Including Jetpack Galleries)
|
34 |
+
- Spanish language translation
|
35 |
+
|
36 |
+
### Enhancements
|
37 |
+
- Updated [Featherlight](https://github.com/noelboss/featherlight/) to `1.3.3`
|
38 |
+
- Improved gallery styles on desktop and mobile devices
|
39 |
+
- Streamlined overall styles
|
40 |
+
- Added SVG icons for more visual consistency across various platforms
|
41 |
+
- Simplified the text used in the admin metabox to ease translations (props @toscho)
|
42 |
+
|
43 |
+
### Bug Fixes
|
44 |
+
- Improved handling of images when certain caching plugins are enabled
|
45 |
+
- Prevented gallery arrows from being hijacked by WP Emoji
|
46 |
+
- Fixed a bug which allowed multiple light boxes to be opened using keyboard commands
|
47 |
+
|
48 |
+
### Developer Stuff
|
49 |
+
- Reduced overhead by loading language files only when needed (props @toscho)
|
50 |
+
- Improved the save routine for our admin metabox (props @toscho)
|
51 |
+
- Added a `wp_featherlight_captions` filter to control auto-captioning. Filter it to false to disable captions.
|
52 |
+
- Re-structured the plugin's internal code base and deprecated plugin constants
|
53 |
+
- Added Grunt and Bower the plugin to allow easier updates and releases in the future
|
54 |
+
|
55 |
+
### Added Language Support
|
56 |
+
- German
|
57 |
+
- Spanish
|
58 |
+
- French
|
59 |
+
- Portuguese (Brazil)
|
60 |
+
- Spanish (Peru)
|
61 |
+
|
62 |
+
## 0.2.0
|
63 |
+
|
64 |
+
The primary feature in this release is the addition of a visual loader and the automatic lightboxing of external images. In prior versions, only images from the WordPress host domain were lightboxed automatically. This caused some problems with people using a CDN as the URLs were treated as external.
|
65 |
+
|
66 |
+
There have also been a handful of code improvements under the hood including:
|
67 |
+
|
68 |
+
- Added gallery support for Jetpack Tiled Galleries
|
69 |
+
- Improved URL handling to match more image instances automatically
|
70 |
+
- Fixed a mistake in the textdomain path
|
71 |
+
- Improved admin metabox markup (props @GaryJones)
|
72 |
+
- Fixed a typo in the main stylesheet's script handle (props @GaryJones)
|
73 |
+
|
74 |
+
## 0.1.1
|
75 |
+
|
76 |
+
Fixed a bug that caused all WordPress galleries to open in a light box. Now only galleries which have been set to link to the media attachment are opened using Featherlight.
|
77 |
+
|
78 |
+
## 0.1.0
|
79 |
+
|
80 |
+
Initial release!
|
README.md
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# WP Featherlight
|
2 |
+
|
3 |
+
An ultra lightweight jQuery lightbox for WordPress images and galleries.
|
4 |
+
|
5 |
+
__Contributors:__ [Robert Neu](https://github.com/robneu)
|
6 |
+
__Requires:__ WordPress 4.6
|
7 |
+
__Tested up to:__ WordPress 4.6.1
|
8 |
+
__License:__ [GPL-2.0+](http://www.gnu.org/licenses/gpl-2.0.html)
|
9 |
+
|
10 |
+
![nacin-at-loopconf](https://cloud.githubusercontent.com/assets/2184093/9426378/56c32f16-4902-11e5-9e57-75a4620cc51b.png)
|
11 |
+
|
12 |
+
## Description ##
|
13 |
+
|
14 |
+
WP Featherlight is a WordPress plugin wrapper for the Featherlight jQuery lightbox plugin. When installed, the plugin will automatically display all standard WordPress images and galleries in a simple, minimalistic lightbox popup.
|
15 |
+
|
16 |
+
In order for WordPress images and galleries to be lightboxed, you need to select the "Media File" option when choosing where the thumbnails should link. You can also select the "Custom Link" option if you make sure to link directly to an image file. This should work for any image file even if it's hosted on another website.
|
17 |
+
|
18 |
+
![media-file](https://cloud.githubusercontent.com/assets/2184093/9620710/8850a71e-50e3-11e5-8c89-065fdd0d367d.jpg)
|
19 |
+
|
20 |
+
It's also possible to load Videos, iframes, and ajax content using WP Featherlight by adding data attributes to your content. For more details on custom content loading, check out the [featherlight documentation](https://github.com/noelboss/featherlight/#usage).
|
21 |
+
|
22 |
+
There are no settings for WP Featherlight, so you should be able to install it without needing to configure anything. In the event you don't want a lightbox on certain pages or posts, there is an option to disable it from within the post editor screen.
|
23 |
+
|
24 |
+
Here's an example of the plugin being used to load a large (5mb) external image in a standard WordPress post:
|
25 |
+
|
26 |
+
![Loader in Action](https://cloud.githubusercontent.com/assets/2184093/7943635/5ba2155e-092b-11e5-8b97-be5ca8cc77d8.gif)
|
27 |
+
|
28 |
+
If you find a display problem, it may be related to your theme but please [open an issue](https://github.com/wpsitecare/wp-featherlight/issues) about it so we can look into it. For more information about the Featherlight script itself, check out their [GitHub plugin page](http://noelboss.github.io/featherlight/).
|
29 |
+
|
30 |
+
## Installation ##
|
31 |
+
|
32 |
+
The best way to install this plugin is to either [download a copy](https://wordpress.org/plugins/wp-featherlight/) from the WordPress.org repository or search for "WP Featherlight" from your WordPress admin dashboard.
|
33 |
+
|
34 |
+
## Developer Notes ##
|
35 |
+
|
36 |
+
While there are no options in the plugin, there are some handy filters to modify the default behavior. As of `0.3.0` all images which use the default WordPress captions will also include a caption when the image is lightboxed. To disable this behavior, filter `wp_featherlight_captions` to false.
|
37 |
+
|
38 |
+
You can also disable inclusion of the CSS and JavaScript conditionally using filters which can be found in the `/includes/class-scripts.php` file. If you have questions about how any part of the plugin works, please don't hesitate to [open an issue](https://github.com/wpsitecare/wp-featherlight/issues).
|
39 |
+
|
40 |
+
## Contributing ##
|
41 |
+
|
42 |
+
If you're a developer, the most current version can be found on the [develop branch](https://github.com/wpsitecare/wp-featherlight/tree/develop). Pull requests, issues, and any feedback are all more than welcome. If you would like to contribute code, please make your pull requests against the develop branch rather than the master.
|
admin/class-meta.php
CHANGED
@@ -79,10 +79,18 @@ class WP_Featherlight_Admin_Meta {
|
|
79 |
* @since 1.0.0
|
80 |
* @access public
|
81 |
*
|
82 |
-
* @param
|
83 |
* @return void
|
84 |
*/
|
85 |
-
public function meta_box_view(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
$type = get_post_type_object( $post->post_type );
|
87 |
|
88 |
if ( ! is_object( $type ) ) {
|
79 |
* @since 1.0.0
|
80 |
* @access public
|
81 |
*
|
82 |
+
* @param object $post Post object.
|
83 |
* @return void
|
84 |
*/
|
85 |
+
public function meta_box_view( $post ) {
|
86 |
+
if ( empty( $post ) ) {
|
87 |
+
$post = get_post();
|
88 |
+
}
|
89 |
+
|
90 |
+
if ( ! is_object( $post ) || ! isset( $post->post_type ) ) {
|
91 |
+
return;
|
92 |
+
}
|
93 |
+
|
94 |
$type = get_post_type_object( $post->post_type );
|
95 |
|
96 |
if ( ! is_object( $type ) ) {
|
css/wp-featherlight-rtl.css
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/**!
|
2 |
* Plugin Name: WP Featherlight
|
3 |
-
* Version: 1.
|
4 |
* Author: WP Site Care
|
5 |
* License: GPL-2.0+
|
6 |
*/
|
@@ -89,6 +89,21 @@
|
|
89 |
display: block;
|
90 |
}
|
91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
.featherlight .featherlight-close-icon {
|
93 |
background-color: transparent;
|
94 |
background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%09%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M21%204.41L19.59%203%2012%2010.59%204.41%203%203%204.41%2010.59%2012%203%2019.59%204.41%2021%2012%2013.41%2019.59%2021%2021%2019.59%2013.41%2012%2021%204.41z%22/%3E%0A%3C/svg%3E");
|
@@ -96,10 +111,13 @@
|
|
96 |
background-repeat: no-repeat;
|
97 |
-webkit-background-size: 100% auto;
|
98 |
background-size: 100% auto;
|
|
|
99 |
cursor: pointer;
|
100 |
display: block;
|
101 |
height: 30px;
|
|
|
102 |
overflow: hidden;
|
|
|
103 |
position: fixed;
|
104 |
left: 25px;
|
105 |
text-align: center;
|
@@ -110,6 +128,10 @@
|
|
110 |
z-index: 9999;
|
111 |
}
|
112 |
|
|
|
|
|
|
|
|
|
113 |
.featherlight .featherlight-image {
|
114 |
max-width: 100%;
|
115 |
}
|
@@ -126,6 +148,8 @@
|
|
126 |
|
127 |
.featherlight-iframe .featherlight-content {
|
128 |
border-bottom: 0;
|
|
|
|
|
129 |
padding: 0;
|
130 |
}
|
131 |
|
@@ -242,4 +266,4 @@
|
|
242 |
.featherlight-loading .featherlight-next {
|
243 |
display: none;
|
244 |
}
|
245 |
-
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndwLWZlYXRoZXJsaWdodC5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7O0dBS0c7QUFDSDtnREFDZ0Q7QUFDaEQ7RUFDRSx3QkFBd0I7RUFDeEIsVUFBVTtFQUNWLHlCQUFpQjtFQUFqQixzQkFBaUI7RUFBakIsaUJBQWlCO0VBQ2pCLGNBQWM7RUFDZCw0REFBNEQ7RUFDNUQsU0FBUTtFQUNSLGdCQUFnQjtFQUNoQixRQUFTO0VBQ1QsbUJBQW1CO0VBQ25CLE9BQU87RUFDUCxvQkFBb0I7RUFDcEIsb0JBQW9CO0NBQ3JCOztBQUVEO0VBQ0UsK0J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JTNFXCIpO1xuICBiYWNrZ3JvdW5kLXBvc2l0aW9uOiAwIDA7XG4gIHJpZ2h0OiAxMHB4O1xufVxuXG4vKiBydGw6aWdub3JlICovXG4uZmVhdGhlcmxpZ2h0LXByZXZpb3VzIHtcbiAgYmFja2dyb3VuZC1pbWFnZTogdXJsKFwiZGF0YTppbWFnZS9zdmcreG1sLCUzQ3N2ZyUyMHhtbG5zJTNEJTIyaHR0cCUzQS8vd3d3LnczLm9yZy8yMDAwL3N2ZyUyMiUyMHZpZXdCb3glM0QlMjIwJTIwMCUyMDI0JTIwMjQlMjIlM0UlMEElMDklM0NwYXRoJTIwZmlsbCUzRCUyMiUyM2ZmZiUyMiUyMGQlM0QlMjJNMTUuNDElMjA3LjQxTDEwLjgzJTIwMTJsNC41OCUyMDQuNTlMMTQlMjAxOGwtNi02JTIwNi02JTIwMS40MSUyMDEuNDF6JTIyLyUzRSUwQSUzQy9zdmclM0VcIik7XG4gIGJhY2tncm91bmQtcG9zaXRpb246IC01cHggMDtcbiAgbGVmdDogMTBweDtcbn1cblxuLmZlYXRoZXJsaWdodC1sb2FkaW5nIC5mZWF0aGVybGlnaHQtcHJldmlvdXMsXG4uZmVhdGhlcmxpZ2h0LWxvYWRpbmcgLmZlYXRoZXJsaWdodC1uZXh0IHtcbiAgZGlzcGxheTogbm9uZTtcbn1cbiJdfQ== */
|
1 |
/**!
|
2 |
* Plugin Name: WP Featherlight
|
3 |
+
* Version: 1.1.0
|
4 |
* Author: WP Site Care
|
5 |
* License: GPL-2.0+
|
6 |
*/
|
89 |
display: block;
|
90 |
}
|
91 |
|
92 |
+
.featherlight button {
|
93 |
+
-webkit-appearance: button;
|
94 |
+
font-family: sans-serif;
|
95 |
+
font-size: 100%;
|
96 |
+
line-height: 1.15;
|
97 |
+
margin: 0;
|
98 |
+
overflow: visible;
|
99 |
+
text-transform: none;
|
100 |
+
}
|
101 |
+
|
102 |
+
.featherlight button::-moz-focus-inner {
|
103 |
+
border-style: none;
|
104 |
+
padding: 0;
|
105 |
+
}
|
106 |
+
|
107 |
.featherlight .featherlight-close-icon {
|
108 |
background-color: transparent;
|
109 |
background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%09%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M21%204.41L19.59%203%2012%2010.59%204.41%203%203%204.41%2010.59%2012%203%2019.59%204.41%2021%2012%2013.41%2019.59%2021%2021%2019.59%2013.41%2012%2021%204.41z%22/%3E%0A%3C/svg%3E");
|
111 |
background-repeat: no-repeat;
|
112 |
-webkit-background-size: 100% auto;
|
113 |
background-size: 100% auto;
|
114 |
+
border: 0;
|
115 |
cursor: pointer;
|
116 |
display: block;
|
117 |
height: 30px;
|
118 |
+
opacity: 0.6;
|
119 |
overflow: hidden;
|
120 |
+
padding: 0;
|
121 |
position: fixed;
|
122 |
left: 25px;
|
123 |
text-align: center;
|
128 |
z-index: 9999;
|
129 |
}
|
130 |
|
131 |
+
.featherlight .featherlight-close-icon:hover, .featherlight .featherlight-close-icon:focus {
|
132 |
+
opacity: 1;
|
133 |
+
}
|
134 |
+
|
135 |
.featherlight .featherlight-image {
|
136 |
max-width: 100%;
|
137 |
}
|
148 |
|
149 |
.featherlight-iframe .featherlight-content {
|
150 |
border-bottom: 0;
|
151 |
+
-webkit-overflow-scrolling: touch;
|
152 |
+
overflow-y: scroll;
|
153 |
padding: 0;
|
154 |
}
|
155 |
|
266 |
.featherlight-loading .featherlight-next {
|
267 |
display: none;
|
268 |
}
|
269 |
+
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndwLWZlYXRoZXJsaWdodC5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7O0dBS0c7QUFDSDtnREFDZ0Q7QUFDaEQ7RUFDRSx3QkFBd0I7RUFDeEIsVUFBVTtFQUNWLHlCQUFpQjtFQUFqQix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JTIwMTIlMjA4LjU5JTIwNy40MSUyMDEwJTIwNmw2JTIwNi02JTIwNi0xLjQxLTEuNDF6JTIyLyUzRSUwQSUzQy9zdmclM0VcIik7XG4gIGJhY2tncm91bmQtcG9zaXRpb246IDAgMDtcbiAgcmlnaHQ6IDEwcHg7XG59XG5cbi8qIHJ0bDppZ25vcmUgKi9cbi5mZWF0aGVybGlnaHQtcHJldmlvdXMge1xuICBiYWNrZ3JvdW5kLWltYWdlOiB1cmwoXCJkYXRhOmltYWdlL3N2Zyt4bWwsJTNDc3ZnJTIweG1sbnMlM0QlMjJodHRwJTNBLy93d3cudzMub3JnLzIwMDAvc3ZnJTIyJTIwdmlld0JveCUzRCUyMjAlMjAwJTIwMjQlMjAyNCUyMiUzRSUwQSUwOSUzQ3BhdGglMjBmaWxsJTNEJTIyJTIzZmZmJTIyJTIwZCUzRCUyMk0xNS40MSUyMDcuNDFMMTAuODMlMjAxMmw0LjU4JTIwNC41OUwxNCUyMDE4bC02LTYlMjA2LTYlMjAxLjQxJTIwMS40MXolMjIvJTNFJTBBJTNDL3N2ZyUzRVwiKTtcbiAgYmFja2dyb3VuZC1wb3NpdGlvbjogLTVweCAwO1xuICBsZWZ0OiAxMHB4O1xufVxuXG4uZmVhdGhlcmxpZ2h0LWxvYWRpbmcgLmZlYXRoZXJsaWdodC1wcmV2aW91cyxcbi5mZWF0aGVybGlnaHQtbG9hZGluZyAuZmVhdGhlcmxpZ2h0LW5leHQge1xuICBkaXNwbGF5OiBub25lO1xufVxuIl19 */
|
css/wp-featherlight-rtl.css.map
ADDED
File without changes
|
css/wp-featherlight-rtl.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.featherlight{background:0 0;bottom:0;cursor:-webkit-zoom-out;cursor:-moz-zoom-out;cursor:zoom-out;display:none;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;right:0;position:fixed;left:0;text-align:center;top:0;white-space:nowrap;z-index:2147483647}.featherlight *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.featherlight:last-of-type{background:rgba(0,0,0,.9)}.featherlight::before{content:"";display:inline-block;height:100%;margin-left:-.25em;vertical-align:middle}.featherlight .featherlight-content{-webkit-animation:fadein .5s;animation:fadein .5s;background:#000;border:0;cursor:auto;display:inline-block;max-height:80%;max-width:90%;min-width:inherit;overflow:visible;padding:0;position:relative;text-align:right;vertical-align:middle;white-space:normal}@media screen and (min-width:980px){.featherlight .featherlight-content{max-height:90%}}.featherlight .featherlight-content .caption{color:#fff;font-size:16px;font-weight:lighter;line-height:1.25;max-width:100%;overflow:hidden;position:absolute;text-align:right;text-overflow:ellipsis;white-space:nowrap}.featherlight .featherlight-content .caption:focus,.featherlight .featherlight-content .caption:hover{overflow:visible;white-space:normal}.featherlight .featherlight-inner{-webkit-animation:fadein .5s;animation:fadein .5s;display:block}.featherlight .featherlight-close-icon{background-color:transparent;background-image:url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%09%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M21%204.41L19.59%203%2012%2010.59%204.41%203%203%204.41%2010.59%2012%203%2019.59%204.41%2021%2012%2013.41%2019.59%2021%2021%2019.59%2013.41%2012%2021%204.41z%22/%3E%0A%3C/svg%3E);background-position:center;background-repeat:no-repeat;-webkit-background-size:100% auto;background-size:100% auto;cursor:pointer;display:block;height:30px;overflow:hidden;position:fixed;left:25px;text-align:center;text-indent:100%;top:25px;white-space:nowrap;width:30px;z-index:9999}.featherlight .featherlight-image{max-width:100%}.featherlight iframe{border:0}[data-featherlight] img{cursor:-webkit-zoom-in;cursor:-moz-zoom-in;cursor:zoom-in}.featherlight-iframe .featherlight-content{border-bottom:0;padding:0}@-webkit-keyframes featherlightLoader{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@keyframes featherlightLoader{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@-webkit-keyframes fadein{from{opacity:0}to{opacity:1}}@keyframes fadein{from{opacity:0}to{opacity:1}}.featherlight-loading .featherlight-content{-webkit-animation:featherlightLoader 1s infinite linear;animation:featherlightLoader 1s infinite linear;background:0 0;border:8px solid #909090;border-right-color:#fff;font-size:10px}.featherlight-loading .featherlight-content,.featherlight-loading .featherlight-content::after{-webkit-border-radius:50%;border-radius:50%;height:10em;width:10em}.featherlight-loading .featherlight-close,.featherlight-loading .featherlight-inner{display:none}.featherlight-next,.featherlight-previous{background-color:transparent;background-repeat:no-repeat;-webkit-background-size:100% auto;background-size:100% auto;cursor:pointer;display:block;height:60px;margin-top:-30px;opacity:.4;overflow:hidden;position:fixed;text-indent:100%;top:50%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;width:60px}.featherlight-loading .featherlight-next,.featherlight-loading .featherlight-previous,.featherlight-next span,.featherlight-previous span{display:none}.featherlight-next:focus,.featherlight-next:hover,.featherlight-previous:focus,.featherlight-previous:hover{opacity:1}.featherlight-next{background-image:url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%09%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M8.59%2016.59L13.17%2012%208.59%207.41%2010%206l6%206-6%206-1.41-1.41z%22/%3E%0A%3C/svg%3E);background-position:0 0;right:10px}.featherlight-previous{background-image:url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%09%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M15.41%207.41L10.83%2012l4.58%204.59L14%2018l-6-6%206-6%201.41%201.41z%22/%3E%0A%3C/svg%3E);background-position:-5px 0;left:10px}
|
1 |
+
.featherlight{background:0 0;bottom:0;cursor:-webkit-zoom-out;cursor:-moz-zoom-out;cursor:zoom-out;display:none;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;right:0;position:fixed;left:0;text-align:center;top:0;white-space:nowrap;z-index:2147483647}.featherlight *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.featherlight:last-of-type{background:rgba(0,0,0,.9)}.featherlight::before{content:"";display:inline-block;height:100%;margin-left:-.25em;vertical-align:middle}.featherlight .featherlight-content{-webkit-animation:fadein .5s;animation:fadein .5s;background:#000;border:0;cursor:auto;display:inline-block;max-height:80%;max-width:90%;min-width:inherit;overflow:visible;padding:0;position:relative;text-align:right;vertical-align:middle;white-space:normal}@media screen and (min-width:980px){.featherlight .featherlight-content{max-height:90%}}.featherlight .featherlight-content .caption{color:#fff;font-size:16px;font-weight:lighter;line-height:1.25;max-width:100%;overflow:hidden;position:absolute;text-align:right;text-overflow:ellipsis;white-space:nowrap}.featherlight .featherlight-content .caption:focus,.featherlight .featherlight-content .caption:hover{overflow:visible;white-space:normal}.featherlight .featherlight-inner{-webkit-animation:fadein .5s;animation:fadein .5s;display:block}.featherlight button{-webkit-appearance:button;font-family:sans-serif;font-size:100%;line-height:1.15;margin:0;overflow:visible;text-transform:none}.featherlight button::-moz-focus-inner{border-style:none;padding:0}.featherlight .featherlight-close-icon{background-color:transparent;background-image:url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%09%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M21%204.41L19.59%203%2012%2010.59%204.41%203%203%204.41%2010.59%2012%203%2019.59%204.41%2021%2012%2013.41%2019.59%2021%2021%2019.59%2013.41%2012%2021%204.41z%22/%3E%0A%3C/svg%3E);background-position:center;background-repeat:no-repeat;-webkit-background-size:100% auto;background-size:100% auto;border:0;cursor:pointer;display:block;height:30px;opacity:.6;overflow:hidden;padding:0;position:fixed;left:25px;text-align:center;text-indent:100%;top:25px;white-space:nowrap;width:30px;z-index:9999}.featherlight .featherlight-close-icon:focus,.featherlight .featherlight-close-icon:hover{opacity:1}.featherlight .featherlight-image{max-width:100%}.featherlight iframe{border:0}[data-featherlight] img{cursor:-webkit-zoom-in;cursor:-moz-zoom-in;cursor:zoom-in}.featherlight-iframe .featherlight-content{border-bottom:0;-webkit-overflow-scrolling:touch;overflow-y:scroll;padding:0}@-webkit-keyframes featherlightLoader{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@keyframes featherlightLoader{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@-webkit-keyframes fadein{from{opacity:0}to{opacity:1}}@keyframes fadein{from{opacity:0}to{opacity:1}}.featherlight-loading .featherlight-content{-webkit-animation:featherlightLoader 1s infinite linear;animation:featherlightLoader 1s infinite linear;background:0 0;border:8px solid #909090;border-right-color:#fff;font-size:10px}.featherlight-loading .featherlight-content,.featherlight-loading .featherlight-content::after{-webkit-border-radius:50%;border-radius:50%;height:10em;width:10em}.featherlight-loading .featherlight-close,.featherlight-loading .featherlight-inner{display:none}.featherlight-next,.featherlight-previous{background-color:transparent;background-repeat:no-repeat;-webkit-background-size:100% auto;background-size:100% auto;cursor:pointer;display:block;height:60px;margin-top:-30px;opacity:.4;overflow:hidden;position:fixed;text-indent:100%;top:50%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;width:60px}.featherlight-loading .featherlight-next,.featherlight-loading .featherlight-previous,.featherlight-next span,.featherlight-previous span{display:none}.featherlight-next:focus,.featherlight-next:hover,.featherlight-previous:focus,.featherlight-previous:hover{opacity:1}.featherlight-next{background-image:url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%09%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M8.59%2016.59L13.17%2012%208.59%207.41%2010%206l6%206-6%206-1.41-1.41z%22/%3E%0A%3C/svg%3E);background-position:0 0;right:10px}.featherlight-previous{background-image:url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%09%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M15.41%207.41L10.83%2012l4.58%204.59L14%2018l-6-6%206-6%201.41%201.41z%22/%3E%0A%3C/svg%3E);background-position:-5px 0;left:10px}
|
css/wp-featherlight.css
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/**!
|
2 |
* Plugin Name: WP Featherlight
|
3 |
-
* Version: 1.
|
4 |
* Author: WP Site Care
|
5 |
* License: GPL-2.0+
|
6 |
*/
|
@@ -89,6 +89,21 @@
|
|
89 |
display: block;
|
90 |
}
|
91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
.featherlight .featherlight-close-icon {
|
93 |
background-color: transparent;
|
94 |
background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%09%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M21%204.41L19.59%203%2012%2010.59%204.41%203%203%204.41%2010.59%2012%203%2019.59%204.41%2021%2012%2013.41%2019.59%2021%2021%2019.59%2013.41%2012%2021%204.41z%22/%3E%0A%3C/svg%3E");
|
@@ -96,10 +111,13 @@
|
|
96 |
background-repeat: no-repeat;
|
97 |
-webkit-background-size: 100% auto;
|
98 |
background-size: 100% auto;
|
|
|
99 |
cursor: pointer;
|
100 |
display: block;
|
101 |
height: 30px;
|
|
|
102 |
overflow: hidden;
|
|
|
103 |
position: fixed;
|
104 |
right: 25px;
|
105 |
text-align: center;
|
@@ -110,6 +128,10 @@
|
|
110 |
z-index: 9999;
|
111 |
}
|
112 |
|
|
|
|
|
|
|
|
|
113 |
.featherlight .featherlight-image {
|
114 |
max-width: 100%;
|
115 |
}
|
@@ -126,6 +148,8 @@
|
|
126 |
|
127 |
.featherlight-iframe .featherlight-content {
|
128 |
border-bottom: 0;
|
|
|
|
|
129 |
padding: 0;
|
130 |
}
|
131 |
|
@@ -247,4 +271,4 @@
|
|
247 |
display: none;
|
248 |
}
|
249 |
|
250 |
-
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndwLWZlYXRoZXJsaWdodC5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7O0dBS0c7QUFDSDtnREFDZ0Q7QUFDaEQ7RUFDRSx3QkFBd0I7RUFDeEIsVUFBVTtFQUNWLHlCQUFpQjtFQUFqQixzQkFBaUI7RUFBakIsaUJBQWlCO0VBQ2pCLGNBQWM7RUFDZCw0REFBNEQ7RUFDNUQsUUFBUTtFQUNSLGdCQUFnQjtFQUNoQixTQUFTO0VBQ1QsbUJBQW1CO0VBQ25CLE9BQU87RUFDUCxvQkFBb0I7RUFDcEIsb0JBQW9CO0NBQ3JCOztBQUVEO0VBQ0UsK0JBQXVCO0tBQXZCLDRCQUF1QjtVQUF2Qix1QkFBdUI7Q0FDeEI7O0FBRUQ7RUFDRSwrQkFBK0I7Q0FDaEM7O0FBRUQ7RUFDRSxZQUFZO0VBQ1osc0JBQXNCO0VBQ3RCLGFBQWE7RUFDYixzQkFBc0I7RUFDdEIsdUJBQXVCO0NBQ3hCOztBQUVEO0VBQ0UsK0JBQXVCO1VBQXZCLHVCQUF1QjtFQUN2QixpQkFBaUI7RUFDakIsVUFBVTtFQUNWLGFBQWE7RUFDYixzQkFBc0I7RUFDdEIsZ0JBQWdCO0VBQ2hCLGVBQWU7RUFDZixtQkFBbUI7RUFDbkIsa0JBQWtCO0VBQ2xCLFdBQVc7RUFDWCxtQkFBbUI7RUFDbkIsaUJBQWlCO0VBQ2pCLHVCQUF1QjtFQUN2QixvQkFBb0I7Q0FDckI7O0FBRUQ7RUFDRTtJQUNFLGdCQUFnQjtH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TIwNi02JTIwMS40MSUyMDEuNDF6JTIyLyUzRSUwQSUzQy9zdmclM0VcIik7XG4gIGJhY2tncm91bmQtcG9zaXRpb246IC01cHggMDtcbiAgbGVmdDogMTBweDtcbn1cblxuLmZlYXRoZXJsaWdodC1sb2FkaW5nIC5mZWF0aGVybGlnaHQtcHJldmlvdXMsXG4uZmVhdGhlcmxpZ2h0LWxvYWRpbmcgLmZlYXRoZXJsaWdodC1uZXh0IHtcbiAgZGlzcGxheTogbm9uZTtcbn1cbiJdfQ== */
|
1 |
/**!
|
2 |
* Plugin Name: WP Featherlight
|
3 |
+
* Version: 1.1.0
|
4 |
* Author: WP Site Care
|
5 |
* License: GPL-2.0+
|
6 |
*/
|
89 |
display: block;
|
90 |
}
|
91 |
|
92 |
+
.featherlight button {
|
93 |
+
-webkit-appearance: button;
|
94 |
+
font-family: sans-serif;
|
95 |
+
font-size: 100%;
|
96 |
+
line-height: 1.15;
|
97 |
+
margin: 0;
|
98 |
+
overflow: visible;
|
99 |
+
text-transform: none;
|
100 |
+
}
|
101 |
+
|
102 |
+
.featherlight button::-moz-focus-inner {
|
103 |
+
border-style: none;
|
104 |
+
padding: 0;
|
105 |
+
}
|
106 |
+
|
107 |
.featherlight .featherlight-close-icon {
|
108 |
background-color: transparent;
|
109 |
background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%09%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M21%204.41L19.59%203%2012%2010.59%204.41%203%203%204.41%2010.59%2012%203%2019.59%204.41%2021%2012%2013.41%2019.59%2021%2021%2019.59%2013.41%2012%2021%204.41z%22/%3E%0A%3C/svg%3E");
|
111 |
background-repeat: no-repeat;
|
112 |
-webkit-background-size: 100% auto;
|
113 |
background-size: 100% auto;
|
114 |
+
border: 0;
|
115 |
cursor: pointer;
|
116 |
display: block;
|
117 |
height: 30px;
|
118 |
+
opacity: 0.6;
|
119 |
overflow: hidden;
|
120 |
+
padding: 0;
|
121 |
position: fixed;
|
122 |
right: 25px;
|
123 |
text-align: center;
|
128 |
z-index: 9999;
|
129 |
}
|
130 |
|
131 |
+
.featherlight .featherlight-close-icon:hover, .featherlight .featherlight-close-icon:focus {
|
132 |
+
opacity: 1;
|
133 |
+
}
|
134 |
+
|
135 |
.featherlight .featherlight-image {
|
136 |
max-width: 100%;
|
137 |
}
|
148 |
|
149 |
.featherlight-iframe .featherlight-content {
|
150 |
border-bottom: 0;
|
151 |
+
-webkit-overflow-scrolling: touch;
|
152 |
+
overflow-y: scroll;
|
153 |
padding: 0;
|
154 |
}
|
155 |
|
271 |
display: none;
|
272 |
}
|
273 |
|
274 |
+
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndwLWZlYXRoZXJsaWdodC5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7O0dBS0c7QUFDSDtnREFDZ0Q7QUFDaEQ7RUFDRSx3QkFBd0I7RUFDeEIsVUFBVTtFQUNWLHlCQUFpQjtFQUFqQixzQkFBaUI7RUFBakIsaUJBQWlCO0VBQ2pCLGNBQWM7RUFDZCw0REFBNEQ7RUFDNUQsUUFBUTtFQUNSLGdCQUFnQjtFQUNoQixTQUFTO0VBQ1QsbUJBQW1CO0VBQ25CLE9BQU87RUFDUCxvQkFBb0I7RUFDcEIsb0JBQW9CO0NBQ3JCOztBQUVEO0VBQ0UsK0JBQXVCO0tBQXZCLDRCQUF1QjtVQUF2Qix1QkFBdUI7Q0FDeEI7O0FBRUQ7RUFDRSwrQkFBK0I7Q0FDaEM7O0FBRUQ7RUFDRSxZQUFZO0VBQ1osc0JBQXNCO0VBQ3RCLGFBQWE7RUFDYixzQkFBc0I7RUFDdEIsdUJBQXVCO0NBQ3hCOztBQUVEO0VBQ0UsK0JBQXVCO1VBQXZCLHVCQUF1QjtFQUN2QixpQkFBaUI7RUFDakIsVUFBVTtFQUN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MjBmaWxsJTNEJTIyJTIzZmZmJTIyJTIwZCUzRCUyMk0xNS40MSUyMDcuNDFMMTAuODMlMjAxMmw0LjU4JTIwNC41OUwxNCUyMDE4bC02LTYlMjA2LTYlMjAxLjQxJTIwMS40MXolMjIvJTNFJTBBJTNDL3N2ZyUzRVwiKTtcbiAgYmFja2dyb3VuZC1wb3NpdGlvbjogLTVweCAwO1xuICBsZWZ0OiAxMHB4O1xufVxuXG4uZmVhdGhlcmxpZ2h0LWxvYWRpbmcgLmZlYXRoZXJsaWdodC1wcmV2aW91cyxcbi5mZWF0aGVybGlnaHQtbG9hZGluZyAuZmVhdGhlcmxpZ2h0LW5leHQge1xuICBkaXNwbGF5OiBub25lO1xufVxuIl19 */
|
css/wp-featherlight.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.featherlight{background:0 0;bottom:0;cursor:-webkit-zoom-out;cursor:-moz-zoom-out;cursor:zoom-out;display:none;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;left:0;position:fixed;right:0;text-align:center;top:0;white-space:nowrap;z-index:2147483647}.featherlight *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.featherlight:last-of-type{background:rgba(0,0,0,.9)}.featherlight::before{content:"";display:inline-block;height:100%;margin-right:-.25em;vertical-align:middle}.featherlight .featherlight-content{-webkit-animation:fadein .5s;animation:fadein .5s;background:#000;border:0;cursor:auto;display:inline-block;max-height:80%;max-width:90%;min-width:inherit;overflow:visible;padding:0;position:relative;text-align:left;vertical-align:middle;white-space:normal}@media screen and (min-width:980px){.featherlight .featherlight-content{max-height:90%}}.featherlight .featherlight-content .caption{color:#fff;font-size:16px;font-weight:lighter;line-height:1.25;max-width:100%;overflow:hidden;position:absolute;text-align:left;text-overflow:ellipsis;white-space:nowrap}.featherlight .featherlight-content .caption:focus,.featherlight .featherlight-content .caption:hover{overflow:visible;white-space:normal}.featherlight .featherlight-inner{-webkit-animation:fadein .5s;animation:fadein .5s;display:block}.featherlight .featherlight-close-icon{background-color:transparent;background-image:url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%09%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M21%204.41L19.59%203%2012%2010.59%204.41%203%203%204.41%2010.59%2012%203%2019.59%204.41%2021%2012%2013.41%2019.59%2021%2021%2019.59%2013.41%2012%2021%204.41z%22/%3E%0A%3C/svg%3E);background-position:center;background-repeat:no-repeat;-webkit-background-size:100% auto;background-size:100% auto;cursor:pointer;display:block;height:30px;overflow:hidden;position:fixed;right:25px;text-align:center;text-indent:100%;top:25px;white-space:nowrap;width:30px;z-index:9999}.featherlight .featherlight-image{max-width:100%}.featherlight iframe{border:0}[data-featherlight] img{cursor:-webkit-zoom-in;cursor:-moz-zoom-in;cursor:zoom-in}.featherlight-iframe .featherlight-content{border-bottom:0;padding:0}@-webkit-keyframes featherlightLoader{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes featherlightLoader{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes fadein{from{opacity:0}to{opacity:1}}@keyframes fadein{from{opacity:0}to{opacity:1}}.featherlight-loading .featherlight-content{-webkit-animation:featherlightLoader 1s infinite linear;animation:featherlightLoader 1s infinite linear;background:0 0;border:8px solid #909090;border-left-color:#fff;font-size:10px}.featherlight-loading .featherlight-content,.featherlight-loading .featherlight-content::after{-webkit-border-radius:50%;border-radius:50%;height:10em;width:10em}.featherlight-loading .featherlight-close,.featherlight-loading .featherlight-inner{display:none}.featherlight-next,.featherlight-previous{background-color:transparent;background-repeat:no-repeat;-webkit-background-size:100% auto;background-size:100% auto;cursor:pointer;display:block;height:60px;margin-top:-30px;opacity:.4;overflow:hidden;position:fixed;text-indent:100%;top:50%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;width:60px}.featherlight-loading .featherlight-next,.featherlight-loading .featherlight-previous,.featherlight-next span,.featherlight-previous span{display:none}.featherlight-next:focus,.featherlight-next:hover,.featherlight-previous:focus,.featherlight-previous:hover{opacity:1}.featherlight-next{background-image:url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%09%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M8.59%2016.59L13.17%2012%208.59%207.41%2010%206l6%206-6%206-1.41-1.41z%22/%3E%0A%3C/svg%3E);background-position:0 0;right:10px}.featherlight-previous{background-image:url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%09%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M15.41%207.41L10.83%2012l4.58%204.59L14%2018l-6-6%206-6%201.41%201.41z%22/%3E%0A%3C/svg%3E);background-position:-5px 0;left:10px}
|
1 |
+
.featherlight{background:0 0;bottom:0;cursor:-webkit-zoom-out;cursor:-moz-zoom-out;cursor:zoom-out;display:none;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;left:0;position:fixed;right:0;text-align:center;top:0;white-space:nowrap;z-index:2147483647}.featherlight *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.featherlight:last-of-type{background:rgba(0,0,0,.9)}.featherlight::before{content:"";display:inline-block;height:100%;margin-right:-.25em;vertical-align:middle}.featherlight .featherlight-content{-webkit-animation:fadein .5s;animation:fadein .5s;background:#000;border:0;cursor:auto;display:inline-block;max-height:80%;max-width:90%;min-width:inherit;overflow:visible;padding:0;position:relative;text-align:left;vertical-align:middle;white-space:normal}@media screen and (min-width:980px){.featherlight .featherlight-content{max-height:90%}}.featherlight .featherlight-content .caption{color:#fff;font-size:16px;font-weight:lighter;line-height:1.25;max-width:100%;overflow:hidden;position:absolute;text-align:left;text-overflow:ellipsis;white-space:nowrap}.featherlight .featherlight-content .caption:focus,.featherlight .featherlight-content .caption:hover{overflow:visible;white-space:normal}.featherlight .featherlight-inner{-webkit-animation:fadein .5s;animation:fadein .5s;display:block}.featherlight button{-webkit-appearance:button;font-family:sans-serif;font-size:100%;line-height:1.15;margin:0;overflow:visible;text-transform:none}.featherlight button::-moz-focus-inner{border-style:none;padding:0}.featherlight .featherlight-close-icon{background-color:transparent;background-image:url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%09%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M21%204.41L19.59%203%2012%2010.59%204.41%203%203%204.41%2010.59%2012%203%2019.59%204.41%2021%2012%2013.41%2019.59%2021%2021%2019.59%2013.41%2012%2021%204.41z%22/%3E%0A%3C/svg%3E);background-position:center;background-repeat:no-repeat;-webkit-background-size:100% auto;background-size:100% auto;border:0;cursor:pointer;display:block;height:30px;opacity:.6;overflow:hidden;padding:0;position:fixed;right:25px;text-align:center;text-indent:100%;top:25px;white-space:nowrap;width:30px;z-index:9999}.featherlight .featherlight-close-icon:focus,.featherlight .featherlight-close-icon:hover{opacity:1}.featherlight .featherlight-image{max-width:100%}.featherlight iframe{border:0}[data-featherlight] img{cursor:-webkit-zoom-in;cursor:-moz-zoom-in;cursor:zoom-in}.featherlight-iframe .featherlight-content{border-bottom:0;-webkit-overflow-scrolling:touch;overflow-y:scroll;padding:0}@-webkit-keyframes featherlightLoader{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes featherlightLoader{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes fadein{from{opacity:0}to{opacity:1}}@keyframes fadein{from{opacity:0}to{opacity:1}}.featherlight-loading .featherlight-content{-webkit-animation:featherlightLoader 1s infinite linear;animation:featherlightLoader 1s infinite linear;background:0 0;border:8px solid #909090;border-left-color:#fff;font-size:10px}.featherlight-loading .featherlight-content,.featherlight-loading .featherlight-content::after{-webkit-border-radius:50%;border-radius:50%;height:10em;width:10em}.featherlight-loading .featherlight-close,.featherlight-loading .featherlight-inner{display:none}.featherlight-next,.featherlight-previous{background-color:transparent;background-repeat:no-repeat;-webkit-background-size:100% auto;background-size:100% auto;cursor:pointer;display:block;height:60px;margin-top:-30px;opacity:.4;overflow:hidden;position:fixed;text-indent:100%;top:50%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;width:60px}.featherlight-loading .featherlight-next,.featherlight-loading .featherlight-previous,.featherlight-next span,.featherlight-previous span{display:none}.featherlight-next:focus,.featherlight-next:hover,.featherlight-previous:focus,.featherlight-previous:hover{opacity:1}.featherlight-next{background-image:url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%09%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M8.59%2016.59L13.17%2012%208.59%207.41%2010%206l6%206-6%206-1.41-1.41z%22/%3E%0A%3C/svg%3E);background-position:0 0;right:10px}.featherlight-previous{background-image:url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%09%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M15.41%207.41L10.83%2012l4.58%204.59L14%2018l-6-6%206-6%201.41%201.41z%22/%3E%0A%3C/svg%3E);background-position:-5px 0;left:10px}
|
includes/class-plugin.php
CHANGED
@@ -23,7 +23,7 @@ class WP_Featherlight {
|
|
23 |
* @since 0.3.0
|
24 |
* @var string
|
25 |
*/
|
26 |
-
const VERSION = '1.
|
27 |
|
28 |
/**
|
29 |
* Property for storing a reference to the main plugin file.
|
23 |
* @since 0.3.0
|
24 |
* @var string
|
25 |
*/
|
26 |
+
const VERSION = '1.1.0';
|
27 |
|
28 |
/**
|
29 |
* Property for storing a reference to the main plugin file.
|
includes/class-scripts.php
CHANGED
@@ -172,7 +172,7 @@ class WP_Featherlight_Scripts {
|
|
172 |
public function load_unpacked_js() {
|
173 |
wp_enqueue_script(
|
174 |
'jquery-detect-swipe',
|
175 |
-
"{$this->url}js/
|
176 |
array( 'jquery' ),
|
177 |
'2.1.3',
|
178 |
true
|
@@ -180,23 +180,23 @@ class WP_Featherlight_Scripts {
|
|
180 |
|
181 |
wp_enqueue_script(
|
182 |
'featherlight',
|
183 |
-
"{$this->url}js/
|
184 |
array( 'jquery-detect-swipe' ),
|
185 |
-
'1.
|
186 |
true
|
187 |
);
|
188 |
|
189 |
wp_enqueue_script(
|
190 |
'featherlight-gallery',
|
191 |
-
"{$this->url}js/
|
192 |
array( 'featherlight' ),
|
193 |
-
'1.
|
194 |
true
|
195 |
);
|
196 |
|
197 |
wp_enqueue_script(
|
198 |
'wp-featherlight',
|
199 |
-
"{$this->url}js/
|
200 |
array( 'featherlight-gallery' ),
|
201 |
$this->version,
|
202 |
true
|
172 |
public function load_unpacked_js() {
|
173 |
wp_enqueue_script(
|
174 |
'jquery-detect-swipe',
|
175 |
+
"{$this->url}js/vendor/jquery.detect_swipe{$this->suffix}.js",
|
176 |
array( 'jquery' ),
|
177 |
'2.1.3',
|
178 |
true
|
180 |
|
181 |
wp_enqueue_script(
|
182 |
'featherlight',
|
183 |
+
"{$this->url}js/vendor/featherlight{$this->suffix}.js",
|
184 |
array( 'jquery-detect-swipe' ),
|
185 |
+
'1.7.0',
|
186 |
true
|
187 |
);
|
188 |
|
189 |
wp_enqueue_script(
|
190 |
'featherlight-gallery',
|
191 |
+
"{$this->url}js/vendor/featherlight.gallery{$this->suffix}.js",
|
192 |
array( 'featherlight' ),
|
193 |
+
'1.7.0',
|
194 |
true
|
195 |
);
|
196 |
|
197 |
wp_enqueue_script(
|
198 |
'wp-featherlight',
|
199 |
+
"{$this->url}js/wpFeatherlight{$this->suffix}.js",
|
200 |
array( 'featherlight-gallery' ),
|
201 |
$this->version,
|
202 |
true
|
js/src/vendor/featherlight.gallery.min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
!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)},beforeContent:function(a,b){var c=this.currentNavigation(),d=this.slides().length;return this.$instance.toggleClass(this.namespace+"-first-slide",0===c).toggleClass(this.namespace+"-last-slide",c===d-1),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);
|
|
js/src/vendor/featherlight.min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
!function(a){"use strict";function b(a,c){if(!(this instanceof b)){var d=new b(a,c);return d.open(),d}this.id=b.id++,this.setup(a,c),this.chainCallbacks(b._callbackChain)}if("undefined"==typeof a)return void("console"in window&&window.console.info("Too much lightness, Featherlight needs jQuery."));var c=[],d=function(b){return c=a.grep(c,function(a){return a!==b&&a.$instance.closest("body").length>0})},e=function(a,b){var c={},d=new RegExp("^"+b+"([A-Z])(.*)");for(var e in a){var f=e.match(d);if(f){var g=(f[1]+f[2].replace(/([A-Z])/g,"-$1")).toLowerCase();c[g]=a[e]}}return c},f={keyup:"onKeyUp",resize:"onResize"},g=function(c){a.each(b.opened().reverse(),function(){if(!c.isDefaultPrevented()&&!1===this[f[c.type]](c))return c.preventDefault(),c.stopPropagation(),!1})},h=function(c){if(c!==b._globalHandlerInstalled){b._globalHandlerInstalled=c;var d=a.map(f,function(a,c){return c+"."+b.prototype.namespace}).join(" ");a(window)[c?"on":"off"](d,g)}};b.prototype={constructor:b,namespace:"featherlight",targetAttr:"data-featherlight",variant:null,resetCss:!1,background:null,openTrigger:"click",closeTrigger:"click",filter:null,root:"body",openSpeed:250,closeSpeed:250,closeOnClick:"background",closeOnEsc:!0,closeIcon:"✕",loading:"",persist:!1,otherClose:null,beforeOpen:a.noop,beforeContent:a.noop,beforeClose:a.noop,afterOpen:a.noop,afterContent:a.noop,afterClose:a.noop,onKeyUp:a.noop,onResize:a.noop,type:null,contentFilters:["jquery","image","html","ajax","iframe","text"],setup:function(b,c){"object"!=typeof b||b instanceof a!=!1||c||(c=b,b=void 0);var d=a.extend(this,c,{target:b}),e=d.resetCss?d.namespace+"-reset":d.namespace,f=a(d.background||['<div class="'+e+"-loading "+e+'">','<div class="'+e+'-content">','<span class="'+e+"-close-icon "+d.namespace+'-close">',d.closeIcon,"</span>",'<div class="'+d.namespace+'-inner">'+d.loading+"</div>","</div>","</div>"].join("")),g="."+d.namespace+"-close"+(d.otherClose?","+d.otherClose:"");return d.$instance=f.clone().addClass(d.variant),d.$instance.on(d.closeTrigger+"."+d.namespace,function(b){var c=a(b.target);("background"===d.closeOnClick&&c.is("."+d.namespace)||"anywhere"===d.closeOnClick||c.closest(g).length)&&(d.close(b),b.preventDefault())}),this},getContent:function(){if(this.persist!==!1&&this.$content)return this.$content;var b=this,c=this.constructor.contentFilters,d=function(a){return b.$currentTarget&&b.$currentTarget.attr(a)},e=d(b.targetAttr),f=b.target||e||"",g=c[b.type];if(!g&&f in c&&(g=c[f],f=b.target&&e),f=f||d("href")||"",!g)for(var h in c)b[h]&&(g=c[h],f=b[h]);if(!g){var i=f;if(f=null,a.each(b.contentFilters,function(){return g=c[this],g.test&&(f=g.test(i)),!f&&g.regex&&i.match&&i.match(g.regex)&&(f=i),!f}),!f)return"console"in window&&window.console.error("Featherlight: no content filter found "+(i?' for "'+i+'"':" (no target specified)")),!1}return g.process.call(b,f)},setContent:function(b){var c=this;return(b.is("iframe")||a("iframe",b).length>0)&&c.$instance.addClass(c.namespace+"-iframe"),c.$instance.removeClass(c.namespace+"-loading"),c.$instance.find("."+c.namespace+"-inner").not(b).slice(1).remove().end().replaceWith(a.contains(c.$instance[0],b[0])?"":b),c.$content=b.addClass(c.namespace+"-inner"),c},open:function(b){var d=this;if(d.$instance.hide().appendTo(d.root),!(b&&b.isDefaultPrevented()||d.beforeOpen(b)===!1)){b&&b.preventDefault();var e=d.getContent();if(e)return c.push(d),h(!0),d.$instance.fadeIn(d.openSpeed),d.beforeContent(b),a.when(e).always(function(a){d.setContent(a),d.afterContent(b)}).then(d.$instance.promise()).done(function(){d.afterOpen(b)})}return d.$instance.detach(),a.Deferred().reject().promise()},close:function(b){var c=this,e=a.Deferred();return c.beforeClose(b)===!1?e.reject():(0===d(c).length&&h(!1),c.$instance.fadeOut(c.closeSpeed,function(){c.$instance.detach(),c.afterClose(b),e.resolve()})),e.promise()},resize:function(a,b){if(a&&b){this.$content.css("width","").css("height","");var c=Math.max(a/(parseInt(this.$content.parent().css("width"),10)-1),b/(parseInt(this.$content.parent().css("height"),10)-1));c>1&&(c=b/Math.floor(b/c),this.$content.css("width",""+a/c+"px").css("height",""+b/c+"px"))}},chainCallbacks:function(b){for(var c in b)this[c]=a.proxy(b[c],this,a.proxy(this[c],this))}},a.extend(b,{id:0,autoBind:"[data-featherlight]",defaults:b.prototype,contentFilters:{jquery:{regex:/^[#.]\w/,test:function(b){return b instanceof a&&b},process:function(b){return this.persist!==!1?a(b):a(b).clone(!0)}},image:{regex:/\.(png|jpg|jpeg|gif|tiff|bmp|svg)(\?\S*)?$/i,process:function(b){var c=this,d=a.Deferred(),e=new Image,f=a('<img src="'+b+'" alt="" class="'+c.namespace+'-image" />');return e.onload=function(){f.naturalWidth=e.width,f.naturalHeight=e.height,d.resolve(f)},e.onerror=function(){d.reject(f)},e.src=b,d.promise()}},html:{regex:/^\s*<[\w!][^<]*>/,process:function(b){return a(b)}},ajax:{regex:/./,process:function(b){var c=a.Deferred(),d=a("<div></div>").load(b,function(a,b){"error"!==b&&c.resolve(d.contents()),c.fail()});return c.promise()}},iframe:{process:function(b){var c=new a.Deferred,d=a("<iframe/>");return d.hide().attr("src",b).css(e(this,"iframe")).on("load",function(){c.resolve(d.show())}).appendTo(this.$instance.find("."+this.namespace+"-content")),c.promise()}},text:{process:function(b){return a("<div>",{text:b})}}},functionAttributes:["beforeOpen","afterOpen","beforeContent","afterContent","beforeClose","afterClose"],readElementConfig:function(b,c){var d=this,e=new RegExp("^data-"+c+"-(.*)"),f={};return b&&b.attributes&&a.each(b.attributes,function(){var b=this.name.match(e);if(b){var c=this.value,g=a.camelCase(b[1]);if(a.inArray(g,d.functionAttributes)>=0)c=new Function(c);else try{c=JSON.parse(c)}catch(h){}f[g]=c}}),f},extend:function(b,c){var d=function(){this.constructor=b};return d.prototype=this.prototype,b.prototype=new d,b.__super__=this.prototype,a.extend(b,this,c),b.defaults=b.prototype,b},attach:function(b,c,d){var e=this;"object"!=typeof c||c instanceof a!=!1||d||(d=c,c=void 0),d=a.extend({},d);var f,g=d.namespace||e.defaults.namespace,h=a.extend({},e.defaults,e.readElementConfig(b[0],g),d);return b.on(h.openTrigger+"."+h.namespace,h.filter,function(g){var i=a.extend({$source:b,$currentTarget:a(this)},e.readElementConfig(b[0],h.namespace),e.readElementConfig(this,h.namespace),d),j=f||a(this).data("featherlight-persisted")||new e(c,i);"shared"===j.persist?f=j:j.persist!==!1&&a(this).data("featherlight-persisted",j),i.$currentTarget.blur(),j.open(g)}),b},current:function(){var a=this.opened();return a[a.length-1]||null},opened:function(){var b=this;return d(),a.grep(c,function(a){return a instanceof b})},close:function(a){var b=this.current();if(b)return b.close(a)},_onReady:function(){var b=this;b.autoBind&&(a(b.autoBind).each(function(){b.attach(a(this))}),a(document).on("click",b.autoBind,function(c){c.isDefaultPrevented()||"featherlight"===c.namespace||(c.preventDefault(),b.attach(a(c.currentTarget)),a(c.target).trigger("click.featherlight"))}))},_callbackChain:{onKeyUp:function(b,c){return 27===c.keyCode?(this.closeOnEsc&&a.featherlight.close(c),!1):b(c)},onResize:function(a,b){return this.resize(this.$content.naturalWidth,this.$content.naturalHeight),a(b)},afterContent:function(a,b){var c=a(b);return this.onResize(b),c}}}),a.featherlight=b,a.fn.featherlight=function(a,c){return b.attach(this,a,c)},a(document).ready(function(){b._onReady()})}(jQuery);
|
|
js/src/wpFeatherlight.min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
!function(a,b,c){"use strict";function d(a,c){return/(.png|.jpg|.jpeg|.gif|.tiff|.bmp)$/.test(b(c).attr("href").toLowerCase().split("?")[0].split("#")[0])}function e(){j.find("a[href]").filter(d).attr("data-featherlight","image")}function f(a,c){var d=b(c),e=d.find(".gallery-item a");0===e.length&&(e=d.find(".tiled-gallery-item a")),e.attr("data-featherlight")&&e.featherlightGallery()}function g(){var a=j.find(".gallery, .tiled-gallery");0!==a.length&&b.each(a,f)}function h(){b.featherlight.prototype.afterContent=function(){var a=this.$instance,c=this.$currentTarget,d=c.parent(),e=d.find(".wp-caption-text"),f=c.parents(".gallery-item"),g=c.parents(".tiled-gallery-item");0!==f.length?e=f.find(".wp-caption-text"):0!==g.length&&(e=g.find(".tiled-gallery-caption")),a.find(".caption").remove(),0!==e.length&&b('<div class="caption">').text(e.text()).appendTo(a.find(".featherlight-content"))}}function i(){e(),g(),j.hasClass("wp-featherlight-captions")&&h()}var j=b(document.body);b(document).ready(function(){i()})}(this,jQuery);
|
|
js/{src/vendor → vendor}/featherlight.gallery.js
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
/**
|
2 |
* Featherlight Gallery – an extension for the ultra slim jQuery lightbox
|
3 |
-
* Version 1.
|
4 |
*
|
5 |
* Copyright 2016, Noël Raoul Bossart (http://www.noelboss.com)
|
6 |
* MIT Licensed.
|
@@ -56,11 +56,15 @@
|
|
56 |
self._swiper = swipeAwareConstructor(self.$instance)
|
57 |
.on('swipeleft', self._swipeleft = function() { self.$instance.trigger('next'); })
|
58 |
.on('swiperight', self._swiperight = function() { self.$instance.trigger('previous'); });
|
59 |
-
|
60 |
-
self.$instance
|
61 |
-
.
|
62 |
-
.append(self.createNavigation('next'));
|
63 |
}
|
|
|
|
|
|
|
|
|
|
|
64 |
return _super(event);
|
65 |
},
|
66 |
beforeContent: function(_super, event) {
|
1 |
/**
|
2 |
* Featherlight Gallery – an extension for the ultra slim jQuery lightbox
|
3 |
+
* Version 1.7.0 - http://noelboss.github.io/featherlight/
|
4 |
*
|
5 |
* Copyright 2016, Noël Raoul Bossart (http://www.noelboss.com)
|
6 |
* MIT Licensed.
|
56 |
self._swiper = swipeAwareConstructor(self.$instance)
|
57 |
.on('swipeleft', self._swipeleft = function() { self.$instance.trigger('next'); })
|
58 |
.on('swiperight', self._swiperight = function() { self.$instance.trigger('previous'); });
|
59 |
+
|
60 |
+
self.$instance
|
61 |
+
.addClass(this.namespace+'-swipe-aware', swipeAwareConstructor);
|
|
|
62 |
}
|
63 |
+
|
64 |
+
self.$instance.find('.'+self.namespace+'-content')
|
65 |
+
.append(self.createNavigation('previous'))
|
66 |
+
.append(self.createNavigation('next'));
|
67 |
+
|
68 |
return _super(event);
|
69 |
},
|
70 |
beforeContent: function(_super, event) {
|
js/vendor/featherlight.gallery.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!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.addClass(this.namespace+"-swipe-aware",g)),c.$instance.find("."+c.namespace+"-content").append(c.createNavigation("previous")).append(c.createNavigation("next")),a(b)},beforeContent:function(a,b){var c=this.currentNavigation(),d=this.slides().length;return this.$instance.toggleClass(this.namespace+"-first-slide",0===c).toggleClass(this.namespace+"-last-slide",c===d-1),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);
|
js/{src/vendor → vendor}/featherlight.js
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
/**
|
2 |
* Featherlight - ultra slim jQuery lightbox
|
3 |
-
* Version 1.
|
4 |
*
|
5 |
* Copyright 2016, Noël Raoul Bossart (http://www.noelboss.com)
|
6 |
* MIT Licensed.
|
@@ -54,20 +54,38 @@
|
|
54 |
return opened;
|
55 |
};
|
56 |
|
57 |
-
//
|
58 |
-
|
59 |
-
|
60 |
-
var
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
regex = new RegExp('^' + prefix + '([A-Z])(.*)');
|
62 |
for (var key in obj) {
|
63 |
var match = key.match(regex);
|
64 |
if (match) {
|
65 |
var dasherized = (match[1] + match[2].replace(/([A-Z])/g, '-$1')).toLowerCase();
|
66 |
-
|
67 |
}
|
68 |
}
|
69 |
-
return
|
70 |
-
}
|
71 |
|
72 |
/* document wide key handler */
|
73 |
var eventMap = { keyup: 'onKeyUp', resize: 'onResize' };
|
@@ -136,9 +154,9 @@
|
|
136 |
$background = $(self.background || [
|
137 |
'<div class="'+css+'-loading '+css+'">',
|
138 |
'<div class="'+css+'-content">',
|
139 |
-
'<
|
140 |
self.closeIcon,
|
141 |
-
'</
|
142 |
'<div class="'+self.namespace+'-inner">' + self.loading + '</div>',
|
143 |
'</div>',
|
144 |
'</div>'].join('')),
|
@@ -382,9 +400,12 @@
|
|
382 |
process: function(url) {
|
383 |
var deferred = new $.Deferred();
|
384 |
var $content = $('<iframe/>');
|
|
|
|
|
385 |
$content.hide()
|
386 |
.attr('src', url)
|
387 |
-
.
|
|
|
388 |
.on('load', function() { deferred.resolve($content.show()); })
|
389 |
// We can't move an <iframe> and avoid reloading it,
|
390 |
// so let's put it in place ourselves right now:
|
@@ -534,6 +555,38 @@
|
|
534 |
}
|
535 |
},
|
536 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
537 |
onResize: function(_super, event){
|
538 |
this.resize(this.$content.naturalWidth, this.$content.naturalHeight);
|
539 |
return _super(event);
|
@@ -541,6 +594,7 @@
|
|
541 |
|
542 |
afterContent: function(_super, event){
|
543 |
var r = _super(event);
|
|
|
544 |
this.onResize(event);
|
545 |
return r;
|
546 |
}
|
1 |
/**
|
2 |
* Featherlight - ultra slim jQuery lightbox
|
3 |
+
* Version 1.7.0 - http://noelboss.github.io/featherlight/
|
4 |
*
|
5 |
* Copyright 2016, Noël Raoul Bossart (http://www.noelboss.com)
|
6 |
* MIT Licensed.
|
54 |
return opened;
|
55 |
};
|
56 |
|
57 |
+
// Removes keys of `set` from `obj` and returns the removed key/values.
|
58 |
+
function slice(obj, set) {
|
59 |
+
var r = {};
|
60 |
+
for (var key in obj) {
|
61 |
+
if (key in set) {
|
62 |
+
r[key] = obj[key];
|
63 |
+
delete obj[key];
|
64 |
+
}
|
65 |
+
}
|
66 |
+
return r;
|
67 |
+
}
|
68 |
+
|
69 |
+
// NOTE: List of available [iframe attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe).
|
70 |
+
var iFrameAttributeSet = {
|
71 |
+
allowfullscreen: 1, frameborder: 1, height: 1, longdesc: 1, marginheight: 1, marginwidth: 1,
|
72 |
+
name: 1, referrerpolicy: 1, scrolling: 1, sandbox: 1, src: 1, srcdoc: 1, width: 1
|
73 |
+
};
|
74 |
+
|
75 |
+
// Converts camelCased attributes to dasherized versions for given prefix:
|
76 |
+
// parseAttrs({hello: 1, hellFrozeOver: 2}, 'hell') => {froze-over: 2}
|
77 |
+
function parseAttrs(obj, prefix) {
|
78 |
+
var attrs = {},
|
79 |
regex = new RegExp('^' + prefix + '([A-Z])(.*)');
|
80 |
for (var key in obj) {
|
81 |
var match = key.match(regex);
|
82 |
if (match) {
|
83 |
var dasherized = (match[1] + match[2].replace(/([A-Z])/g, '-$1')).toLowerCase();
|
84 |
+
attrs[dasherized] = obj[key];
|
85 |
}
|
86 |
}
|
87 |
+
return attrs;
|
88 |
+
}
|
89 |
|
90 |
/* document wide key handler */
|
91 |
var eventMap = { keyup: 'onKeyUp', resize: 'onResize' };
|
154 |
$background = $(self.background || [
|
155 |
'<div class="'+css+'-loading '+css+'">',
|
156 |
'<div class="'+css+'-content">',
|
157 |
+
'<button class="'+css+'-close-icon '+ self.namespace + '-close" aria-label="Close">',
|
158 |
self.closeIcon,
|
159 |
+
'</button>',
|
160 |
'<div class="'+self.namespace+'-inner">' + self.loading + '</div>',
|
161 |
'</div>',
|
162 |
'</div>'].join('')),
|
400 |
process: function(url) {
|
401 |
var deferred = new $.Deferred();
|
402 |
var $content = $('<iframe/>');
|
403 |
+
var css = parseAttrs(this, 'iframe');
|
404 |
+
var attrs = slice(css, iFrameAttributeSet);
|
405 |
$content.hide()
|
406 |
.attr('src', url)
|
407 |
+
.attr(attrs)
|
408 |
+
.css(css)
|
409 |
.on('load', function() { deferred.resolve($content.show()); })
|
410 |
// We can't move an <iframe> and avoid reloading it,
|
411 |
// so let's put it in place ourselves right now:
|
555 |
}
|
556 |
},
|
557 |
|
558 |
+
beforeOpen: function(_super, event) {
|
559 |
+
// Remember focus:
|
560 |
+
this._previouslyActive = document.activeElement;
|
561 |
+
|
562 |
+
// Disable tabbing:
|
563 |
+
// See http://stackoverflow.com/questions/1599660/which-html-elements-can-receive-focus
|
564 |
+
this._$previouslyTabbable = $("a, input, select, textarea, iframe, button, iframe, [contentEditable=true]")
|
565 |
+
.not('[tabindex]')
|
566 |
+
.not(this.$instance.find('button'));
|
567 |
+
|
568 |
+
this._$previouslyWithTabIndex = $('[tabindex]').not('[tabindex="-1"]');
|
569 |
+
this._previousWithTabIndices = this._$previouslyWithTabIndex.map(function(_i, elem) {
|
570 |
+
return $(elem).attr('tabindex');
|
571 |
+
});
|
572 |
+
|
573 |
+
this._$previouslyWithTabIndex.add(this._$previouslyTabbable).attr('tabindex', -1);
|
574 |
+
|
575 |
+
document.activeElement.blur();
|
576 |
+
return _super(event);
|
577 |
+
},
|
578 |
+
|
579 |
+
afterClose: function(_super, event) {
|
580 |
+
var r = _super(event);
|
581 |
+
var self = this;
|
582 |
+
this._$previouslyTabbable.removeAttr('tabindex');
|
583 |
+
this._$previouslyWithTabIndex.each(function(i, elem) {
|
584 |
+
$(elem).attr('tabindex', self._previousWithTabIndices[i]);
|
585 |
+
});
|
586 |
+
this._previouslyActive.focus();
|
587 |
+
return r;
|
588 |
+
},
|
589 |
+
|
590 |
onResize: function(_super, event){
|
591 |
this.resize(this.$content.naturalWidth, this.$content.naturalHeight);
|
592 |
return _super(event);
|
594 |
|
595 |
afterContent: function(_super, event){
|
596 |
var r = _super(event);
|
597 |
+
this.$instance.find('[autofocus]:not([disabled])').focus();
|
598 |
this.onResize(event);
|
599 |
return r;
|
600 |
}
|
js/vendor/featherlight.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(a){"use strict";function b(a,c){if(!(this instanceof b)){var d=new b(a,c);return d.open(),d}this.id=b.id++,this.setup(a,c),this.chainCallbacks(b._callbackChain)}function c(a,b){var c={};for(var d in a)d in b&&(c[d]=a[d],delete a[d]);return c}function d(a,b){var c={},d=new RegExp("^"+b+"([A-Z])(.*)");for(var e in a){var f=e.match(d);if(f){var g=(f[1]+f[2].replace(/([A-Z])/g,"-$1")).toLowerCase();c[g]=a[e]}}return c}if("undefined"==typeof a)return void("console"in window&&window.console.info("Too much lightness, Featherlight needs jQuery."));var e=[],f=function(b){return e=a.grep(e,function(a){return a!==b&&a.$instance.closest("body").length>0})},g={allowfullscreen:1,frameborder:1,height:1,longdesc:1,marginheight:1,marginwidth:1,name:1,referrerpolicy:1,scrolling:1,sandbox:1,src:1,srcdoc:1,width:1},h={keyup:"onKeyUp",resize:"onResize"},i=function(c){a.each(b.opened().reverse(),function(){if(!c.isDefaultPrevented()&&!1===this[h[c.type]](c))return c.preventDefault(),c.stopPropagation(),!1})},j=function(c){if(c!==b._globalHandlerInstalled){b._globalHandlerInstalled=c;var d=a.map(h,function(a,c){return c+"."+b.prototype.namespace}).join(" ");a(window)[c?"on":"off"](d,i)}};b.prototype={constructor:b,namespace:"featherlight",targetAttr:"data-featherlight",variant:null,resetCss:!1,background:null,openTrigger:"click",closeTrigger:"click",filter:null,root:"body",openSpeed:250,closeSpeed:250,closeOnClick:"background",closeOnEsc:!0,closeIcon:"✕",loading:"",persist:!1,otherClose:null,beforeOpen:a.noop,beforeContent:a.noop,beforeClose:a.noop,afterOpen:a.noop,afterContent:a.noop,afterClose:a.noop,onKeyUp:a.noop,onResize:a.noop,type:null,contentFilters:["jquery","image","html","ajax","iframe","text"],setup:function(b,c){"object"!=typeof b||b instanceof a!=!1||c||(c=b,b=void 0);var d=a.extend(this,c,{target:b}),e=d.resetCss?d.namespace+"-reset":d.namespace,f=a(d.background||['<div class="'+e+"-loading "+e+'">','<div class="'+e+'-content">','<button class="'+e+"-close-icon "+d.namespace+'-close" aria-label="Close">',d.closeIcon,"</button>",'<div class="'+d.namespace+'-inner">'+d.loading+"</div>","</div>","</div>"].join("")),g="."+d.namespace+"-close"+(d.otherClose?","+d.otherClose:"");return d.$instance=f.clone().addClass(d.variant),d.$instance.on(d.closeTrigger+"."+d.namespace,function(b){var c=a(b.target);("background"===d.closeOnClick&&c.is("."+d.namespace)||"anywhere"===d.closeOnClick||c.closest(g).length)&&(d.close(b),b.preventDefault())}),this},getContent:function(){if(this.persist!==!1&&this.$content)return this.$content;var b=this,c=this.constructor.contentFilters,d=function(a){return b.$currentTarget&&b.$currentTarget.attr(a)},e=d(b.targetAttr),f=b.target||e||"",g=c[b.type];if(!g&&f in c&&(g=c[f],f=b.target&&e),f=f||d("href")||"",!g)for(var h in c)b[h]&&(g=c[h],f=b[h]);if(!g){var i=f;if(f=null,a.each(b.contentFilters,function(){return g=c[this],g.test&&(f=g.test(i)),!f&&g.regex&&i.match&&i.match(g.regex)&&(f=i),!f}),!f)return"console"in window&&window.console.error("Featherlight: no content filter found "+(i?' for "'+i+'"':" (no target specified)")),!1}return g.process.call(b,f)},setContent:function(b){var c=this;return(b.is("iframe")||a("iframe",b).length>0)&&c.$instance.addClass(c.namespace+"-iframe"),c.$instance.removeClass(c.namespace+"-loading"),c.$instance.find("."+c.namespace+"-inner").not(b).slice(1).remove().end().replaceWith(a.contains(c.$instance[0],b[0])?"":b),c.$content=b.addClass(c.namespace+"-inner"),c},open:function(b){var c=this;if(c.$instance.hide().appendTo(c.root),!(b&&b.isDefaultPrevented()||c.beforeOpen(b)===!1)){b&&b.preventDefault();var d=c.getContent();if(d)return e.push(c),j(!0),c.$instance.fadeIn(c.openSpeed),c.beforeContent(b),a.when(d).always(function(a){c.setContent(a),c.afterContent(b)}).then(c.$instance.promise()).done(function(){c.afterOpen(b)})}return c.$instance.detach(),a.Deferred().reject().promise()},close:function(b){var c=this,d=a.Deferred();return c.beforeClose(b)===!1?d.reject():(0===f(c).length&&j(!1),c.$instance.fadeOut(c.closeSpeed,function(){c.$instance.detach(),c.afterClose(b),d.resolve()})),d.promise()},resize:function(a,b){if(a&&b){this.$content.css("width","").css("height","");var c=Math.max(a/(parseInt(this.$content.parent().css("width"),10)-1),b/(parseInt(this.$content.parent().css("height"),10)-1));c>1&&(c=b/Math.floor(b/c),this.$content.css("width",""+a/c+"px").css("height",""+b/c+"px"))}},chainCallbacks:function(b){for(var c in b)this[c]=a.proxy(b[c],this,a.proxy(this[c],this))}},a.extend(b,{id:0,autoBind:"[data-featherlight]",defaults:b.prototype,contentFilters:{jquery:{regex:/^[#.]\w/,test:function(b){return b instanceof a&&b},process:function(b){return this.persist!==!1?a(b):a(b).clone(!0)}},image:{regex:/\.(png|jpg|jpeg|gif|tiff|bmp|svg)(\?\S*)?$/i,process:function(b){var c=this,d=a.Deferred(),e=new Image,f=a('<img src="'+b+'" alt="" class="'+c.namespace+'-image" />');return e.onload=function(){f.naturalWidth=e.width,f.naturalHeight=e.height,d.resolve(f)},e.onerror=function(){d.reject(f)},e.src=b,d.promise()}},html:{regex:/^\s*<[\w!][^<]*>/,process:function(b){return a(b)}},ajax:{regex:/./,process:function(b){var c=a.Deferred(),d=a("<div></div>").load(b,function(a,b){"error"!==b&&c.resolve(d.contents()),c.fail()});return c.promise()}},iframe:{process:function(b){var e=new a.Deferred,f=a("<iframe/>"),h=d(this,"iframe"),i=c(h,g);return f.hide().attr("src",b).attr(i).css(h).on("load",function(){e.resolve(f.show())}).appendTo(this.$instance.find("."+this.namespace+"-content")),e.promise()}},text:{process:function(b){return a("<div>",{text:b})}}},functionAttributes:["beforeOpen","afterOpen","beforeContent","afterContent","beforeClose","afterClose"],readElementConfig:function(b,c){var d=this,e=new RegExp("^data-"+c+"-(.*)"),f={};return b&&b.attributes&&a.each(b.attributes,function(){var b=this.name.match(e);if(b){var c=this.value,g=a.camelCase(b[1]);if(a.inArray(g,d.functionAttributes)>=0)c=new Function(c);else try{c=JSON.parse(c)}catch(a){}f[g]=c}}),f},extend:function(b,c){var d=function(){this.constructor=b};return d.prototype=this.prototype,b.prototype=new d,b.__super__=this.prototype,a.extend(b,this,c),b.defaults=b.prototype,b},attach:function(b,c,d){var e=this;"object"!=typeof c||c instanceof a!=!1||d||(d=c,c=void 0),d=a.extend({},d);var f,g=d.namespace||e.defaults.namespace,h=a.extend({},e.defaults,e.readElementConfig(b[0],g),d);return b.on(h.openTrigger+"."+h.namespace,h.filter,function(g){var i=a.extend({$source:b,$currentTarget:a(this)},e.readElementConfig(b[0],h.namespace),e.readElementConfig(this,h.namespace),d),j=f||a(this).data("featherlight-persisted")||new e(c,i);"shared"===j.persist?f=j:j.persist!==!1&&a(this).data("featherlight-persisted",j),i.$currentTarget.blur(),j.open(g)}),b},current:function(){var a=this.opened();return a[a.length-1]||null},opened:function(){var b=this;return f(),a.grep(e,function(a){return a instanceof b})},close:function(a){var b=this.current();if(b)return b.close(a)},_onReady:function(){var b=this;b.autoBind&&(a(b.autoBind).each(function(){b.attach(a(this))}),a(document).on("click",b.autoBind,function(c){c.isDefaultPrevented()||"featherlight"===c.namespace||(c.preventDefault(),b.attach(a(c.currentTarget)),a(c.target).trigger("click.featherlight"))}))},_callbackChain:{onKeyUp:function(b,c){return 27===c.keyCode?(this.closeOnEsc&&a.featherlight.close(c),!1):b(c)},beforeOpen:function(b,c){return this._previouslyActive=document.activeElement,this._$previouslyTabbable=a("a, input, select, textarea, iframe, button, iframe, [contentEditable=true]").not("[tabindex]").not(this.$instance.find("button")),this._$previouslyWithTabIndex=a("[tabindex]").not('[tabindex="-1"]'),this._previousWithTabIndices=this._$previouslyWithTabIndex.map(function(b,c){return a(c).attr("tabindex")}),this._$previouslyWithTabIndex.add(this._$previouslyTabbable).attr("tabindex",-1),document.activeElement.blur(),b(c)},afterClose:function(b,c){var d=b(c),e=this;return this._$previouslyTabbable.removeAttr("tabindex"),this._$previouslyWithTabIndex.each(function(b,c){a(c).attr("tabindex",e._previousWithTabIndices[b])}),this._previouslyActive.focus(),d},onResize:function(a,b){return this.resize(this.$content.naturalWidth,this.$content.naturalHeight),a(b)},afterContent:function(a,b){var c=a(b);return this.$instance.find("[autofocus]:not([disabled])").focus(),this.onResize(b),c}}}),a.featherlight=b,a.fn.featherlight=function(a,c){return b.attach(this,a,c)},a(document).ready(function(){b._onReady()})}(jQuery);
|
js/{src/vendor → vendor}/jquery.detect_swipe.js
RENAMED
File without changes
|
js/{src/vendor → vendor}/jquery.detect_swipe.min.js
RENAMED
File without changes
|
js/{src/wpFeatherlight.js → wpFeatherlight.js}
RENAMED
@@ -49,7 +49,10 @@
|
|
49 |
}
|
50 |
|
51 |
if ( $galleryItems.attr( 'data-featherlight' ) ) {
|
52 |
-
$galleryItems.featherlightGallery(
|
|
|
|
|
|
|
53 |
}
|
54 |
}
|
55 |
|
@@ -102,6 +105,7 @@
|
|
102 |
* @return void
|
103 |
*/
|
104 |
function wpFeatherlightInit() {
|
|
|
105 |
findImages();
|
106 |
findGalleries();
|
107 |
if ( $body.hasClass( 'wp-featherlight-captions' ) ) {
|
49 |
}
|
50 |
|
51 |
if ( $galleryItems.attr( 'data-featherlight' ) ) {
|
52 |
+
$galleryItems.featherlightGallery({
|
53 |
+
previousIcon: '',
|
54 |
+
nextIcon: ''
|
55 |
+
});
|
56 |
}
|
57 |
}
|
58 |
|
105 |
* @return void
|
106 |
*/
|
107 |
function wpFeatherlightInit() {
|
108 |
+
$.featherlight.defaults.closeIcon = '';
|
109 |
findImages();
|
110 |
findGalleries();
|
111 |
if ( $body.hasClass( 'wp-featherlight-captions' ) ) {
|
js/wpFeatherlight.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(a,b,c){"use strict";function d(a,c){return/(.png|.jpg|.jpeg|.gif|.tiff|.bmp)$/.test(b(c).attr("href").toLowerCase().split("?")[0].split("#")[0])}function e(){j.find("a[href]").filter(d).attr("data-featherlight","image")}function f(a,c){var d=b(c),e=d.find(".gallery-item a");0===e.length&&(e=d.find(".tiled-gallery-item a")),e.attr("data-featherlight")&&e.featherlightGallery({previousIcon:"",nextIcon:""})}function g(){var a=j.find(".gallery, .tiled-gallery");0!==a.length&&b.each(a,f)}function h(){b.featherlight.prototype.afterContent=function(){var a=this.$instance,c=this.$currentTarget,d=c.parent(),e=d.find(".wp-caption-text"),f=c.parents(".gallery-item"),g=c.parents(".tiled-gallery-item");0!==f.length?e=f.find(".wp-caption-text"):0!==g.length&&(e=g.find(".tiled-gallery-caption")),a.find(".caption").remove(),0!==e.length&&b('<div class="caption">').text(e.text()).appendTo(a.find(".featherlight-content"))}}function i(){b.featherlight.defaults.closeIcon="",e(),g(),j.hasClass("wp-featherlight-captions")&&h()}var j=b(document.body);b(document).ready(function(){i()})}(this,jQuery);
|
js/wpFeatherlight.pkgd.js
CHANGED
@@ -85,7 +85,7 @@
|
|
85 |
|
86 |
/**
|
87 |
* Featherlight - ultra slim jQuery lightbox
|
88 |
-
* Version 1.
|
89 |
*
|
90 |
* Copyright 2016, Noël Raoul Bossart (http://www.noelboss.com)
|
91 |
* MIT Licensed.
|
@@ -139,20 +139,38 @@
|
|
139 |
return opened;
|
140 |
};
|
141 |
|
142 |
-
//
|
143 |
-
|
144 |
-
|
145 |
-
var
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
regex = new RegExp('^' + prefix + '([A-Z])(.*)');
|
147 |
for (var key in obj) {
|
148 |
var match = key.match(regex);
|
149 |
if (match) {
|
150 |
var dasherized = (match[1] + match[2].replace(/([A-Z])/g, '-$1')).toLowerCase();
|
151 |
-
|
152 |
}
|
153 |
}
|
154 |
-
return
|
155 |
-
}
|
156 |
|
157 |
/* document wide key handler */
|
158 |
var eventMap = { keyup: 'onKeyUp', resize: 'onResize' };
|
@@ -221,9 +239,9 @@
|
|
221 |
$background = $(self.background || [
|
222 |
'<div class="'+css+'-loading '+css+'">',
|
223 |
'<div class="'+css+'-content">',
|
224 |
-
'<
|
225 |
self.closeIcon,
|
226 |
-
'</
|
227 |
'<div class="'+self.namespace+'-inner">' + self.loading + '</div>',
|
228 |
'</div>',
|
229 |
'</div>'].join('')),
|
@@ -467,9 +485,12 @@
|
|
467 |
process: function(url) {
|
468 |
var deferred = new $.Deferred();
|
469 |
var $content = $('<iframe/>');
|
|
|
|
|
470 |
$content.hide()
|
471 |
.attr('src', url)
|
472 |
-
.
|
|
|
473 |
.on('load', function() { deferred.resolve($content.show()); })
|
474 |
// We can't move an <iframe> and avoid reloading it,
|
475 |
// so let's put it in place ourselves right now:
|
@@ -619,6 +640,38 @@
|
|
619 |
}
|
620 |
},
|
621 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
622 |
onResize: function(_super, event){
|
623 |
this.resize(this.$content.naturalWidth, this.$content.naturalHeight);
|
624 |
return _super(event);
|
@@ -626,6 +679,7 @@
|
|
626 |
|
627 |
afterContent: function(_super, event){
|
628 |
var r = _super(event);
|
|
|
629 |
this.onResize(event);
|
630 |
return r;
|
631 |
}
|
@@ -645,7 +699,7 @@
|
|
645 |
|
646 |
/**
|
647 |
* Featherlight Gallery – an extension for the ultra slim jQuery lightbox
|
648 |
-
* Version 1.
|
649 |
*
|
650 |
* Copyright 2016, Noël Raoul Bossart (http://www.noelboss.com)
|
651 |
* MIT Licensed.
|
@@ -701,11 +755,15 @@
|
|
701 |
self._swiper = swipeAwareConstructor(self.$instance)
|
702 |
.on('swipeleft', self._swipeleft = function() { self.$instance.trigger('next'); })
|
703 |
.on('swiperight', self._swiperight = function() { self.$instance.trigger('previous'); });
|
704 |
-
|
705 |
-
self.$instance
|
706 |
-
.
|
707 |
-
.append(self.createNavigation('next'));
|
708 |
}
|
|
|
|
|
|
|
|
|
|
|
709 |
return _super(event);
|
710 |
},
|
711 |
beforeContent: function(_super, event) {
|
@@ -858,7 +916,10 @@
|
|
858 |
}
|
859 |
|
860 |
if ( $galleryItems.attr( 'data-featherlight' ) ) {
|
861 |
-
$galleryItems.featherlightGallery(
|
|
|
|
|
|
|
862 |
}
|
863 |
}
|
864 |
|
@@ -911,6 +972,7 @@
|
|
911 |
* @return void
|
912 |
*/
|
913 |
function wpFeatherlightInit() {
|
|
|
914 |
findImages();
|
915 |
findGalleries();
|
916 |
if ( $body.hasClass( 'wp-featherlight-captions' ) ) {
|
85 |
|
86 |
/**
|
87 |
* Featherlight - ultra slim jQuery lightbox
|
88 |
+
* Version 1.7.0 - http://noelboss.github.io/featherlight/
|
89 |
*
|
90 |
* Copyright 2016, Noël Raoul Bossart (http://www.noelboss.com)
|
91 |
* MIT Licensed.
|
139 |
return opened;
|
140 |
};
|
141 |
|
142 |
+
// Removes keys of `set` from `obj` and returns the removed key/values.
|
143 |
+
function slice(obj, set) {
|
144 |
+
var r = {};
|
145 |
+
for (var key in obj) {
|
146 |
+
if (key in set) {
|
147 |
+
r[key] = obj[key];
|
148 |
+
delete obj[key];
|
149 |
+
}
|
150 |
+
}
|
151 |
+
return r;
|
152 |
+
}
|
153 |
+
|
154 |
+
// NOTE: List of available [iframe attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe).
|
155 |
+
var iFrameAttributeSet = {
|
156 |
+
allowfullscreen: 1, frameborder: 1, height: 1, longdesc: 1, marginheight: 1, marginwidth: 1,
|
157 |
+
name: 1, referrerpolicy: 1, scrolling: 1, sandbox: 1, src: 1, srcdoc: 1, width: 1
|
158 |
+
};
|
159 |
+
|
160 |
+
// Converts camelCased attributes to dasherized versions for given prefix:
|
161 |
+
// parseAttrs({hello: 1, hellFrozeOver: 2}, 'hell') => {froze-over: 2}
|
162 |
+
function parseAttrs(obj, prefix) {
|
163 |
+
var attrs = {},
|
164 |
regex = new RegExp('^' + prefix + '([A-Z])(.*)');
|
165 |
for (var key in obj) {
|
166 |
var match = key.match(regex);
|
167 |
if (match) {
|
168 |
var dasherized = (match[1] + match[2].replace(/([A-Z])/g, '-$1')).toLowerCase();
|
169 |
+
attrs[dasherized] = obj[key];
|
170 |
}
|
171 |
}
|
172 |
+
return attrs;
|
173 |
+
}
|
174 |
|
175 |
/* document wide key handler */
|
176 |
var eventMap = { keyup: 'onKeyUp', resize: 'onResize' };
|
239 |
$background = $(self.background || [
|
240 |
'<div class="'+css+'-loading '+css+'">',
|
241 |
'<div class="'+css+'-content">',
|
242 |
+
'<button class="'+css+'-close-icon '+ self.namespace + '-close" aria-label="Close">',
|
243 |
self.closeIcon,
|
244 |
+
'</button>',
|
245 |
'<div class="'+self.namespace+'-inner">' + self.loading + '</div>',
|
246 |
'</div>',
|
247 |
'</div>'].join('')),
|
485 |
process: function(url) {
|
486 |
var deferred = new $.Deferred();
|
487 |
var $content = $('<iframe/>');
|
488 |
+
var css = parseAttrs(this, 'iframe');
|
489 |
+
var attrs = slice(css, iFrameAttributeSet);
|
490 |
$content.hide()
|
491 |
.attr('src', url)
|
492 |
+
.attr(attrs)
|
493 |
+
.css(css)
|
494 |
.on('load', function() { deferred.resolve($content.show()); })
|
495 |
// We can't move an <iframe> and avoid reloading it,
|
496 |
// so let's put it in place ourselves right now:
|
640 |
}
|
641 |
},
|
642 |
|
643 |
+
beforeOpen: function(_super, event) {
|
644 |
+
// Remember focus:
|
645 |
+
this._previouslyActive = document.activeElement;
|
646 |
+
|
647 |
+
// Disable tabbing:
|
648 |
+
// See http://stackoverflow.com/questions/1599660/which-html-elements-can-receive-focus
|
649 |
+
this._$previouslyTabbable = $("a, input, select, textarea, iframe, button, iframe, [contentEditable=true]")
|
650 |
+
.not('[tabindex]')
|
651 |
+
.not(this.$instance.find('button'));
|
652 |
+
|
653 |
+
this._$previouslyWithTabIndex = $('[tabindex]').not('[tabindex="-1"]');
|
654 |
+
this._previousWithTabIndices = this._$previouslyWithTabIndex.map(function(_i, elem) {
|
655 |
+
return $(elem).attr('tabindex');
|
656 |
+
});
|
657 |
+
|
658 |
+
this._$previouslyWithTabIndex.add(this._$previouslyTabbable).attr('tabindex', -1);
|
659 |
+
|
660 |
+
document.activeElement.blur();
|
661 |
+
return _super(event);
|
662 |
+
},
|
663 |
+
|
664 |
+
afterClose: function(_super, event) {
|
665 |
+
var r = _super(event);
|
666 |
+
var self = this;
|
667 |
+
this._$previouslyTabbable.removeAttr('tabindex');
|
668 |
+
this._$previouslyWithTabIndex.each(function(i, elem) {
|
669 |
+
$(elem).attr('tabindex', self._previousWithTabIndices[i]);
|
670 |
+
});
|
671 |
+
this._previouslyActive.focus();
|
672 |
+
return r;
|
673 |
+
},
|
674 |
+
|
675 |
onResize: function(_super, event){
|
676 |
this.resize(this.$content.naturalWidth, this.$content.naturalHeight);
|
677 |
return _super(event);
|
679 |
|
680 |
afterContent: function(_super, event){
|
681 |
var r = _super(event);
|
682 |
+
this.$instance.find('[autofocus]:not([disabled])').focus();
|
683 |
this.onResize(event);
|
684 |
return r;
|
685 |
}
|
699 |
|
700 |
/**
|
701 |
* Featherlight Gallery – an extension for the ultra slim jQuery lightbox
|
702 |
+
* Version 1.7.0 - http://noelboss.github.io/featherlight/
|
703 |
*
|
704 |
* Copyright 2016, Noël Raoul Bossart (http://www.noelboss.com)
|
705 |
* MIT Licensed.
|
755 |
self._swiper = swipeAwareConstructor(self.$instance)
|
756 |
.on('swipeleft', self._swipeleft = function() { self.$instance.trigger('next'); })
|
757 |
.on('swiperight', self._swiperight = function() { self.$instance.trigger('previous'); });
|
758 |
+
|
759 |
+
self.$instance
|
760 |
+
.addClass(this.namespace+'-swipe-aware', swipeAwareConstructor);
|
|
|
761 |
}
|
762 |
+
|
763 |
+
self.$instance.find('.'+self.namespace+'-content')
|
764 |
+
.append(self.createNavigation('previous'))
|
765 |
+
.append(self.createNavigation('next'));
|
766 |
+
|
767 |
return _super(event);
|
768 |
},
|
769 |
beforeContent: function(_super, event) {
|
916 |
}
|
917 |
|
918 |
if ( $galleryItems.attr( 'data-featherlight' ) ) {
|
919 |
+
$galleryItems.featherlightGallery({
|
920 |
+
previousIcon: '',
|
921 |
+
nextIcon: ''
|
922 |
+
});
|
923 |
}
|
924 |
}
|
925 |
|
972 |
* @return void
|
973 |
*/
|
974 |
function wpFeatherlightInit() {
|
975 |
+
$.featherlight.defaults.closeIcon = '';
|
976 |
findImages();
|
977 |
findGalleries();
|
978 |
if ( $body.hasClass( 'wp-featherlight-captions' ) ) {
|
js/wpFeatherlight.pkgd.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){function b(){this.removeEventListener("touchmove",c),this.removeEventListener("touchend",b),h=!1}function c(c){if(a.detectSwipe.preventDefault&&c.preventDefault(),h){var d,e=c.touches[0].pageX,i=c.touches[0].pageY,j=f-e,k=g-i;Math.abs(j)>=a.detectSwipe.threshold?d=j>0?"left":"right":Math.abs(k)>=a.detectSwipe.threshold&&(d=k>0?"up":"down"),d&&(b.call(this),a(this).trigger("swipe",d).trigger("swipe"+d))}}function d(a){1==a.touches.length&&(f=a.touches[0].pageX,g=a.touches[0].pageY,h=!0,this.addEventListener("touchmove",c,!1),this.addEventListener("touchend",b,!1))}function e(){this.addEventListener&&this.addEventListener("touchstart",d,!1)}a.detectSwipe={version:"2.1.2",enabled:"ontouchstart"in document.documentElement,preventDefault:!0,threshold:20};var f,g,h=!1;a.event.special.swipe={setup:e},a.each(["left","up","down","right"],function(){a.event.special["swipe"+this]={setup:function(){a(this).on("swipe",a.noop)}}})}),function(a){"use strict";function b(a,c){if(!(this instanceof b)){var d=new b(a,c);return d.open(),d}this.id=b.id++,this.setup(a,c),this.chainCallbacks(b._callbackChain)}if("undefined"==typeof a)return void("console"in window&&window.console.info("Too much lightness, Featherlight needs jQuery."));var c=[],d=function(b){return c=a.grep(c,function(a){return a!==b&&a.$instance.closest("body").length>0})},e=function(a,b){var c={},d=new RegExp("^"+b+"([A-Z])(.*)");for(var e in a){var f=e.match(d);if(f){var g=(f[1]+f[2].replace(/([A-Z])/g,"-$1")).toLowerCase();c[g]=a[e]}}return c},f={keyup:"onKeyUp",resize:"onResize"},g=function(c){a.each(b.opened().reverse(),function(){if(!c.isDefaultPrevented()&&!1===this[f[c.type]](c))return c.preventDefault(),c.stopPropagation(),!1})},h=function(c){if(c!==b._globalHandlerInstalled){b._globalHandlerInstalled=c;var d=a.map(f,function(a,c){return c+"."+b.prototype.namespace}).join(" ");a(window)[c?"on":"off"](d,g)}};b.prototype={constructor:b,namespace:"featherlight",targetAttr:"data-featherlight",variant:null,resetCss:!1,background:null,openTrigger:"click",closeTrigger:"click",filter:null,root:"body",openSpeed:250,closeSpeed:250,closeOnClick:"background",closeOnEsc:!0,closeIcon:"✕",loading:"",persist:!1,otherClose:null,beforeOpen:a.noop,beforeContent:a.noop,beforeClose:a.noop,afterOpen:a.noop,afterContent:a.noop,afterClose:a.noop,onKeyUp:a.noop,onResize:a.noop,type:null,contentFilters:["jquery","image","html","ajax","iframe","text"],setup:function(b,c){"object"!=typeof b||b instanceof a!=!1||c||(c=b,b=void 0);var d=a.extend(this,c,{target:b}),e=d.resetCss?d.namespace+"-reset":d.namespace,f=a(d.background||['<div class="'+e+"-loading "+e+'">','<div class="'+e+'-content">','<span class="'+e+"-close-icon "+d.namespace+'-close">',d.closeIcon,"</span>",'<div class="'+d.namespace+'-inner">'+d.loading+"</div>","</div>","</div>"].join("")),g="."+d.namespace+"-close"+(d.otherClose?","+d.otherClose:"");return d.$instance=f.clone().addClass(d.variant),d.$instance.on(d.closeTrigger+"."+d.namespace,function(b){var c=a(b.target);("background"===d.closeOnClick&&c.is("."+d.namespace)||"anywhere"===d.closeOnClick||c.closest(g).length)&&(d.close(b),b.preventDefault())}),this},getContent:function(){if(this.persist!==!1&&this.$content)return this.$content;var b=this,c=this.constructor.contentFilters,d=function(a){return b.$currentTarget&&b.$currentTarget.attr(a)},e=d(b.targetAttr),f=b.target||e||"",g=c[b.type];if(!g&&f in c&&(g=c[f],f=b.target&&e),f=f||d("href")||"",!g)for(var h in c)b[h]&&(g=c[h],f=b[h]);if(!g){var i=f;if(f=null,a.each(b.contentFilters,function(){return g=c[this],g.test&&(f=g.test(i)),!f&&g.regex&&i.match&&i.match(g.regex)&&(f=i),!f}),!f)return"console"in window&&window.console.error("Featherlight: no content filter found "+(i?' for "'+i+'"':" (no target specified)")),!1}return g.process.call(b,f)},setContent:function(b){var c=this;return(b.is("iframe")||a("iframe",b).length>0)&&c.$instance.addClass(c.namespace+"-iframe"),c.$instance.removeClass(c.namespace+"-loading"),c.$instance.find("."+c.namespace+"-inner").not(b).slice(1).remove().end().replaceWith(a.contains(c.$instance[0],b[0])?"":b),c.$content=b.addClass(c.namespace+"-inner"),c},open:function(b){var d=this;if(d.$instance.hide().appendTo(d.root),!(b&&b.isDefaultPrevented()||d.beforeOpen(b)===!1)){b&&b.preventDefault();var e=d.getContent();if(e)return c.push(d),h(!0),d.$instance.fadeIn(d.openSpeed),d.beforeContent(b),a.when(e).always(function(a){d.setContent(a),d.afterContent(b)}).then(d.$instance.promise()).done(function(){d.afterOpen(b)})}return d.$instance.detach(),a.Deferred().reject().promise()},close:function(b){var c=this,e=a.Deferred();return c.beforeClose(b)===!1?e.reject():(0===d(c).length&&h(!1),c.$instance.fadeOut(c.closeSpeed,function(){c.$instance.detach(),c.afterClose(b),e.resolve()})),e.promise()},resize:function(a,b){if(a&&b){this.$content.css("width","").css("height","");var c=Math.max(a/(parseInt(this.$content.parent().css("width"),10)-1),b/(parseInt(this.$content.parent().css("height"),10)-1));c>1&&(c=b/Math.floor(b/c),this.$content.css("width",""+a/c+"px").css("height",""+b/c+"px"))}},chainCallbacks:function(b){for(var c in b)this[c]=a.proxy(b[c],this,a.proxy(this[c],this))}},a.extend(b,{id:0,autoBind:"[data-featherlight]",defaults:b.prototype,contentFilters:{jquery:{regex:/^[#.]\w/,test:function(b){return b instanceof a&&b},process:function(b){return this.persist!==!1?a(b):a(b).clone(!0)}},image:{regex:/\.(png|jpg|jpeg|gif|tiff|bmp|svg)(\?\S*)?$/i,process:function(b){var c=this,d=a.Deferred(),e=new Image,f=a('<img src="'+b+'" alt="" class="'+c.namespace+'-image" />');return e.onload=function(){f.naturalWidth=e.width,f.naturalHeight=e.height,d.resolve(f)},e.onerror=function(){d.reject(f)},e.src=b,d.promise()}},html:{regex:/^\s*<[\w!][^<]*>/,process:function(b){return a(b)}},ajax:{regex:/./,process:function(b){var c=a.Deferred(),d=a("<div></div>").load(b,function(a,b){"error"!==b&&c.resolve(d.contents()),c.fail()});return c.promise()}},iframe:{process:function(b){var c=new a.Deferred,d=a("<iframe/>");return d.hide().attr("src",b).css(e(this,"iframe")).on("load",function(){c.resolve(d.show())}).appendTo(this.$instance.find("."+this.namespace+"-content")),c.promise()}},text:{process:function(b){return a("<div>",{text:b})}}},functionAttributes:["beforeOpen","afterOpen","beforeContent","afterContent","beforeClose","afterClose"],readElementConfig:function(b,c){var d=this,e=new RegExp("^data-"+c+"-(.*)"),f={};return b&&b.attributes&&a.each(b.attributes,function(){var b=this.name.match(e);if(b){var c=this.value,g=a.camelCase(b[1]);if(a.inArray(g,d.functionAttributes)>=0)c=new Function(c);else try{c=JSON.parse(c)}catch(h){}f[g]=c}}),f},extend:function(b,c){var d=function(){this.constructor=b};return d.prototype=this.prototype,b.prototype=new d,b.__super__=this.prototype,a.extend(b,this,c),b.defaults=b.prototype,b},attach:function(b,c,d){var e=this;"object"!=typeof c||c instanceof a!=!1||d||(d=c,c=void 0),d=a.extend({},d);var f,g=d.namespace||e.defaults.namespace,h=a.extend({},e.defaults,e.readElementConfig(b[0],g),d);return b.on(h.openTrigger+"."+h.namespace,h.filter,function(g){var i=a.extend({$source:b,$currentTarget:a(this)},e.readElementConfig(b[0],h.namespace),e.readElementConfig(this,h.namespace),d),j=f||a(this).data("featherlight-persisted")||new e(c,i);"shared"===j.persist?f=j:j.persist!==!1&&a(this).data("featherlight-persisted",j),i.$currentTarget.blur(),j.open(g)}),b},current:function(){var a=this.opened();return a[a.length-1]||null},opened:function(){var b=this;return d(),a.grep(c,function(a){return a instanceof b})},close:function(a){var b=this.current();if(b)return b.close(a)},_onReady:function(){var b=this;b.autoBind&&(a(b.autoBind).each(function(){b.attach(a(this))}),a(document).on("click",b.autoBind,function(c){c.isDefaultPrevented()||"featherlight"===c.namespace||(c.preventDefault(),b.attach(a(c.currentTarget)),a(c.target).trigger("click.featherlight"))}))},_callbackChain:{onKeyUp:function(b,c){return 27===c.keyCode?(this.closeOnEsc&&a.featherlight.close(c),!1):b(c)},onResize:function(a,b){return this.resize(this.$content.naturalWidth,this.$content.naturalHeight),a(b)},afterContent:function(a,b){var c=a(b);return this.onResize(b),c}}}),a.featherlight=b,a.fn.featherlight=function(a,c){return b.attach(this,a,c)},a(document).ready(function(){b._onReady()})}(jQuery),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)},beforeContent:function(a,b){var c=this.currentNavigation(),d=this.slides().length;return this.$instance.toggleClass(this.namespace+"-first-slide",0===c).toggleClass(this.namespace+"-last-slide",c===d-1),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),function(a,b,c){"use strict";function d(a,c){return/(.png|.jpg|.jpeg|.gif|.tiff|.bmp)$/.test(b(c).attr("href").toLowerCase().split("?")[0].split("#")[0])}function e(){j.find("a[href]").filter(d).attr("data-featherlight","image")}function f(a,c){var d=b(c),e=d.find(".gallery-item a");0===e.length&&(e=d.find(".tiled-gallery-item a")),e.attr("data-featherlight")&&e.featherlightGallery()}function g(){var a=j.find(".gallery, .tiled-gallery");0!==a.length&&b.each(a,f)}function h(){b.featherlight.prototype.afterContent=function(){var a=this.$instance,c=this.$currentTarget,d=c.parent(),e=d.find(".wp-caption-text"),f=c.parents(".gallery-item"),g=c.parents(".tiled-gallery-item");0!==f.length?e=f.find(".wp-caption-text"):0!==g.length&&(e=g.find(".tiled-gallery-caption")),a.find(".caption").remove(),0!==e.length&&b('<div class="caption">').text(e.text()).appendTo(a.find(".featherlight-content"))}}function i(){e(),g(),j.hasClass("wp-featherlight-captions")&&h()}var j=b(document.body);b(document).ready(function(){i()})}(this,jQuery);
|
1 |
+
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){function b(){this.removeEventListener("touchmove",c),this.removeEventListener("touchend",b),h=!1}function c(c){if(a.detectSwipe.preventDefault&&c.preventDefault(),h){var d,e=c.touches[0].pageX,i=c.touches[0].pageY,j=f-e,k=g-i;Math.abs(j)>=a.detectSwipe.threshold?d=j>0?"left":"right":Math.abs(k)>=a.detectSwipe.threshold&&(d=k>0?"up":"down"),d&&(b.call(this),a(this).trigger("swipe",d).trigger("swipe"+d))}}function d(a){1==a.touches.length&&(f=a.touches[0].pageX,g=a.touches[0].pageY,h=!0,this.addEventListener("touchmove",c,!1),this.addEventListener("touchend",b,!1))}function e(){this.addEventListener&&this.addEventListener("touchstart",d,!1)}a.detectSwipe={version:"2.1.2",enabled:"ontouchstart"in document.documentElement,preventDefault:!0,threshold:20};var f,g,h=!1;a.event.special.swipe={setup:e},a.each(["left","up","down","right"],function(){a.event.special["swipe"+this]={setup:function(){a(this).on("swipe",a.noop)}}})}),function(a){"use strict";function b(a,c){if(!(this instanceof b)){var d=new b(a,c);return d.open(),d}this.id=b.id++,this.setup(a,c),this.chainCallbacks(b._callbackChain)}function c(a,b){var c={};for(var d in a)d in b&&(c[d]=a[d],delete a[d]);return c}function d(a,b){var c={},d=new RegExp("^"+b+"([A-Z])(.*)");for(var e in a){var f=e.match(d);if(f){var g=(f[1]+f[2].replace(/([A-Z])/g,"-$1")).toLowerCase();c[g]=a[e]}}return c}if("undefined"==typeof a)return void("console"in window&&window.console.info("Too much lightness, Featherlight needs jQuery."));var e=[],f=function(b){return e=a.grep(e,function(a){return a!==b&&a.$instance.closest("body").length>0})},g={allowfullscreen:1,frameborder:1,height:1,longdesc:1,marginheight:1,marginwidth:1,name:1,referrerpolicy:1,scrolling:1,sandbox:1,src:1,srcdoc:1,width:1},h={keyup:"onKeyUp",resize:"onResize"},i=function(c){a.each(b.opened().reverse(),function(){if(!c.isDefaultPrevented()&&!1===this[h[c.type]](c))return c.preventDefault(),c.stopPropagation(),!1})},j=function(c){if(c!==b._globalHandlerInstalled){b._globalHandlerInstalled=c;var d=a.map(h,function(a,c){return c+"."+b.prototype.namespace}).join(" ");a(window)[c?"on":"off"](d,i)}};b.prototype={constructor:b,namespace:"featherlight",targetAttr:"data-featherlight",variant:null,resetCss:!1,background:null,openTrigger:"click",closeTrigger:"click",filter:null,root:"body",openSpeed:250,closeSpeed:250,closeOnClick:"background",closeOnEsc:!0,closeIcon:"✕",loading:"",persist:!1,otherClose:null,beforeOpen:a.noop,beforeContent:a.noop,beforeClose:a.noop,afterOpen:a.noop,afterContent:a.noop,afterClose:a.noop,onKeyUp:a.noop,onResize:a.noop,type:null,contentFilters:["jquery","image","html","ajax","iframe","text"],setup:function(b,c){"object"!=typeof b||b instanceof a!=!1||c||(c=b,b=void 0);var d=a.extend(this,c,{target:b}),e=d.resetCss?d.namespace+"-reset":d.namespace,f=a(d.background||['<div class="'+e+"-loading "+e+'">','<div class="'+e+'-content">','<button class="'+e+"-close-icon "+d.namespace+'-close" aria-label="Close">',d.closeIcon,"</button>",'<div class="'+d.namespace+'-inner">'+d.loading+"</div>","</div>","</div>"].join("")),g="."+d.namespace+"-close"+(d.otherClose?","+d.otherClose:"");return d.$instance=f.clone().addClass(d.variant),d.$instance.on(d.closeTrigger+"."+d.namespace,function(b){var c=a(b.target);("background"===d.closeOnClick&&c.is("."+d.namespace)||"anywhere"===d.closeOnClick||c.closest(g).length)&&(d.close(b),b.preventDefault())}),this},getContent:function(){if(this.persist!==!1&&this.$content)return this.$content;var b=this,c=this.constructor.contentFilters,d=function(a){return b.$currentTarget&&b.$currentTarget.attr(a)},e=d(b.targetAttr),f=b.target||e||"",g=c[b.type];if(!g&&f in c&&(g=c[f],f=b.target&&e),f=f||d("href")||"",!g)for(var h in c)b[h]&&(g=c[h],f=b[h]);if(!g){var i=f;if(f=null,a.each(b.contentFilters,function(){return g=c[this],g.test&&(f=g.test(i)),!f&&g.regex&&i.match&&i.match(g.regex)&&(f=i),!f}),!f)return"console"in window&&window.console.error("Featherlight: no content filter found "+(i?' for "'+i+'"':" (no target specified)")),!1}return g.process.call(b,f)},setContent:function(b){var c=this;return(b.is("iframe")||a("iframe",b).length>0)&&c.$instance.addClass(c.namespace+"-iframe"),c.$instance.removeClass(c.namespace+"-loading"),c.$instance.find("."+c.namespace+"-inner").not(b).slice(1).remove().end().replaceWith(a.contains(c.$instance[0],b[0])?"":b),c.$content=b.addClass(c.namespace+"-inner"),c},open:function(b){var c=this;if(c.$instance.hide().appendTo(c.root),!(b&&b.isDefaultPrevented()||c.beforeOpen(b)===!1)){b&&b.preventDefault();var d=c.getContent();if(d)return e.push(c),j(!0),c.$instance.fadeIn(c.openSpeed),c.beforeContent(b),a.when(d).always(function(a){c.setContent(a),c.afterContent(b)}).then(c.$instance.promise()).done(function(){c.afterOpen(b)})}return c.$instance.detach(),a.Deferred().reject().promise()},close:function(b){var c=this,d=a.Deferred();return c.beforeClose(b)===!1?d.reject():(0===f(c).length&&j(!1),c.$instance.fadeOut(c.closeSpeed,function(){c.$instance.detach(),c.afterClose(b),d.resolve()})),d.promise()},resize:function(a,b){if(a&&b){this.$content.css("width","").css("height","");var c=Math.max(a/(parseInt(this.$content.parent().css("width"),10)-1),b/(parseInt(this.$content.parent().css("height"),10)-1));c>1&&(c=b/Math.floor(b/c),this.$content.css("width",""+a/c+"px").css("height",""+b/c+"px"))}},chainCallbacks:function(b){for(var c in b)this[c]=a.proxy(b[c],this,a.proxy(this[c],this))}},a.extend(b,{id:0,autoBind:"[data-featherlight]",defaults:b.prototype,contentFilters:{jquery:{regex:/^[#.]\w/,test:function(b){return b instanceof a&&b},process:function(b){return this.persist!==!1?a(b):a(b).clone(!0)}},image:{regex:/\.(png|jpg|jpeg|gif|tiff|bmp|svg)(\?\S*)?$/i,process:function(b){var c=this,d=a.Deferred(),e=new Image,f=a('<img src="'+b+'" alt="" class="'+c.namespace+'-image" />');return e.onload=function(){f.naturalWidth=e.width,f.naturalHeight=e.height,d.resolve(f)},e.onerror=function(){d.reject(f)},e.src=b,d.promise()}},html:{regex:/^\s*<[\w!][^<]*>/,process:function(b){return a(b)}},ajax:{regex:/./,process:function(b){var c=a.Deferred(),d=a("<div></div>").load(b,function(a,b){"error"!==b&&c.resolve(d.contents()),c.fail()});return c.promise()}},iframe:{process:function(b){var e=new a.Deferred,f=a("<iframe/>"),h=d(this,"iframe"),i=c(h,g);return f.hide().attr("src",b).attr(i).css(h).on("load",function(){e.resolve(f.show())}).appendTo(this.$instance.find("."+this.namespace+"-content")),e.promise()}},text:{process:function(b){return a("<div>",{text:b})}}},functionAttributes:["beforeOpen","afterOpen","beforeContent","afterContent","beforeClose","afterClose"],readElementConfig:function(b,c){var d=this,e=new RegExp("^data-"+c+"-(.*)"),f={};return b&&b.attributes&&a.each(b.attributes,function(){var b=this.name.match(e);if(b){var c=this.value,g=a.camelCase(b[1]);if(a.inArray(g,d.functionAttributes)>=0)c=new Function(c);else try{c=JSON.parse(c)}catch(a){}f[g]=c}}),f},extend:function(b,c){var d=function(){this.constructor=b};return d.prototype=this.prototype,b.prototype=new d,b.__super__=this.prototype,a.extend(b,this,c),b.defaults=b.prototype,b},attach:function(b,c,d){var e=this;"object"!=typeof c||c instanceof a!=!1||d||(d=c,c=void 0),d=a.extend({},d);var f,g=d.namespace||e.defaults.namespace,h=a.extend({},e.defaults,e.readElementConfig(b[0],g),d);return b.on(h.openTrigger+"."+h.namespace,h.filter,function(g){var i=a.extend({$source:b,$currentTarget:a(this)},e.readElementConfig(b[0],h.namespace),e.readElementConfig(this,h.namespace),d),j=f||a(this).data("featherlight-persisted")||new e(c,i);"shared"===j.persist?f=j:j.persist!==!1&&a(this).data("featherlight-persisted",j),i.$currentTarget.blur(),j.open(g)}),b},current:function(){var a=this.opened();return a[a.length-1]||null},opened:function(){var b=this;return f(),a.grep(e,function(a){return a instanceof b})},close:function(a){var b=this.current();if(b)return b.close(a)},_onReady:function(){var b=this;b.autoBind&&(a(b.autoBind).each(function(){b.attach(a(this))}),a(document).on("click",b.autoBind,function(c){c.isDefaultPrevented()||"featherlight"===c.namespace||(c.preventDefault(),b.attach(a(c.currentTarget)),a(c.target).trigger("click.featherlight"))}))},_callbackChain:{onKeyUp:function(b,c){return 27===c.keyCode?(this.closeOnEsc&&a.featherlight.close(c),!1):b(c)},beforeOpen:function(b,c){return this._previouslyActive=document.activeElement,this._$previouslyTabbable=a("a, input, select, textarea, iframe, button, iframe, [contentEditable=true]").not("[tabindex]").not(this.$instance.find("button")),this._$previouslyWithTabIndex=a("[tabindex]").not('[tabindex="-1"]'),this._previousWithTabIndices=this._$previouslyWithTabIndex.map(function(b,c){return a(c).attr("tabindex")}),this._$previouslyWithTabIndex.add(this._$previouslyTabbable).attr("tabindex",-1),document.activeElement.blur(),b(c)},afterClose:function(b,c){var d=b(c),e=this;return this._$previouslyTabbable.removeAttr("tabindex"),this._$previouslyWithTabIndex.each(function(b,c){a(c).attr("tabindex",e._previousWithTabIndices[b])}),this._previouslyActive.focus(),d},onResize:function(a,b){return this.resize(this.$content.naturalWidth,this.$content.naturalHeight),a(b)},afterContent:function(a,b){var c=a(b);return this.$instance.find("[autofocus]:not([disabled])").focus(),this.onResize(b),c}}}),a.featherlight=b,a.fn.featherlight=function(a,c){return b.attach(this,a,c)},a(document).ready(function(){b._onReady()})}(jQuery),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.addClass(this.namespace+"-swipe-aware",g)),c.$instance.find("."+c.namespace+"-content").append(c.createNavigation("previous")).append(c.createNavigation("next")),a(b)},beforeContent:function(a,b){var c=this.currentNavigation(),d=this.slides().length;return this.$instance.toggleClass(this.namespace+"-first-slide",0===c).toggleClass(this.namespace+"-last-slide",c===d-1),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),function(a,b,c){"use strict";function d(a,c){return/(.png|.jpg|.jpeg|.gif|.tiff|.bmp)$/.test(b(c).attr("href").toLowerCase().split("?")[0].split("#")[0])}function e(){j.find("a[href]").filter(d).attr("data-featherlight","image")}function f(a,c){var d=b(c),e=d.find(".gallery-item a");0===e.length&&(e=d.find(".tiled-gallery-item a")),e.attr("data-featherlight")&&e.featherlightGallery({previousIcon:"",nextIcon:""})}function g(){var a=j.find(".gallery, .tiled-gallery");0!==a.length&&b.each(a,f)}function h(){b.featherlight.prototype.afterContent=function(){var a=this.$instance,c=this.$currentTarget,d=c.parent(),e=d.find(".wp-caption-text"),f=c.parents(".gallery-item"),g=c.parents(".tiled-gallery-item");0!==f.length?e=f.find(".wp-caption-text"):0!==g.length&&(e=g.find(".tiled-gallery-caption")),a.find(".caption").remove(),0!==e.length&&b('<div class="caption">').text(e.text()).appendTo(a.find(".featherlight-content"))}}function i(){b.featherlight.defaults.closeIcon="",e(),g(),j.hasClass("wp-featherlight-captions")&&h()}var j=b(document.body);b(document).ready(function(){i()})}(this,jQuery);
|
languages/wp-featherlight.pot
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the GPL-2.0+.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: WP Featherlight 1.
|
6 |
"Report-Msgid-Bugs-To: Robert Neu <translations@wpsitecare.com>\n"
|
7 |
-
"POT-Creation-Date:
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"PO-Revision-Date:
|
12 |
"Last-Translator: Robert Neu <translations@wpsitecare.com>\n"
|
13 |
"Language-Team: Robert Neu <translations@wpsitecare.com>\n"
|
14 |
"X-Generator: grunt-wp-i18n 0.5.4\n"
|
1 |
+
# Copyright (C) 2017 WP Site Care
|
2 |
# This file is distributed under the GPL-2.0+.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WP Featherlight 1.1.0\n"
|
6 |
"Report-Msgid-Bugs-To: Robert Neu <translations@wpsitecare.com>\n"
|
7 |
+
"POT-Creation-Date: 2017-01-17 01:50:03+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
|
12 |
"Last-Translator: Robert Neu <translations@wpsitecare.com>\n"
|
13 |
"Language-Team: Robert Neu <translations@wpsitecare.com>\n"
|
14 |
"X-Generator: grunt-wp-i18n 0.5.4\n"
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
|
3 |
Contributors: fatmedia, wpsitecare
|
4 |
Tags: lightbox, jquery lightbox, jquery, gallery, image, lightbox images, image lightbox, lightbox gallery, lightbox image, lightbox popup, featherlight, photo gallery, popup image, popup images, popup lightbox, responsive lightbox, swipe, wordpress image lightbox, wordpress lightbox, wordpress slideshow lightbox, photography, images, minimal, responsive, photo, photos
|
5 |
-
Requires at least: 4.
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.
|
8 |
License: GPL-2.0+
|
9 |
|
10 |
An ultra lightweight jQuery lightbox for WordPress images and galleries.
|
@@ -37,6 +37,15 @@ If you'd like to submit code patches or contribute in any other way, please [for
|
|
37 |
|
38 |
== Changelog ==
|
39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
= 1.0.0 =
|
41 |
Even though this is a major version change, this is primarily a maintenance release. The reason for the jump to 1.0.0 is because we've changed some code which could break backwards compatibility with custom extensions and integrations.
|
42 |
|
@@ -55,4 +64,4 @@ Under the hood, we've [deprecated some internal methods](https://github.com/wpsi
|
|
55 |
- Dev: Deprecated some internal methods
|
56 |
- Dev: Reorganized how classes are instantiated and plugin actions are fired
|
57 |
|
58 |
-
[View the full changelog on GitHub](https://github.com/wpsitecare/wp-featherlight/blob/
|
2 |
|
3 |
Contributors: fatmedia, wpsitecare
|
4 |
Tags: lightbox, jquery lightbox, jquery, gallery, image, lightbox images, image lightbox, lightbox gallery, lightbox image, lightbox popup, featherlight, photo gallery, popup image, popup images, popup lightbox, responsive lightbox, swipe, wordpress image lightbox, wordpress lightbox, wordpress slideshow lightbox, photography, images, minimal, responsive, photo, photos
|
5 |
+
Requires at least: 4.4
|
6 |
+
Tested up to: 4.7.1
|
7 |
+
Stable tag: 1.1.0
|
8 |
License: GPL-2.0+
|
9 |
|
10 |
An ultra lightweight jQuery lightbox for WordPress images and galleries.
|
37 |
|
38 |
== Changelog ==
|
39 |
|
40 |
+
= 1.1.0 =
|
41 |
+
Thanks to some changes implemented in the core featherlight script, the accessibility of WP Featherlight is now significantly improved. Lightboxed elements now have more appropriate focus management for screen readers and the close button is more accessible.
|
42 |
+
|
43 |
+
This update also fixes a potential plugin compatibly problem in the WordPress admin. In version 1.0, it was possible under unusual circumstances for the plugin to throw a fatal error when attempting to add the disable checkbox to the publish metabox.
|
44 |
+
|
45 |
+
- Tweak: Improved accessibility (accessible close button, better focus management)
|
46 |
+
- Fix: Prevented a fatal error that could happen when another plugin unsets the WP_Post object on the publish metabox.
|
47 |
+
- Dev: Updated [Featherlight](https://github.com/noelboss/featherlight/) to `1.7.0`
|
48 |
+
|
49 |
= 1.0.0 =
|
50 |
Even though this is a major version change, this is primarily a maintenance release. The reason for the jump to 1.0.0 is because we've changed some code which could break backwards compatibility with custom extensions and integrations.
|
51 |
|
64 |
- Dev: Deprecated some internal methods
|
65 |
- Dev: Reorganized how classes are instantiated and plugin actions are fired
|
66 |
|
67 |
+
[View the full changelog on GitHub](https://github.com/wpsitecare/wp-featherlight/blob/release/CHANGELOG.md)
|
wp-featherlight.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: WP Featherlight
|
4 |
* Plugin URI: https://www.wpsitecare.com/wp-featherlight/
|
5 |
* Description: An ultra lightweight jQuery lightbox for WordPress images and galleries.
|
6 |
-
* Version: 1.
|
7 |
* Author: WP Site Care
|
8 |
* Author URI: https://www.wpsitecare.com
|
9 |
* License: GPL-2.0+
|
3 |
* Plugin Name: WP Featherlight
|
4 |
* Plugin URI: https://www.wpsitecare.com/wp-featherlight/
|
5 |
* Description: An ultra lightweight jQuery lightbox for WordPress images and galleries.
|
6 |
+
* Version: 1.1.0
|
7 |
* Author: WP Site Care
|
8 |
* Author URI: https://www.wpsitecare.com
|
9 |
* License: GPL-2.0+
|