page-relevant data-attributes on body tag are now available for all cms pages
authorMarcel Werk <burntime@woltlab.com>
Fri, 20 May 2016 11:20:02 +0000 (13:20 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sat, 21 May 2016 16:05:39 +0000 (18:05 +0200)
com.woltlab.wcf/templates/header.tpl

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