Add box identifier as data attribute to box
authorMatthias Schmidt <gravatronics@live.com>
Fri, 6 May 2016 10:59:01 +0000 (12:59 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 6 May 2016 10:59:01 +0000 (12:59 +0200)
com.woltlab.wcf/templates/__box.tpl

index 974114aa003b710091f7ef28ebbbfd4b96c07243..d6a72d066d71cc0c782947fb97a56458a26a9035 100644 (file)
@@ -1,4 +1,4 @@
-<{if $box->showHeader}section{else}div{/if} class="box{if $box->hasImage()} boxWithImage{/if}{if $box->cssClassName} {$box->cssClassName}{/if}">
+<{if $box->showHeader}section{else}div{/if} class="box{if $box->hasImage()} boxWithImage{/if}{if $box->cssClassName} {$box->cssClassName}{/if}" data-box-identifier="{@$box->identifier}">
        {if $box->hasImage()}
                <div class="boxImage">
                        {if $box->hasLink()}