| @@ -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,8 +314,9 @@ | ||
| 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 | { |
| @@ -321,9 +322,9 @@ | ||
| 321 | 322 | { |
| 322 | 323 | echo '<div class="more-images-container mobile"><div class="more-images"><a href="javascript:;" onclick="openGallery();">'; |
| 323 | 324 | printf( |
| 324 | 325 | /* translators: %d: number of images (1, 2, 3 etc) */ |
| 325 | - __( 'See all %d images', 'propertyhive' ), | |
| 326 | + esc_html__( 'See all %d images', 'propertyhive' ), | |
| 326 | 327 | count($images) + count($images_hidden) |
| 327 | 328 | ); |
| 328 | 329 | echo '</a></div></div>'; |
| 329 | 330 | } |
| @@ -331,9 +332,9 @@ | ||
| 331 | 332 | { |
| 332 | 333 | echo '<div class="more-images-container desktop"><div class="more-images"><a href="javascript:;" onclick="openGallery();">'; |
| 333 | 334 | printf( |
| 334 | 335 | /* translators: %d: number of images (1, 2, 3 etc) */ |
| 335 | - __( 'See all %d images', 'propertyhive' ), | |
| 336 | + esc_html__( 'See all %d images', 'propertyhive' ), | |
| 336 | 337 | count($images) + count($images_hidden) |
| 337 | 338 | ); |
| 338 | 339 | echo '</a></div></div>'; |
| 339 | 340 | } |
| @@ -350,10 +351,11 @@ | ||
| 350 | 351 | ++$image_number; |
| 351 | 352 | } |
| 352 | 353 | |
| 353 | 354 | // Code second layout, for one main photo |
| 354 | - } | |
| 355 | + | |
| 355 | 356 | ?> |
| 356 | 357 | </div> |
| 357 | 358 | <?php |
| 359 | + } | |
| 358 | 360 | } |
| 359 | 361 | } |