Version Description
Download this release
Release Info
Developer | giucu91 |
Plugin | Gallery – Photo Gallery – Image Gallery |
Version | 2.3.6 |
Comparing to | |
See all releases |
Code changes from version 2.3.5 to 2.3.6
Modula.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://wp-modula.com/
|
5 |
* Description: Modula is the most powerful, user-friendly WordPress gallery plugin. Add galleries, masonry grids and more in a few clicks.
|
6 |
* Author: MachoThemes
|
7 |
-
* Version: 2.3.
|
8 |
* Author URI: https://www.machothemes.com/
|
9 |
* License: GPLv3 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -13,7 +13,7 @@
|
|
13 |
* Domain Path: /languages
|
14 |
*
|
15 |
* Copyright 2015-2017 GreenTreeLabs diego@greentreelabs.net
|
16 |
-
* Copyright 2017-2019 MachoThemes
|
17 |
*
|
18 |
* Original Plugin URI: https://modula.greentreelabs.net/
|
19 |
* Original Author URI: https://greentreelabs.net
|
@@ -44,7 +44,7 @@
|
|
44 |
* @since 2.0.2
|
45 |
*/
|
46 |
|
47 |
-
define( 'MODULA_LITE_VERSION' , '2.3.
|
48 |
define( 'MODULA_PATH' , plugin_dir_path( __FILE__ ) );
|
49 |
define( 'MODULA_URL' , plugin_dir_url( __FILE__ ) );
|
50 |
defined( 'MODULA_PRO_STORE_URL' ) || define( 'MODULA_PRO_STORE_URL' , 'https://wp-modula.com' );
|
@@ -85,4 +85,4 @@ function modula_run() {
|
|
85 |
|
86 |
}
|
87 |
|
88 |
-
modula_run();
|
4 |
* Plugin URI: https://wp-modula.com/
|
5 |
* Description: Modula is the most powerful, user-friendly WordPress gallery plugin. Add galleries, masonry grids and more in a few clicks.
|
6 |
* Author: MachoThemes
|
7 |
+
* Version: 2.3.6
|
8 |
* Author URI: https://www.machothemes.com/
|
9 |
* License: GPLv3 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
13 |
* Domain Path: /languages
|
14 |
*
|
15 |
* Copyright 2015-2017 GreenTreeLabs diego@greentreelabs.net
|
16 |
+
* Copyright 2017-2019 MachoThemes hello@wp-modula.com
|
17 |
*
|
18 |
* Original Plugin URI: https://modula.greentreelabs.net/
|
19 |
* Original Author URI: https://greentreelabs.net
|
44 |
* @since 2.0.2
|
45 |
*/
|
46 |
|
47 |
+
define( 'MODULA_LITE_VERSION' , '2.3.6' );
|
48 |
define( 'MODULA_PATH' , plugin_dir_path( __FILE__ ) );
|
49 |
define( 'MODULA_URL' , plugin_dir_url( __FILE__ ) );
|
50 |
defined( 'MODULA_PRO_STORE_URL' ) || define( 'MODULA_PRO_STORE_URL' , 'https://wp-modula.com' );
|
85 |
|
86 |
}
|
87 |
|
88 |
+
modula_run();
|
README.txt
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
-
=== Modula Image Gallery ===
|
2 |
Contributors: machothemes, silkalns
|
3 |
Tags: best gallery plugin, image gallery, photo gallery, responsive gallery, wordpress gallery plugin, wordpress portfolio plugin, masonry gallery, fancy gallery, media gallery, mosaic gallery, polaroid gallery, portfolio gallery
|
4 |
-
Requires at least:
|
5 |
Tested up to: 5.5
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 2.3.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
-
|
11 |
-
|
12 |
|
13 |
== Description ==
|
14 |
|
1 |
+
=== Customizable WordPress Gallery Plugin - Modula Image Gallery ===
|
2 |
Contributors: machothemes, silkalns
|
3 |
Tags: best gallery plugin, image gallery, photo gallery, responsive gallery, wordpress gallery plugin, wordpress portfolio plugin, masonry gallery, fancy gallery, media gallery, mosaic gallery, polaroid gallery, portfolio gallery
|
4 |
+
Requires at least: 5.2
|
5 |
Tested up to: 5.5
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 2.3.6
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
+
|
11 |
+
A highly Customizable WordPress gallery plugin that you can use to impress your clients. Create beautiful image galleries in minutes.
|
12 |
|
13 |
== Description ==
|
14 |
|
assets/js/admin/modula-elementor-preview.js
CHANGED
@@ -1,22 +1,21 @@
|
|
1 |
-
jQuery(function ($) {
|
|
|
2 |
|
3 |
-
|
|
|
4 |
|
5 |
-
|
|
|
|
|
|
|
6 |
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
if ( modulaInstance ) {
|
13 |
-
modulaInstance.destroy();
|
14 |
-
jQuery( '#' + galleryID ).data( 'plugin_modulaGallery', null );
|
15 |
-
}
|
16 |
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
});
|
1 |
+
jQuery( function ( $ ) {
|
2 |
+
jQuery( window ).on( 'elementor/frontend/init', () => {
|
3 |
|
4 |
+
elementorFrontend.hooks.addAction( 'frontend/element_ready/modula_elementor_gallery.default', function ( $scope ) {
|
5 |
+
var $gallery = $scope.find( '.modula-gallery' );
|
6 |
|
7 |
+
if ( $gallery.length > 0 ) {
|
8 |
+
var galleryID = $gallery.attr( 'id' ),
|
9 |
+
modulaSettings = $gallery.data( 'config' ),
|
10 |
+
modulaInstance = jQuery( '#' + galleryID ).data( 'plugin_modulaGallery' );
|
11 |
|
12 |
+
if ( modulaInstance ) {
|
13 |
+
modulaInstance.destroy();
|
14 |
+
jQuery( '#' + galleryID ).data( 'plugin_modulaGallery', null );
|
15 |
+
}
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
+
jQuery( '#' + galleryID ).modulaGallery( modulaSettings );
|
18 |
+
}
|
19 |
+
} );
|
20 |
+
} );
|
21 |
+
} );
|
|
changelog.txt
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
1 |
= 2.3.5 - 11/08/2020 =
|
2 |
WordPress 5.5 compatibility fixes
|
3 |
Small fixes
|
1 |
+
= 2.3.6 - 18/08/2020 =
|
2 |
+
Fixed compatibility with WordPress 5.5 and Elementor plugin - thanks to @CRdeGraaf
|
3 |
+
Fixed WP Core galleries migrate when there are multiple atts to WP Core Gallery
|
4 |
+
|
5 |
= 2.3.5 - 11/08/2020 =
|
6 |
WordPress 5.5 compatibility fixes
|
7 |
Small fixes
|
includes/migrate/wp-core-gallery/class-modula-wp-core-gallery-importer.php
CHANGED
@@ -138,7 +138,7 @@ class Modula_WP_Core_Gallery_Importer {
|
|
138 |
|
139 |
foreach ($matches[0] as $sc) {
|
140 |
$modula_images = array();
|
141 |
-
$pattern = '
|
142 |
$result = preg_match($pattern, $sc, $gallery_ids);
|
143 |
$image_ids = $modula_importer->prepare_images('wp_core',$gallery_ids[1]);
|
144 |
$gallery_image_ids = $gallery_ids[0];
|
138 |
|
139 |
foreach ($matches[0] as $sc) {
|
140 |
$modula_images = array();
|
141 |
+
$pattern = '/\s\ids\s*=\s*\"([\s\S]*?)\"/';
|
142 |
$result = preg_match($pattern, $sc, $gallery_ids);
|
143 |
$image_ids = $modula_importer->prepare_images('wp_core',$gallery_ids[1]);
|
144 |
$gallery_image_ids = $gallery_ids[0];
|