Plugin Directory

Changeset 3487079


Ignore:
Timestamp:
03/20/2026 09:30:36 AM (2 weeks ago)
Author:
wpchill
Message:

Update to version 2.14.22 from GitHub

Location:
modula-best-grid-gallery
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • modula-best-grid-gallery/tags/2.14.22/Modula.php

    r3483892 r3487079  
    55* Description:              Modula is the most powerful, user-friendly WordPress gallery plugin. Add galleries, masonry grids and more in a few clicks.
    66* Author:                   WPChill
    7 * Version:                  2.14.21
     7* Version:                  2.14.22
    88* Author URI:               https://www.wpchill.com/
    99* License:                  GPLv3 or later
     
    4848 */
    4949
    50 define( 'MODULA_LITE_VERSION', '2.14.21' );
     50define( 'MODULA_LITE_VERSION', '2.14.22' );
    5151define( 'MODULA_PATH', plugin_dir_path( __FILE__ ) );
    5252define( 'MODULA_URL', plugin_dir_url( __FILE__ ) );
  • modula-best-grid-gallery/tags/2.14.22/changelog.txt

    r3483892 r3487079  
     1= 2.14.22 - 20.03.2026 =
     2Fixed: No srcset for cropped images.
     3
    14= 2.14.21 - 16.03.2026 =
    25Fixed: JavaScript error in image edit screen.
  • modula-best-grid-gallery/tags/2.14.22/includes/core/compatibility/class-modula-backward-compatibility.php

    r3458934 r3487079  
    749749    public function backward_compatibility_front_social_icons_collapsed( $settings ) {
    750750
    751         if ( ! isset( $settings['socialDesktopCollapsed'] ) ) {
     751        if ( is_array( $settings ) && ! isset( $settings['socialDesktopCollapsed'] ) ) {
    752752            $settings['socialDesktopCollapsed'] = 0;
    753753        }
  • modula-best-grid-gallery/tags/2.14.22/includes/public/helpers/modula-helper-functions.php

    r3454697 r3487079  
    316316    }
    317317
     318    if ( isset( $data->gallery_type ) && 'slider' === $data->gallery_type && isset( $data->img_attributes['crop'] ) && $data->img_attributes['crop'] ) {
     319        echo $image;
     320        return;
     321    }
     322
    318323    $image_meta = array();
    319324    // Get the imag meta
  • modula-best-grid-gallery/tags/2.14.22/includes/public/templates/modula-gallery.php

    r3454697 r3487079  
    2727            // Check per gallery & per image if we should show title.
    2828            $should_hide_title = ( boolval( $data->settings['hide_title'] ) || ( isset( $image['hide_title'] ) && boolval( $image['hide_title'] ) ) );
     29            $is_slider         = isset( $data->settings['slider_image_crop'] );
     30            $custom_size       = $is_slider ? 'custom' === $data->settings['slider_image_size'] : 'custom' === $data->settings['grid_image_size'];
     31            $crop              = $is_slider ? boolval( $data->settings['slider_image_crop'] ) : boolval( $data->settings['grid_image_crop'] );
    2932
    3033            // Create array with data in order to send it to image template
     
    4750                'socialDesktopCollapsed' => boolval( $data->settings['socialDesktopCollapsed'] ),
    4851                'lazyLoad'               => modula_run_lazy_load( $data->settings ),
     52                'gallery_type'           => $data->settings['type'],
    4953                // Video defaults (some extensions expect these properties to exist).
    5054                'video_template'         => false,
     
    7579                    'data-full'   => $full_img_src,
    7680                    'title'       => isset( $image['title'] ) ? $image['title'] : '',
     81                    'crop'        => $custom_size && $crop,
    7782                ),
    7883                'social_attributes'      => array(
  • modula-best-grid-gallery/tags/2.14.22/readme.txt

    r3483892 r3487079  
    55Tested up to: 6.9
    66Requires PHP: 5.6
    7 Stable tag: 2.14.21
     7Stable tag: 2.14.22
    88
    99License: GNU General Public License v3.0 or later 
     
    326326
    327327== Changelog ==
     328= 2.14.22 - 20.03.2026 =
     329Fixed: No srcset for cropped images.
     330
    328331= 2.14.21 - 16.03.2026 =
    329332Fixed: JavaScript error in image edit screen.
  • modula-best-grid-gallery/trunk/Modula.php

    r3483892 r3487079  
    55* Description:              Modula is the most powerful, user-friendly WordPress gallery plugin. Add galleries, masonry grids and more in a few clicks.
    66* Author:                   WPChill
    7 * Version:                  2.14.21
     7* Version:                  2.14.22
    88* Author URI:               https://www.wpchill.com/
    99* License:                  GPLv3 or later
     
    4848 */
    4949
    50 define( 'MODULA_LITE_VERSION', '2.14.21' );
     50define( 'MODULA_LITE_VERSION', '2.14.22' );
    5151define( 'MODULA_PATH', plugin_dir_path( __FILE__ ) );
    5252define( 'MODULA_URL', plugin_dir_url( __FILE__ ) );
  • modula-best-grid-gallery/trunk/changelog.txt

    r3483892 r3487079  
     1= 2.14.22 - 20.03.2026 =
     2Fixed: No srcset for cropped images.
     3
    14= 2.14.21 - 16.03.2026 =
    25Fixed: JavaScript error in image edit screen.
  • modula-best-grid-gallery/trunk/includes/core/compatibility/class-modula-backward-compatibility.php

    r3458934 r3487079  
    749749    public function backward_compatibility_front_social_icons_collapsed( $settings ) {
    750750
    751         if ( ! isset( $settings['socialDesktopCollapsed'] ) ) {
     751        if ( is_array( $settings ) && ! isset( $settings['socialDesktopCollapsed'] ) ) {
    752752            $settings['socialDesktopCollapsed'] = 0;
    753753        }
  • modula-best-grid-gallery/trunk/includes/public/helpers/modula-helper-functions.php

    r3454697 r3487079  
    316316    }
    317317
     318    if ( isset( $data->gallery_type ) && 'slider' === $data->gallery_type && isset( $data->img_attributes['crop'] ) && $data->img_attributes['crop'] ) {
     319        echo $image;
     320        return;
     321    }
     322
    318323    $image_meta = array();
    319324    // Get the imag meta
  • modula-best-grid-gallery/trunk/includes/public/templates/modula-gallery.php

    r3454697 r3487079  
    2727            // Check per gallery & per image if we should show title.
    2828            $should_hide_title = ( boolval( $data->settings['hide_title'] ) || ( isset( $image['hide_title'] ) && boolval( $image['hide_title'] ) ) );
     29            $is_slider         = isset( $data->settings['slider_image_crop'] );
     30            $custom_size       = $is_slider ? 'custom' === $data->settings['slider_image_size'] : 'custom' === $data->settings['grid_image_size'];
     31            $crop              = $is_slider ? boolval( $data->settings['slider_image_crop'] ) : boolval( $data->settings['grid_image_crop'] );
    2932
    3033            // Create array with data in order to send it to image template
     
    4750                'socialDesktopCollapsed' => boolval( $data->settings['socialDesktopCollapsed'] ),
    4851                'lazyLoad'               => modula_run_lazy_load( $data->settings ),
     52                'gallery_type'           => $data->settings['type'],
    4953                // Video defaults (some extensions expect these properties to exist).
    5054                'video_template'         => false,
     
    7579                    'data-full'   => $full_img_src,
    7680                    'title'       => isset( $image['title'] ) ? $image['title'] : '',
     81                    'crop'        => $custom_size && $crop,
    7782                ),
    7883                'social_attributes'      => array(
  • modula-best-grid-gallery/trunk/readme.txt

    r3483892 r3487079  
    55Tested up to: 6.9
    66Requires PHP: 5.6
    7 Stable tag: 2.14.21
     7Stable tag: 2.14.22
    88
    99License: GNU General Public License v3.0 or later 
     
    326326
    327327== Changelog ==
     328= 2.14.22 - 20.03.2026 =
     329Fixed: No srcset for cropped images.
     330
    328331= 2.14.21 - 16.03.2026 =
    329332Fixed: JavaScript error in image edit screen.
Note: See TracChangeset for help on using the changeset viewer.