Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WebP Support #74

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.3.5
Added WebP image format support.

## 1.3.4
This is a maintenance release.

Expand Down
2 changes: 1 addition & 1 deletion assets/plugin/css/wp-featherlight.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**!
* Plugin Name: WP Featherlight
* Version: 1.3.4
* Version: 1.3.5
* Author: Cipher
* License: GPL-2.0+
*/
Expand Down
2 changes: 1 addition & 1 deletion assets/plugin/js/wpFeatherlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @return mixed
*/
function testImages( index, element ) {
return /(.png|.jpg|.jpeg|.gif|.tiff|.bmp)$/.test(
return /(.png|.jpg|.jpeg|.webp|.gif|.tiff|.bmp)$/.test(
$( element ).attr( 'href' ).toLowerCase().split( '?' )[0].split( '#' )[0]
);
}
Expand Down
4 changes: 2 additions & 2 deletions css/wp-featherlight-rtl.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions css/wp-featherlight.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion includes/class-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class WP_Featherlight {
* @since 0.3.0
* @var string
*/
const VERSION = '1.3.4';
const VERSION = '1.3.5';

/**
* Property for storing a reference to the main plugin file.
Expand Down
2 changes: 1 addition & 1 deletion js/vendor/featherlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@
process: function(elem) { return this.persist !== false ? $(elem) : $(elem).clone(true); }
},
image: {
regex: /\.(png|jpg|jpeg|gif|tiff?|bmp|svg)(\?\S*)?$/i,
regex: /\.(png|jpg|jpeg|webp|gif|tiff?|bmp|svg)(\?\S*)?$/i,
process: function(url) {
var self = this,
deferred = $.Deferred(),
Expand Down
2 changes: 1 addition & 1 deletion js/vendor/featherlight.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/wpFeatherlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @return mixed
*/
function testImages( index, element ) {
return /(.png|.jpg|.jpeg|.gif|.tiff|.bmp)$/.test(
return /(.png|.jpg|.jpeg|.webp|.gif|.tiff|.bmp)$/.test(
$( element ).attr( 'href' ).toLowerCase().split( '?' )[0].split( '#' )[0]
);
}
Expand Down
2 changes: 1 addition & 1 deletion js/wpFeatherlight.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions js/wpFeatherlight.pkgd.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@
process: function(elem) { return this.persist !== false ? $(elem) : $(elem).clone(true); }
},
image: {
regex: /\.(png|jpg|jpeg|gif|tiff?|bmp|svg)(\?\S*)?$/i,
regex: /\.(png|jpg|jpeg|webp|gif|tiff?|bmp|svg)(\?\S*)?$/i,
process: function(url) {
var self = this,
deferred = $.Deferred(),
Expand Down Expand Up @@ -914,7 +914,7 @@
* @return mixed
*/
function testImages( index, element ) {
return /(.png|.jpg|.jpeg|.gif|.tiff|.bmp)$/.test(
return /(.png|.jpg|.jpeg|.webp|.gif|.tiff|.bmp)$/.test(
$( element ).attr( 'href' ).toLowerCase().split( '?' )[0].split( '#' )[0]
);
}
Expand Down
2 changes: 1 addition & 1 deletion js/wpFeatherlight.pkgd.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions languages/wp-featherlight.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is distributed under the GPL-2.0+.
msgid ""
msgstr ""
"Project-Id-Version: WP Featherlight 1.3.4\n"
"Project-Id-Version: WP Featherlight 1.3.5\n"
"Report-Msgid-Bugs-To: https://cipherdevelopment.com/contact/\n"
"POT-Creation-Date: 2020-08-08 17:45:15+00:00\n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -38,4 +38,4 @@ msgstr ""

#. Description of the plugin/theme
msgid "An ultra lightweight jQuery lightbox for WordPress images and galleries."
msgstr ""
msgstr ""
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"nameUscoreCam": "WP_Featherlight",
"nameCamel": "WPFeatherlight",
"nameCamelLow": "wpFeatherlight",
"version": "1.3.4",
"version": "1.3.5",
"copyright": "2020",
"license": "GPL-2.0+",
"private": true,
Expand Down
10 changes: 5 additions & 5 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
=== WP Featherlight - A Simple jQuery Lightbox ===

Contributors: fatmedia, cipherdevgroup, ozzyr
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
Requires at least: 4.0
Tested up to: 5.5.0
Stable tag: 1.3.4
License: GPL-2.0+
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
Requires at least: 4.0
Tested up to: 5.5.0
Stable tag: 1.3.5
License: GPL-2.0+

An ultra lightweight jQuery lightbox for WordPress images and galleries.

Expand Down
2 changes: 1 addition & 1 deletion wp-featherlight.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: WP Featherlight
* Plugin URI: https://wpfeatherlight.cipherdevelopment.com
* Description: An ultra lightweight jQuery lightbox for WordPress images and galleries.
* Version: 1.3.4
* Version: 1.3.5
* Author: Cipher
* Author URI: https://cipherdevelopment.com
* License: GPL-2.0+
Expand Down