diff --git a/readme.txt b/readme.txt index 89e5e150..f8081d01 100644 --- a/readme.txt +++ b/readme.txt @@ -322,6 +322,7 @@ __WARNING: GDv2 is a significant update over GDv1 and may require manual work, s = GeoDirectory v2.8.91 - TBD = * Multiple maps on the page shows JavaScript error - FIXED * A-Z Search links don't removes page params on paginated links - FIXED +* GD > Post Images option "Show limit" uses incorrect width for first slide on mobile - FIXED = GeoDirectory v2.3.90 - 2024-11-30 = * Load scripts on call feature can break block theme add listing page map - FIXED diff --git a/templates/bootstrap/images/images.php b/templates/bootstrap/images/images.php index 65ec22ba..69e2b4eb 100644 --- a/templates/bootstrap/images/images.php +++ b/templates/bootstrap/images/images.php @@ -12,7 +12,7 @@ * * @see https://docs.wpgeodirectory.com/article/346-customizing-templates/ * @package GeoDirectory/Templates - * @version 2.3.60 + * @version 2.8.91 */ defined( 'ABSPATH' ) || exit; @@ -45,7 +45,7 @@ * @var string $responsive_image_class */ -global $gd_post, $aui_bs5, $geodir_carousel_open; +global $ayecode_ui_settings, $gd_post, $aui_bs5, $geodir_carousel_open; $the_post = $gd_post; @@ -69,14 +69,6 @@ 0 && $limit_show > $image_total ) { @@ -85,6 +77,17 @@ $image_count = 0; $max_width_percent = $limit_show ? 100 / absint( $limit_show ) : ''; + $inner_wrapper_class = ''; + + if ( $type == 'slider' || $type == 'image' ) { + $inner_wrapper_class = ( ! $geodir_carousel_open ? 'carousel-inner ' : '' ); + + if ( $max_width_percent > 0 && ! ( ! empty( $ayecode_ui_settings ) && is_callable( array( $ayecode_ui_settings, 'is_block_editor' ) ) && ( $ayecode_ui_settings->is_block_editor() || $ayecode_ui_settings->is_block_content_call() ) ) ) { + $max_width_percent = ''; + } + } else if ( $type == 'gallery' || $type == 'masonry' ) { + $inner_wrapper_class = 'row row-cols-1 row-cols-md-3 g-2'; + } // Image cover class if ( $type == 'masonry' ) { @@ -112,9 +115,9 @@ if ( $type == 'slider' || $type == 'image' ) { if ( $geodir_carousel_open ) { - echo '