Furthermore, the body id for new templates will be `tpl_{$templateNameApplication}_{$templateName}`, the old format `tpl{$templateName|ucfirst}` is deprecated and you should not rely on it anymore.
{include file='headInclude'}
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='userMenuSidebar'}
{include file='headInclude'}
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='userMenuSidebar'}
{include file='headInclude'}
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl_{$templateNameApplication}_{$templateName}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='header'}
<link rel="canonical" href="{link controller='Dashboard'}{/link}" />
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{if $__boxSidebar|isset && $__boxSidebar}
{capture assign='sidebar'}
{include file='headInclude'}
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{capture assign='sidebar'}
<fieldset>
{include file='headInclude'}
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='header'}
{include file='headInclude'}
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl_{$templateNameApplication}_{$templateName}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='header'}
{include file='headInclude'}
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='header'}
{include file='headInclude'}
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='header'}
</script>
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='userMenuSidebar'}
</script>
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='userMenuSidebar'}
</script>
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='header' __disableLoginLink=true}
<header class="boxHeadline">
</script>
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='header'}
{include file='headInclude'}
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='header'}
<header class="boxHeadline">
</script>
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{capture assign='sidebar'}
{assign var=encodedLetter value=$letter|rawurlencode}
</script>
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='header'}
{include file='headInclude'}
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{capture assign='sidebar'}
{* moderation type *}
</script>
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='header'}
{include file='headInclude'}
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='header'}
</script>
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='userMenuSidebar'}
</script>
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='userMenuSidebar'}
{include file='headInclude'}
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='header' skipBreadcrumbs=true}
{include file='headInclude'}
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='header'}
{include file='headInclude'}
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl_{$templateNameApplication}_{$templateName}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='header'}
</script>
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{capture assign='sidebar'}
{@$__boxSidebar}
<meta http-equiv="refresh" content="{if $wait|isset}{@$wait}{else}10{/if};URL={$url}" />
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='header'}
</style>
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='header' __disableLoginLink=true}
<header class="boxHeadline">
{include file='headInclude'}
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='header'}
{include file='headInclude'}
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='header'}
{include file='headInclude'}
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='header'}
{include file='headInclude'}
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='header'}
{include file='headInclude'}
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='userMenuSidebar'}
</script>
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='userMenuSidebar'}
<link rel="canonical" href="{link controller='Tagged' object=$tag}objectType={@$objectType}{if $pageNo > 1}&pageNo={@$pageNo}{/if}{/link}" />
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{capture assign='sidebar'}
<fieldset>
</script>
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{capture assign='sidebar'}
{@$__boxSidebar}
</noscript>
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{include file='userSidebar' assign='sidebar'}
</script>
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{capture assign='sidebar'}
{@$__boxSidebar}
{/if}
</head>
-<body id="tpl{$templateName|ucfirst}">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{capture assign='sidebar'}
<div>
</script>
</head>
-<body id="tpl{$templateName|ucfirst}" class="wcfAcp">
+<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}" class="wcfAcp">
<a id="top"></a>
<header id="pageHeader" class="layoutFluid">
*/
public $templateName = '';
+ /**
+ * abbreviation of the application the template belongs to
+ * @var string
+ */
+ public $templateNameApplication = '';
+
/**
* enables template usage
* @var string
// assign guessed template name
WCF::getTPL()->assign('templateName', $this->templateName);
}
+ if (empty($this->templateNameApplication)) {
+ $this->templateNameApplication = array_shift($classParts);
+
+ // assign guessed template application
+ WCF::getTPL()->assign('templateNameApplication', $this->templateNameApplication);
+ }
if ($this->useTemplate) {
// show template
- WCF::getTPL()->display($this->templateName, array_shift($classParts));
+ WCF::getTPL()->display($this->templateName, $this->templateNameApplication);
}
}