|
2 | 2 | data-next="{translations.next}" |
3 | 3 | data-previous="{translations.previous}"> |
4 | 4 | {#rows} |
5 | | - <a href="{image.sizes.fullhd}" |
6 | | - data-preview="{image.sizes.medium}" |
7 | | - data-gallery="{gallery_id}" |
8 | | - data-modal-button |
9 | | - aria-controls="{gallery_id}" |
10 | | - data-caption="{caption}" |
11 | | - data-author="{author_name}" |
12 | | - data-image_title_and_artist="{image_title_and_artist}" |
13 | | - class="image-gallery__image image-gallery__link image is-square has-zoom-on-hover" |
14 | | - aria-expanded="false" |
15 | | - aria-label="{translations.open}" |
16 | | - > |
17 | | - {@image id=image.id size="large" alt=image.alt title=image.alt /} |
18 | | - </a> |
19 | | - |
| 5 | + {?is_clickable} |
| 6 | + <a href="{image.sizes.fullhd|url}" |
| 7 | + data-preview="{image.sizes.medium|url}" |
| 8 | + data-gallery="{gallery_id|attr}" |
| 9 | + data-modal-button |
| 10 | + aria-controls="{gallery_id|attr}" |
| 11 | + data-caption="{caption|html}" |
| 12 | + data-author="{author_name|html}" |
| 13 | + data-image_title_and_artist="{image_title_and_artist|html}" |
| 14 | + class="image-gallery__image image-gallery__link image is-square has-zoom-on-hover" |
| 15 | + aria-expanded="false" |
| 16 | + aria-label="{translations.open|html}" |
| 17 | + > |
| 18 | + {@image id=image.id size="large" alt=image.alt title=image.alt /} |
| 19 | + </a> |
| 20 | + {:else} |
| 21 | + <div class="image-gallery__image image is-square"> |
| 22 | + {@image id=image.id size="large" alt=image.alt title=image.alt /} |
| 23 | + </div> |
| 24 | + {/is_clickable} |
20 | 25 | {/rows} |
21 | 26 |
|
22 | 27 | <!-- Markup of the modal --> |
|
0 commit comments