PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.16
Yatra – Travel Booking & Tour Operator Software v3.0.16
3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 All 84 releases
← All changes | templates/partials/single-trip/content-gallery.php +24 -4 3.0.3 → 3.0.16 View file →
@@ -20,16 +20,36 @@
20 20 foreach ($gallery_images as $index => $image) :
21 21 ?>
22 22 <div class="yatra-gallery-item" data-image-index="<?php echo esc_attr($index); ?>" itemscope itemtype="https://schema.org/ImageObject">
23 23 <img src="<?php echo esc_url($image); ?>"
24 - alt="<?php echo esc_attr(sprintf(__('Photo %d of %s trip gallery', 'yatra'), $index + 1, $trip->getTitle())); ?>"
25 - title="<?php echo esc_attr(sprintf(__('Photo %d - %s', 'yatra'), $index + 1, $trip->getTitle())); ?>"
24 + alt="<?php echo esc_attr(sprintf(
25 + /* translators: 1: photo number, 2: trip title. */
26 + __('Photo %1$d of %2$s trip gallery', 'yatra'),
27 + $index + 1,
28 + $trip->getTitle()
29 + )); ?>"
30 + title="<?php echo esc_attr(sprintf(
31 + /* translators: 1: photo number, 2: trip title. */
32 + __('Photo %1$d - %2$s', 'yatra'),
33 + $index + 1,
34 + $trip->getTitle()
35 + )); ?>"
26 36 itemprop="url" content="<?php echo esc_url($image); ?>"
27 37 data-yatra-src="<?php echo esc_url($image); ?>"
28 38 data-no-lazy="1">
29 39 <meta itemprop="contentUrl" content="<?php echo esc_url($image); ?>">
30 - <meta itemprop="name" content="<?php echo esc_attr(sprintf(__('Photo %d - %s', 'yatra'), $index + 1, $trip->getTitle())); ?>">
31 - <meta itemprop="description" content="<?php echo esc_attr(sprintf(__('Photo %d from the %s trip gallery', 'yatra'), $index + 1, $trip->getTitle())); ?>">
40 + <meta itemprop="name" content="<?php echo esc_attr(sprintf(
41 + /* translators: 1: photo number, 2: trip title. */
42 + __('Photo %1$d - %2$s', 'yatra'),
43 + $index + 1,
44 + $trip->getTitle()
45 + )); ?>">
46 + <meta itemprop="description" content="<?php echo esc_attr(sprintf(
47 + /* translators: 1: photo number, 2: trip title. */
48 + __('Photo %1$d from the %2$s trip gallery', 'yatra'),
49 + $index + 1,
50 + $trip->getTitle()
51 + )); ?>">
32 52 <meta itemprop="position" content="<?php echo $index + 1; ?>">
33 53 <meta itemprop="encodingFormat" content="image/jpeg">
34 54 </div>
35 55 <?php