Version Description
Download this release
Release Info
Developer | giucu91 |
Plugin | Gallery – Photo Gallery – Image Gallery |
Version | 2.3.5 |
Comparing to | |
See all releases |
Code changes from version 2.3.4 to 2.3.5
- Modula.php +2 -2
- README.txt +2 -2
- assets/css/admin/modula-cpt.css +4 -0
- assets/js/admin/wp-modula.js +1 -1
- changelog.txt +4 -0
- includes/admin/class-modula-cpt.php +0 -18
- includes/migrate/class-modula-importer.php +0 -19
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
|
@@ -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' );
|
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.5
|
8 |
* Author URI: https://www.machothemes.com/
|
9 |
* License: GPLv3 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
44 |
* @since 2.0.2
|
45 |
*/
|
46 |
|
47 |
+
define( 'MODULA_LITE_VERSION' , '2.3.5' );
|
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' );
|
README.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
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: 4.6
|
5 |
-
Tested up to: 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 |
|
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: 4.6
|
5 |
+
Tested up to: 5.5
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 2.3.5
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
assets/css/admin/modula-cpt.css
CHANGED
@@ -1571,6 +1571,10 @@ Scaling Effect Preview
|
|
1571 |
border-bottom: 1px solid #555;
|
1572 |
}
|
1573 |
|
|
|
|
|
|
|
|
|
1574 |
/**
|
1575 |
Some responsive fixes
|
1576 |
*/
|
1571 |
border-bottom: 1px solid #555;
|
1572 |
}
|
1573 |
|
1574 |
+
.modula-colorpickers .iris-border .iris-picker-inner {
|
1575 |
+
right:0;
|
1576 |
+
}
|
1577 |
+
|
1578 |
/**
|
1579 |
Some responsive fixes
|
1580 |
*/
|
assets/js/admin/wp-modula.js
CHANGED
@@ -51,7 +51,7 @@ jQuery( document ).ready( function( $ ){
|
|
51 |
$(this).next('span').text('Shortcode copied');
|
52 |
});
|
53 |
|
54 |
-
jQuery( '.modula-link input[name="link"]'
|
55 |
|
56 |
var url = modulaHelper.ajax_url + "?action=modula_autocomplete&nonce="+modulaHelper._wpnonce;
|
57 |
jQuery(this).autocomplete({
|
51 |
$(this).next('span').text('Shortcode copied');
|
52 |
});
|
53 |
|
54 |
+
jQuery( document ).on( "keydown.autocomplete", '.modula-link input[name="link"]', function() {
|
55 |
|
56 |
var url = modulaHelper.ajax_url + "?action=modula_autocomplete&nonce="+modulaHelper._wpnonce;
|
57 |
jQuery(this).autocomplete({
|
changelog.txt
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
1 |
= 2.3.4 - 11/08/2020 =
|
2 |
Small fixes
|
3 |
|
1 |
+
= 2.3.5 - 11/08/2020 =
|
2 |
+
WordPress 5.5 compatibility fixes
|
3 |
+
Small fixes
|
4 |
+
|
5 |
= 2.3.4 - 11/08/2020 =
|
6 |
Small fixes
|
7 |
|
includes/admin/class-modula-cpt.php
CHANGED
@@ -425,7 +425,6 @@ class Modula_CPT {
|
|
425 |
$date = $columns['date'];
|
426 |
unset( $columns['date'] );
|
427 |
$columns['shortcode'] = esc_html__( 'Shortcode', 'modula-best-grid-gallery' );
|
428 |
-
$columns['limit'] = esc_html__('Images', 'modula-best-grid-gallery');
|
429 |
$columns['date'] = $date;
|
430 |
return $columns;
|
431 |
|
@@ -441,23 +440,6 @@ class Modula_CPT {
|
|
441 |
echo '</div>';
|
442 |
}
|
443 |
|
444 |
-
if ( 'limit' == $column) {
|
445 |
-
$images = get_post_meta( $post_id, 'modula-images', true );
|
446 |
-
$images_count = is_array( $images ) ? count( $images ) : 0;
|
447 |
-
|
448 |
-
$padlock = '<svg id="padlock" style="margin:7px 12px 0 0; width:12px;position:relative;top:2px" viewBox="0 0 217.81886 310.38968" xmlns="http://www.w3.org/2000/svg">
|
449 |
-
<g transform="translate(-1550.3 -1495.4)">
|
450 |
-
<path d="m1659.3 1495.5c-0.9683 0.01-1.9372 0.021-2.9063 0.062-44.496 0.284-84.418 39.853-84.531 84.469-0.5035 10.517 0.1466 21.042 0.031 31.563h-21.438c0.5678 46.226-1.1556 92.56 0.9062 138.72 4.4359 29.724 31.126 56.603 62.25 55.156 34.078-0.066 68.262 1.0541 102.28-0.6876 31.934-5.5024 54.359-38.293 51.938-70.031 0.3669-41.041-0.035-82.083 0.125-123.12-7.1142-0.1818-14.23 0.139-21.344-0.094 0.5401-24.99 1.715-52.307-12.531-73.969-15.406-25.706-44.767-42.255-74.781-42.062zm0.4062 35.688c25.281 0.3463 50.259 21.283 49.531 47.625 0.5019 10.922 0.8363 21.85 1.0626 32.781-34.011-0.02-68.021 0.053-102.03-0.063 0.1057-17.098-4.4827-35.793 4.875-51.187 8.4966-16.311 25.48-28.793 44.125-29.125 0.8153-0.032 1.622-0.043 2.4375-0.031z" fill="#fff" opacity=".98"/>
|
451 |
-
<path d="m1657.1 1501.5c-44.13 1.1108-79.312 37.031-79.312 81.438v34.625h-21.344v117.75h0.031c-0.031 0.8505-0.031 1.7033-0.031 2.5625 0 34.197 25.051 61.719 56.187 61.719h93.094c31.136 0 56.219-27.522 56.219-61.719 0-0.859-0.032-1.7123-0.063-2.5625h0.063v-117.75h-21.313v-34.625c0-45.111-36.295-81.438-81.406-81.438-0.7049 0-1.4245-0.018-2.125 0zm-0.375 23.75c0.5355-0.013 1.0865 0 1.625 0 25.79-0.6025 51.139 18.477 56.406 43.812 0.8967 16.166 1.4017 32.319 1.6876 48.5h-114.31c-0.027-7.7372-0.063-15.456-0.2187-23.188-6.5279-33.085 21.075-68.332 54.812-69.125zm2.375 135.38c1.2168 0 2.4472 0.095 3.6875 0.2812 13.23 1.9847 22.36 14.301 20.375 27.531-0.9138 6.092-4.0565 11.334-8.4375 15l8.4688 53.094h-48l8.4374-53.094c-6.2414-5.2417-9.7038-13.536-8.4062-22.188 1.7986-11.99 12.112-20.593 23.875-20.625z" opacity=".98"/> </g></svg> ';
|
452 |
-
|
453 |
-
$image_limit = '<span>' . $images_count . ' / 20' . '</span>';
|
454 |
-
$image_limit = apply_filters( 'modula_output_image', $image_limit, $images_count );
|
455 |
-
|
456 |
-
echo $image_limit;
|
457 |
-
|
458 |
-
}
|
459 |
-
|
460 |
-
|
461 |
}
|
462 |
|
463 |
public function dismiss_edit_notice(){
|
425 |
$date = $columns['date'];
|
426 |
unset( $columns['date'] );
|
427 |
$columns['shortcode'] = esc_html__( 'Shortcode', 'modula-best-grid-gallery' );
|
|
|
428 |
$columns['date'] = $date;
|
429 |
return $columns;
|
430 |
|
440 |
echo '</div>';
|
441 |
}
|
442 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
443 |
}
|
444 |
|
445 |
public function dismiss_edit_notice(){
|
includes/migrate/class-modula-importer.php
CHANGED
@@ -377,16 +377,6 @@ class Modula_Importer {
|
|
377 |
// Title is escaped above
|
378 |
$html .= $title ;
|
379 |
|
380 |
-
|
381 |
-
|
382 |
-
if(20 < $count){
|
383 |
-
$lite = '<div class="tab-header-tooltip-container modula-tooltip"><span>[?]</span><div class="tab-header-description modula-tooltip-content">';
|
384 |
-
$lite .= esc_html__('You currently have ','modula-best-grid-gallery');
|
385 |
-
$lite .= absint($count);
|
386 |
-
$lite .= esc_html__(' images in your gallery and only 20 will be imported. If you want to import al, please buy the PRO version and import them after that. ','modula-best-grid-gallery');
|
387 |
-
$lite .= '</div></div>';
|
388 |
-
}
|
389 |
-
|
390 |
// Display text on LITE. On PRO version
|
391 |
$lite = apply_filters( 'modula_lite_migration_text', $lite );
|
392 |
$html .= $lite;
|
@@ -421,13 +411,10 @@ class Modula_Importer {
|
|
421 |
|
422 |
global $wpdb;
|
423 |
$images = array();
|
424 |
-
$limit = '20';
|
425 |
-
$limit = (int)apply_filters('modula_importer_migrate_limit',$limit);
|
426 |
|
427 |
switch ($source){
|
428 |
case 'envira':
|
429 |
$images = get_post_meta($data, '_eg_gallery_data', true);
|
430 |
-
$images = array_slice($images['gallery'],0,$limit,true);
|
431 |
break;
|
432 |
case 'nextgen':
|
433 |
// Get images from NextGEN Gallery
|
@@ -438,7 +425,6 @@ class Modula_Importer {
|
|
438 |
$data);
|
439 |
|
440 |
$images = $wpdb->get_results($sql);
|
441 |
-
$images = array_slice($images,0,$limit,true);
|
442 |
break;
|
443 |
case 'final_tiles':
|
444 |
// Seems like on some servers tables are saved lowercase
|
@@ -449,7 +435,6 @@ class Modula_Importer {
|
|
449 |
ORDER BY 'setOrder' ASC",
|
450 |
$data);
|
451 |
$images = $wpdb->get_results($sql);
|
452 |
-
$images = array_slice($images,0,$limit,true);
|
453 |
}
|
454 |
|
455 |
if ($wpdb->get_var("SHOW TABLES LIKE '" . $wpdb->prefix . "FinalTiles_gallery'")) {
|
@@ -459,7 +444,6 @@ class Modula_Importer {
|
|
459 |
ORDER BY 'setOrder' ASC",
|
460 |
$data);
|
461 |
$images = $wpdb->get_results($sql);
|
462 |
-
$images = array_slice($images,0,$limit,true);
|
463 |
}
|
464 |
break;
|
465 |
case 'photoblocks':
|
@@ -469,17 +453,14 @@ class Modula_Importer {
|
|
469 |
$data);
|
470 |
$gallery = $wpdb->get_row($sql);
|
471 |
$blocks = json_decode($gallery->blocks);
|
472 |
-
$blocks = array_slice($blocks,0,$limit,true);
|
473 |
$gallery->blocks = json_encode($blocks);
|
474 |
$images = $gallery;
|
475 |
break;
|
476 |
case 'wp_core':
|
477 |
$images = explode(',', $data);
|
478 |
-
$images = array_slice($images,0,$limit,true);
|
479 |
break;
|
480 |
case 'foogallery':
|
481 |
$images = get_post_meta($data, 'foogallery_attachments', true);
|
482 |
-
$images = array_slice($images,0,$limit,true);
|
483 |
break;
|
484 |
|
485 |
}
|
377 |
// Title is escaped above
|
378 |
$html .= $title ;
|
379 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
380 |
// Display text on LITE. On PRO version
|
381 |
$lite = apply_filters( 'modula_lite_migration_text', $lite );
|
382 |
$html .= $lite;
|
411 |
|
412 |
global $wpdb;
|
413 |
$images = array();
|
|
|
|
|
414 |
|
415 |
switch ($source){
|
416 |
case 'envira':
|
417 |
$images = get_post_meta($data, '_eg_gallery_data', true);
|
|
|
418 |
break;
|
419 |
case 'nextgen':
|
420 |
// Get images from NextGEN Gallery
|
425 |
$data);
|
426 |
|
427 |
$images = $wpdb->get_results($sql);
|
|
|
428 |
break;
|
429 |
case 'final_tiles':
|
430 |
// Seems like on some servers tables are saved lowercase
|
435 |
ORDER BY 'setOrder' ASC",
|
436 |
$data);
|
437 |
$images = $wpdb->get_results($sql);
|
|
|
438 |
}
|
439 |
|
440 |
if ($wpdb->get_var("SHOW TABLES LIKE '" . $wpdb->prefix . "FinalTiles_gallery'")) {
|
444 |
ORDER BY 'setOrder' ASC",
|
445 |
$data);
|
446 |
$images = $wpdb->get_results($sql);
|
|
|
447 |
}
|
448 |
break;
|
449 |
case 'photoblocks':
|
453 |
$data);
|
454 |
$gallery = $wpdb->get_row($sql);
|
455 |
$blocks = json_decode($gallery->blocks);
|
|
|
456 |
$gallery->blocks = json_encode($blocks);
|
457 |
$images = $gallery;
|
458 |
break;
|
459 |
case 'wp_core':
|
460 |
$images = explode(',', $data);
|
|
|
461 |
break;
|
462 |
case 'foogallery':
|
463 |
$images = get_post_meta($data, 'foogallery_attachments', true);
|
|
|
464 |
break;
|
465 |
|
466 |
}
|