</box>
<box identifier="com.woltlab.wcf.RegisterButton">
- <name language="de">Registrierungs-Button</name>
- <name language="en">Register Button</name>
+ <name language="de">Registrierungs-Button (Seitenleiste)</name>
+ <name language="en">Register Button (Sidebar)</name>
<boxType>system</boxType>
<objectType>com.woltlab.wcf.registerButton</objectType>
<position>sidebarRight</position>
</content>
</box>
+ <box identifier="com.woltlab.wcf.RegisterButton.content">
+ <name language="de">Registrierungs-Button (Inhaltsbereich)</name>
+ <name language="en">Register Button (Content)</name>
+ <boxType>system</boxType>
+ <objectType>com.woltlab.wcf.registerButton</objectType>
+ <position>contentBottom</position>
+ <showHeader>1</showHeader>
+ <visibleEverywhere>0</visibleEverywhere>
+
+ <content language="de">
+ <title>Jetzt mitmachen!</title>
+ </content>
+ <content language="en">
+ <title>Participate now!</title>
+ </content>
+ </box>
+
<box identifier="com.woltlab.wcf.SignedInAs">
<name language="de">Angemeldet als</name>
<name language="en">Signed In As</name>
+{if $box->position == 'sidebarLeft' || $box->position == 'sidebarRight'}
<p>{lang}wcf.user.login.register.teaser{/lang}</p>
<div class="formSubmit"><a href="{link controller='Register'}{/link}" class="button buttonPrimary">{lang}wcf.user.login.register.registerNow{/lang}</a></div>
+{elseif $box->position == 'contentTop' || $box->position == 'contentBottom'}
+<div class="info">
+ <p>{lang}wcf.user.login.register.teaser{/lang}</p>
+
+ <div class="formSubmit">
+ <a href="{link controller='Register'}{/link}" class="button buttonPrimary">{lang}wcf.user.login.register.registerNow{/lang}</a>
+ <a href="{link controller='Login'}{/link}" class="button buttonPrimary">{lang}wcf.user.button.login{/lang}</a>
+ </div>
+</div>
+{/if}
/**
* @inheritDoc
*/
- protected static $supportedPositions = ['sidebarLeft', 'sidebarRight'];
+ protected static $supportedPositions = ['contentTop', 'contentBottom', 'sidebarLeft', 'sidebarRight'];
/**
* @inheritDoc
*/
protected function loadContent() {
if (!WCF::getUser()->userID && !REGISTER_DISABLED) {
- $this->content = WCF::getTPL()->fetch('boxRegisterButton', 'wcf', [], true);
+ $this->content = WCF::getTPL()->fetch('boxRegisterButton', 'wcf', ['box' => $this->box], true);
}
}
}