Added pageID as a data attribute to the body tag
authorMarcel Werk <burntime@woltlab.com>
Thu, 12 May 2016 12:39:08 +0000 (14:39 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 12 May 2016 12:40:26 +0000 (14:40 +0200)
com.woltlab.wcf/templates/header.tpl

index 8b5b2ca6f4ae8bca193f54d93f26b8828fef0c48..a828fec112cb42bc6179df041aecf46cc816255e 100644 (file)
@@ -10,7 +10,7 @@
        {/if}
 </head>
 
-<body id="tpl_{$templateNameApplication}_{$templateName}" data-template="{$templateName}" data-application="{$templateNameApplication}">
+<body id="tpl_{$templateNameApplication}_{$templateName}" data-template="{$templateName}" data-application="{$templateNameApplication}"{if !$page|empty} data-page-id="{@$page->pageID}"{/if}>
 
 <a id="top"></a>