Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Product Gallery Thumbnails: Fix #11099 - Enable the dialog for the Vi…
Browse files Browse the repository at this point in the history
…ew all thumbnails overlay even when the 'Full-screen when clicked' setting is disabled
  • Loading branch information
danieldudzic committed Oct 9, 2023
1 parent 624035d commit bb719e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BlockTypes/ProductGallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ protected function render( $attributes, $content, $block ) {

$number_of_thumbnails = $block->attributes['thumbnailsNumberOfThumbnails'] ?? 0;
$classname = $attributes['className'] ?? '';
$dialog = ( true === $attributes['fullScreenOnClick'] && isset( $attributes['mode'] ) && 'full' !== $attributes['mode'] ) ? $this->render_dialog() : '';
$dialog = isset( $attributes['mode'] ) && 'full' !== $attributes['mode'] ? $this->render_dialog() : '';
$post_id = $block->context['postId'] ?? '';
$product = wc_get_product( $post_id );

Expand Down

0 comments on commit bb719e8

Please sign in to comment.