<div id="logo" class="logo">
<a href="{link controller='Index'}{/link}">
<h1>{lang}wcf.global.acp{/lang}</h1>
- <img src="{@$__wcf->getPath()}acp/images/wcfLogo1.svg" width="321" height="58" alt="" />
+ {if PACKAGE_ID > 1}
+ {event name='headerLogo'}
+ {else}
+ <img src="{@$__wcf->getPath()}acp/images/wcfLogo2.svg" alt="" width="300" height="58" />
+ {/if}
</a>
</div>
{* work-around for unknown core-object during WCFSetup *}
- {if PACKAGE_ID}
+ {if PACKAGE_ID && $__wcf->user->userID}
{hascontent}
<nav id="mainMenu" class="mainMenu">
<ul>{content}{foreach from=$__wcf->getACPMenu()->getMenuItems('') item=_menuItem}<li data-menu-item="{$_menuItem->menuItem}"><a>{lang}{@$_menuItem->menuItem}{/lang}</a></li>{/foreach}{/content}</ul>
</div>
</header>
- <div id="main" class="layoutFluid{if PACKAGE_ID && $__wcf->getACPMenu()->getMenuItems('')|count} sidebarOrientationLeft{/if}">
+ <div id="main" class="layoutFluid{if PACKAGE_ID && $__wcf->user->userID && $__wcf->getACPMenu()->getMenuItems('')|count} sidebarOrientationLeft{/if}">
<div>
{hascontent}
<aside class="sidebar collapsibleMenu">
<div>
{content}
{* work-around for unknown core-object during WCFSetup *}
- {if PACKAGE_ID}
+ {if PACKAGE_ID && $__wcf->user->userID}
{foreach from=$__wcf->getACPMenu()->getMenuItems('') item=_parentMenuItem}
<div id="{$_parentMenuItem->menuItem}-container" style="display: none;" class="menuGroup collapsibleMenus" data-parent-menu-item="{$_parentMenuItem->menuItem}">
{foreach from=$__wcf->getACPMenu()->getMenuItems($_parentMenuItem->menuItem) item=_menuItem}
throw new SystemException('Unable to load configuration for '.$package->package);
}
- // start application if not within ACP
+ // register template path if not within ACP
if (!class_exists('wcf\system\WCFACP', false)) {
// add template path and abbreviation
$this->getTPL()->addApplication($abbreviation, $packageDir . 'templates/');
-
- // init application and assign it as template variable
- $applicationObject = call_user_func(array($className, 'getInstance'));
- $this->getTPL()->assign('__'.$abbreviation, $applicationObject);
}
+
+ // init application and assign it as template variable
+ $applicationObject = call_user_func(array($className, 'getInstance'));
+ $this->getTPL()->assign('__'.$abbreviation, $applicationObject);
}
else {
unset(self::$autoloadDirectories[$abbreviation]);