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

2.11.3 #1145

Merged
merged 13 commits into from
Nov 27, 2024
4 changes: 2 additions & 2 deletions Modula.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: https://wp-modula.com/
* Description: Modula is the most powerful, user-friendly WordPress gallery plugin. Add galleries, masonry grids and more in a few clicks.
* Author: WPChill
* Version: 2.11.2
* Version: 2.11.3
* Author URI: https://www.wpchill.com/
* License: GPLv3 or later
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
Expand Down Expand Up @@ -47,7 +47,7 @@
* @since 2.0.2
*/

define( 'MODULA_LITE_VERSION', '2.11.2' );
define( 'MODULA_LITE_VERSION', '2.11.3' );
define( 'MODULA_PATH', plugin_dir_path( __FILE__ ) );
define( 'MODULA_URL', plugin_dir_url( __FILE__ ) );
defined( 'MODULA_PRO_STORE_URL' ) || define( 'MODULA_PRO_STORE_URL', 'https://wp-modula.com' );
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '1497c3d7b5e7f9e39328');
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '2b99bd8c07dd045879b3');
2 changes: 1 addition & 1 deletion assets/js/admin/notification-system/notification-system.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions assets/js/admin/wp-modula-gutenberg.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,8 @@ var ModulaGalleryImage = function ModulaGalleryImage(props) {
};
return /*#__PURE__*/React.createElement("div", {
className: itemClassNames,
"data-width": img['data-width'] ? img['data-width'] : '2',
"data-height": img['data-height'] ? img['data-height'] : '2'
"data-width": settings.type !== 'slider' ? img['data-width'] ? img['data-width'] : '2' : undefined,
"data-height": settings.type !== 'slider' ? img['data-height'] ? img['data-height'] : '2' : undefined
}, /*#__PURE__*/React.createElement("div", {
className: "modula-item-overlay"
}), /*#__PURE__*/React.createElement("div", {
Expand Down
3 changes: 3 additions & 0 deletions assets/js/front/modula-fancybox.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ var modulaFancybox = {
opts.on['*'] = function (fancybox, eventName) {
// replace . from event name with _ and set custom event.
jQuery(document).trigger('modula_fancybox_' + eventName.replace(/\./g, '_'), [fancybox, this]);
// Create custom event for vanilla JS
var event = new CustomEvent('modula_fancybox_' + eventName.replace(/\./g, '_'), { detail: { fancybox: fancybox, instance: this } });
document.dispatchEvent(event);
};

// Slide pause on hover event
Expand Down
4 changes: 2 additions & 2 deletions assets/src/js/components/ModulaGalleryImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ const ModulaGalleryImage = (props) => {
return (
<div
className={itemClassNames}
data-width={img['data-width'] ? img['data-width'] : '2'}
data-height={img['data-height'] ? img['data-height'] : '2'}
data-width={settings.type !== 'slider' ? (img['data-width'] ? img['data-width'] : '2') : undefined}
data-height={settings.type !== 'slider' ? (img['data-height'] ? img['data-height'] : '2') : undefined}
>
<div className="modula-item-overlay" />
<div className="modula-item-content">
Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
== Changelog ==
= 2.11.3 - TBA =
Fixed: PHP Warning
Fixed: Gallery item has data-width and data-height on non-required gallery types

= 2.11.2 - 20.11.2024 =
Added: Increased functionality for sanitization of gallery settings.

Expand Down
2 changes: 1 addition & 1 deletion includes/class-modula-backward-compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public function backward_compatibility_backbone_thumb_size( $settings ) {

public function modula_fancybox_5_settings_matcher( $options, $settings ) {

if ( ! isset( $options['mainClass'] ) ) {
if ( ! isset( $options['mainClass'] ) && isset( $settings['gallery_id'] ) ) {
$options['mainClass'] = 'modula-fancybox-container modula-lightbox-' . $settings['gallery_id'];
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "modula-best-grid-gallery",
"version": "2.11.2",
"version": "2.11.3",
"description": "Modula Image Gallery build tools",
"author": "WPChill",
"license": "GPL-2.0-or-later",
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: best gallery plugin, image gallery, video gallery, free gallery, wordpress
Requires at least: 5.3
Tested up to: 6.7
Requires PHP: 5.6
Stable tag: 2.11.2
Stable tag: 2.11.3

License: GNU General Public License v3.0 or later
The WordPress gallery plugin that's highly customizable & you can use to impress your clients. Create beautiful image galleries in minutes.
Expand Down Expand Up @@ -158,6 +158,10 @@ Free support is included only with a PRO license: [Buy Modula PRO](https://wp-mo
4. Responsive galleries created with Modula

== Changelog ==
= 2.11.3 - TBA =
Fixed: PHP Warning
Fixed: Gallery item has data-width and data-height on non-required gallery types

= 2.11.2 - 20.11.2024 =
Added: Increased functionality for sanitization of gallery settings.

Expand Down