Skip to content

Commit 8c8d1d3

Browse files
committed
Use <a> tag instead of <div> for tiles
This allows to CTRL+click over tiles to open the link on a new page.
1 parent 47d4a5a commit 8c8d1d3

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

_output/templates/_metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
"public/if_gs_gridshow_widget.html": {
1313
"version_id": 1000070,
1414
"version_string": "1.0.0",
15-
"hash": "7594b983b1b08606aafa6f912c3d1148"
15+
"hash": "4206170cb29b0cf988f3b4bee88551f0"
1616
},
1717
"public/if_gs_gridshow_widget.less": {
1818
"version_id": 1000070,
1919
"version_string": "1.0.0",
20-
"hash": "f95768b90c26bbd82f748b9ace0739d0"
20+
"hash": "1654ad3dbc70e1f1518cf58bcd0f5c6e"
2121
}
2222
}

_output/templates/public/if_gs_gridshow_widget.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33

44
<div class="block if-gs-widget">
55
<xf:foreach loop="$tiles" value="$tile">
6-
<div class="if-gs-tile" style="background-image:url({$tile.image_url})" onclick="location.href='{$tile.link}';">
6+
<a class="if-gs-tile" style="background-image:url({$tile.image_url})" href="{$tile.link}">
77
<div class="if-gs-tile-category">
88
{$tile.category}
99
</div>
1010
<div class="if-gs-tile-title">
1111
{$tile.title}
1212
</div>
13-
</div>
13+
</a>
1414
</xf:foreach>
1515
</div>
1616
<xf:js>

_output/templates/public/if_gs_gridshow_widget.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ div.if-gs-widget {
99

1010
.if-gs-tile {
1111
position: relative;
12+
display: block;
1213
.xf-ifgsTileStyle();
1314
background-size: @xf-ifgsTileBgSize;
1415
background-position: @xf-ifgsTileBgPosition;

0 commit comments

Comments
 (0)