Skip to content

Commit

Permalink
v 3.17.1
Browse files Browse the repository at this point in the history
Quickfixes to swiper-init JS.
  • Loading branch information
Darklg committed Sep 18, 2024
1 parent 39097c5 commit 0a49443
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion js/libs/swiper-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ function wputheme_swiper_init($element, _settings) {

/* Add element class */
$element.classList.add('swiper-wrapper');
Array.prototype.forEach.call($element.classList, function(_class) {
$swiper.classList.add('wrapper__' + _class);
});

/* Add slides classes */
Array.prototype.forEach.call($element.children, function($slide) {
Expand All @@ -56,5 +59,6 @@ function wputheme_swiper_init($element, _settings) {
$swiper.appendChild($utils);

/* Init swiper */
new Swiper($swiper, _settings);
var _swiper = new Swiper($swiper, _settings);
return _swiper;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wputheme",
"version": "3.17.0",
"version": "3.17.1",
"description": "WPUTheme",
"devDependencies": {
"gulp": "^4.0.2",
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Theme Name: WP Utilities Base Theme
Theme URI: https://github.com/WordPressUtilities/WPUTheme
Update URI: https://github.com/WordPressUtilities/WPUTheme
Description: A Framework WordPress Theme
Version: 3.17.0
Version: 3.17.1
Author: Darklg
Author URI: https://darklg.me/
License: GPLv2 or later
Expand Down

0 comments on commit 0a49443

Please sign in to comment.