PluginProbe
Property Hive / 2.4.0
Property Hive v2.4.0
2.4.0 2.3.1 2.3.0 2.2.6 2.2.5 2.2.4 2.2.3 2.2.2 1.4.46 1.4.47 1.4.48 1.4.49 1.4.5 1.4.50 1.4.51 1.4.52 1.4.53 1.4.54 1.4.55 1.4.56 1.4.57 1.4.58 1.4.59 1.4.6 1.4.60 All 262 releases
← All changes | includes/elementor-widgets/property-gallery.php +14 -4 2.2.2 → 2.4.0 View file →
@@ -224,9 +224,9 @@
224 224 ?>
225 225 .gallery-column > a {
226 226 display:block;
227 227 height:100%;
228 - padding-top:<?php echo $padding_top; ?>;
228 + padding-top:<?php echo esc_attr( $padding_top ); ?>;
229 229 background:center center no-repeat;
230 230 background-size:cover;
231 231 }
232 232
@@ -314,20 +314,29 @@
314 314 {
315 315 $id_text = $image_number == ($max_images - 1) ? 'id="more-images-link"' : '';
316 316 $id_text_mobile = $image_number == 1 ? 'id="more-images-link-mobile"' : '';
317 317
318 + // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Both ID attribute fragments are fixed plugin literals, including their quotes.
318 319 echo '<a ' . $id_text . ' ' . $id_text_mobile . ' href="' . esc_url($images[$image_number]['url']) . '" data-fancybox="elementor-gallery" style="background-image:url(' . esc_url($images[$image_number]['url']) . ')"></a>';
319 320
320 321 if ( $image_number == 1 )
321 322 {
322 323 echo '<div class="more-images-container mobile"><div class="more-images"><a href="javascript:;" onclick="openGallery();">';
323 - printf( __( 'See all %d images', 'propertyhive' ), count($images) + count($images_hidden) );
324 + printf(
325 + /* translators: %d: number of images (1, 2, 3 etc) */
326 + esc_html__( 'See all %d images', 'propertyhive' ),
327 + count($images) + count($images_hidden)
328 + );
324 329 echo '</a></div></div>';
325 330 }
326 331 if ( $image_number == ($max_images - 1) )
327 332 {
328 333 echo '<div class="more-images-container desktop"><div class="more-images"><a href="javascript:;" onclick="openGallery();">';
329 - printf( __( 'See all %d images', 'propertyhive' ), count($images) + count($images_hidden) );
334 + printf(
335 + /* translators: %d: number of images (1, 2, 3 etc) */
336 + esc_html__( 'See all %d images', 'propertyhive' ),
337 + count($images) + count($images_hidden)
338 + );
330 339 echo '</a></div></div>';
331 340 }
332 341 }
333 342
@@ -342,10 +351,11 @@
342 351 ++$image_number;
343 352 }
344 353
345 354 // Code second layout, for one main photo
346 - }
355 +
347 356 ?>
348 357 </div>
349 358 <?php
359 + }
350 360 }
351 361 }