]> git.mxchange.org Git - shipsimu.git/blobdiff - application/blog/templates/de/code/login_form.ctp
Filteres rewritten, birthday added, some fixes:
[shipsimu.git] / application / blog / templates / de / code / login_form.ctp
index 599fbe51adac302a0f35f6e5a0556687bd1e10b8..44492aca6a0e2538a8d479cec50205067274bd95 100644 (file)
@@ -2,7 +2,7 @@
 // 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()) {
@@ -33,7 +33,7 @@ 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
 
@@ -53,7 +53,7 @@ $helper->flushContent();
 // 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');
 
@@ -69,6 +69,16 @@ if ($helper->ifGuestLoginAllowed()) {
        $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>
@@ -85,5 +95,5 @@ if ($helper->ifGuestLoginAllowed()) {
 </div>
 
 <div id="content_footer">
-       Noch kein Loginaccount? [<a href="$config[base_url]/index.php?app=blog&amp;page=register">Dann hier kostenlos anmelden!</a>]
+       Noch kein Loginaccount? {?register_login_form_link?}
 </div>