// Get helper instance for web forms. This will add the opening form-tag to
// the helper's render cache which is simply a small variable in the class
// BaseHelper.
-$helper = WebFormHelper::createWebFormHelper($this, 'blog_user_login');
+$helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'blog_user_login'));
// Formular deaktiviert?
if ($helper->ifLoginIsEnabled()) {
// CAPTCHA enabled?
if ($helper->ifFormSecuredWithCaptcha()) {
- $helper->addFormGroup('captcha_user', "Unser Benuzter-Login ist durch ein CAPTCHA geschützt. Bitte wiederhole den angezeigten Code, damit du dich einloggen kannst.");
+ $helper->addFormGroup('captcha_user', "Das Benutzer-Login ist durch ein CAPTCHA geschützt. Bitte wiederhole den angezeigten Code, damit du dich einloggen kannst.");
$helper->addCaptcha();
} // END - if
// Ist Gastlogin erlaubt?
if ($helper->ifGuestLoginAllowed()) {
// Neue Helper-Instanz holen
- $helper = WebFormHelper::createWebFormHelper($this, 'blog_guest_login');
+ $helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'blog_guest_login'));
$helper->addInputHiddenConfiguredField('user', 'guest_login');
$helper->addInputHiddenConfiguredField('passwd', 'guest_login');
$helper->flushContent();
}
+// Get helper instance
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'register_login_form_link', 'index.php?app={?app_short_name?}&page=register'));
+
+// Set link text
+$helper->addLinkWithTextById('register_login_form_link_text');
+
+// Flush the content
+$helper->flushContent();
+
+// [EOC]
?>
<div id="content_header">
Einloggen zu <span class="app_name">{?app_full_name?}</span>
</div>
<div id="content_footer">
- Noch kein Loginaccount? [<a href="$config[base_url]/index.php?app=blog&page=register">Dann hier kostenlos anmelden!</a>]
+ Noch kein Loginaccount? {?register_login_form_link?}
</div>