Rewritten for updated core
authorRoland Häder <roland@mxchange.org>
Sat, 6 Dec 2008 22:25:49 +0000 (22:25 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 6 Dec 2008 22:25:49 +0000 (22:25 +0000)
13 files changed:
application/ship-simu/templates/de/code/action_ship_simu_login_company.ctp
application/ship-simu/templates/de/code/action_ship_simu_login_government_startup_help.ctp
application/ship-simu/templates/de/code/action_ship_simu_login_government_training.ctp
application/ship-simu/templates/de/code/action_ship_simu_login_logout.ctp
application/ship-simu/templates/de/code/action_ship_simu_login_profile.ctp
application/ship-simu/templates/de/code/action_ship_simu_login_status_problem.ctp
application/ship-simu/templates/de/code/block_company_data.ctp
application/ship-simu/templates/de/code/block_persona_data.ctp
application/ship-simu/templates/de/code/confirm_link.ctp
application/ship-simu/templates/de/code/login_failed.ctp
application/ship-simu/templates/de/code/login_form.ctp
application/ship-simu/templates/de/code/login_main.ctp
application/ship-simu/templates/de/code/logout_done.ctp

index 428e298..6508ded 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Get a link helper instance
-$linkInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'company_links', 'index.php?app={?app_short_name?}&amp;page=login_area'));
+$linkInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'companys', 'index.php?app={?app_short_name?}&amp;page=login_area'));
 
 // Prefetch the user data
 $linkInstance->prefetchValueInstance('user');
@@ -85,6 +85,6 @@ $linkInstance->flushContent();
        </div>
 
        <div class="table_footer">
-               {?company_links?}
+               {?companys?}
        </div>
 </div>
index 475c147..bd252c7 100644 (file)
@@ -18,7 +18,7 @@ $helperInstance->addFormNote('email', "Email-Adresse: <span class=\"persona_data
 $helperInstance->addFormNote('birthday', "Geburtstag: <span class=\"persona_data\">".(int)$helperInstance->getValueField('birth_day').".".(int)$helperInstance->getValueField('birth_month').".".(int)$helperInstance->getValueField('birth_year')."</span>");
 
 // Add link placeholder for profile page
-$helperInstance->addFormNote('profile', "Stimmen die Daten noch? {?shipsimu_profile_link?}");
+$helperInstance->addFormNote('profile', "Stimmen die Daten noch? {?shipsimu_profile?}");
 
 // Ask again for current account password
 $helperInstance->addFormGroup('password', "Bitte gebe zur Best&auml;tigung dein derzeitiges Passwort ein.");
@@ -41,10 +41,10 @@ $helperInstance->addFormNote('data_protection', "Deine Daten werden nach den g&u
 $helperInstance->flushContent();
 
 // Get link helper for profile link
-$linkInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'shipsimu_profile_link', 'index.php?app={?app_short_name?}&amp;page=login_area'));
+$linkInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'shipsimu_profile', 'index.php?app={?app_short_name?}&amp;page=login_area'));
 
 // Add action
-$linkInstance->addActionLinkById('profile', 'link_text_profile');
+$linkInstance->addActionLinkById('profile', 'profile');
 
 // Flush the finished form
 $linkInstance->flushContent();
index 18b29dc..650dfba 100644 (file)
@@ -28,16 +28,16 @@ $helperInstance->addFormNote('family', "Nachname: <span class=\"persona_data\">"
 $helperInstance->addFormNote('email', "Email-Adresse: <span class=\"persona_data\">".$helperInstance->getValueField('email')."</span>");
 
 // Add link placeholder for profile page
-$helperInstance->addFormNote('profile', "Stimmen die Daten noch? {?shipsimu_profile_link?}");
+$helperInstance->addFormNote('profile', "Stimmen die Daten noch? {?shipsimu_profile?}");
 
 // Flush the finished form
 $helperInstance->flushContent();
 
 // Get link helper for profile link
-$linkInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'shipsimu_profile_link', 'index.php?app={?app_short_name?}&amp;page=login_area'));
+$linkInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'shipsimu_profile', 'index.php?app={?app_short_name?}&amp;page=login_area'));
 
 // Add action
-$linkInstance->addActionLinkById('profile', 'link_text_profile');
+$linkInstance->addActionLinkById('profile', 'profile');
 
 // Flush the finished form
 $linkInstance->flushContent();
index 998660f..f46f1a7 100644 (file)
@@ -1,18 +1,18 @@
 <?php
 // Get helper instance
-$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'logout_now_link', 'index.php?app={?app_short_name?}&amp;page=logout'));
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'logout_now', 'index.php?app={?app_short_name?}&amp;page=logout'));
 
 // Set link text
-$helperInstance->addLinkWithTextById('logout_now_link_text');
+$helperInstance->addLinkWithTextById('logout_now');
 
 // Flush the content
 $helperInstance->flushContent();
 
 // Get helper instance
-$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'return_login_link', 'index.php?app={?app_short_name?}&amp;page=login_area'));
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'return_login', 'index.php?app={?app_short_name?}&amp;page=login_area'));
 
 // Set link text
-$helperInstance->addLinkWithTextById('return_login_link_text');
+$helperInstance->addLinkWithTextById('return_login');
 
 // Flush the content
 $helperInstance->flushContent();
@@ -24,7 +24,7 @@ $helperInstance->flushContent();
                Willst du dich wirklich aus dem Spiel ausloggen?
        </div>
 
-       <div id="logout_links">
-               {?logout_now_link?} | {?return_login_link?}
+       <div id="logouts">
+               {?logout_now?} | {?return_login?}
        </div>
 </div>
index c55cab7..98736bd 100644 (file)
@@ -32,7 +32,7 @@ if ($helperInstance->ifEmailChangeAllowed()) {
        } // END - if
 
        if ($helperInstance->ifEmailChangeRequireConfirmation()) {
-               $helperInstance->addFormNote('confirm_link', "Es wird ein Best&auml;tigungslink an deine neue Email-Adresse gesendet. Bitte klicke diesen dann m&ouml;glichst schnell an.");
+               $helperInstance->addFormNote('confirm', "Es wird ein Best&auml;tigungslink an deine neue Email-Adresse gesendet. Bitte klicke diesen dann m&ouml;glichst schnell an.");
        } // END - if
 } // END - if
 
index bf385d9..5d69da5 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.
-$helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, "resend_link"));
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, "resend"));
 
 // Pre-fetch field data with a given registry key
 $helperInstance->prefetchValueInstance('user');
@@ -59,8 +59,8 @@ if ($helperInstance->ifUserAccountUnconfirmed()) {
        kannst dir nun den Best&auml;tigungslink erneut aussenden lassen, oder den
        Best&auml;tigungscode unten eingeben.
 
-       <div id="resend_link_box">
-               {?resend_link?}
+       <div id="resend_box">
+               {?resend?}
        </div>
 
        <div id="confirm_code_box">
index 25809e8..2c36aa4 100644 (file)
@@ -1,7 +1,18 @@
+<?php
+// Get helper instance
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'company', 'index.php?app={?app_short_name?}&amp;page=login_area'));
+
+// Set link text
+$helperInstance->addActionLinkById('company', 'company');
+
+// Flush the content
+$helperInstance->flushContent();
+
+// [EOC]
+?>
 <div class="user_name_div">
        Firmenstatus: <span class="company_status">{?company_status?}</span>
 </div>
 <div class="user_profile_div">
-       <a href="$config[base_url]/index.php?app={?app_short_name?}&amp;page=login_area&amp;action={?company_link_action?}"
-        title="{?company_link_title?}">{?company_link_text?}</a>
+       {?company?}
 </div>
index d0cf0de..4965145 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Get a helper instance for the profile link (and maybe later more!)
-$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'profile_link', 'index.php?app={?app_short_name?}&amp;page=login_area'));
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'profile', 'index.php?app={?app_short_name?}&amp;page=login_area'));
 
 // Prefetch user instance
 $helperInstance->prefetchValueInstance('user');
@@ -17,7 +17,7 @@ $helperInstance->flushContent();
        Spielerstatus: <span id="user_status">{?block_user_status?}</span>
 </div>
 <div class="user_profile_div">
-       {?profile_link?}
+       {?profile?}
 </div>
 <div class="user_registered_div">
        Angemeldet seit: <span id="registered">{?block_registered?}</span>
index 6e6c6bb..e8e784b 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Get helper instance
-$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'direct_login_link', 'index.php?app={?app_short_name?}&amp;page=login'));
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'direct_login', 'index.php?app={?app_short_name?}&amp;page=login'));
 
 // Set link text
-$helperInstance->addLinkWithTextById('direct_login_link_text');
+$helperInstance->addLinkWithTextById('direct_login');
 
 // Flush the content
 $helperInstance->flushContent();
@@ -21,5 +21,5 @@ $helperInstance->flushContent();
 </div>
 
 <div id="content_footer">
-       {?direct_login_link?}
+       {?direct_login?}
 </div>
index b982f43..99f180c 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Get helper instance
-$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'login_retry_link', 'index.php?app={?app_short_name?}&amp;page=login'));
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'login_retry', 'index.php?app={?app_short_name?}&amp;page=login'));
 
 // Set link text
-$helperInstance->addLinkWithTextById('login_retry_text');
+$helperInstance->addLinkWithTextById('login_retry');
 
 // Flush the content
 $helperInstance->flushContent();
@@ -39,7 +39,7 @@ $helperInstance->flushContent();
 
 <div id="content_footer">
        <div id="login_retry">
-               {?login_retry_link?}
+               {?login_retry?}
        </div>
 
        Vielen Dank f&uuml;r deine Mitarbeit! :-)
index 560b79f..6b0110d 100644 (file)
@@ -70,10 +70,10 @@ if ($helperInstance->ifGuestLoginAllowed()) {
 }
 
 // Get helper instance
-$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'register_login_form_link', 'index.php?app={?app_short_name?}&amp;page=register'));
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'register_login_form', 'index.php?app={?app_short_name?}&amp;page=register'));
 
 // Set link text
-$helperInstance->addLinkWithTextById('register_login_form_link_text');
+$helperInstance->addLinkWithTextById('register_login');
 
 // Flush the content
 $helperInstance->flushContent();
@@ -95,5 +95,5 @@ $helperInstance->flushContent();
 </div>
 
 <div id="content_footer">
-       Noch kein Spieleaccount? {?register_login_form_link?}
+       Noch kein Spieleaccount? {?register_login_form?}
 </div>
index a2d1910..0ad51a2 100644 (file)
@@ -36,38 +36,37 @@ $blockInstance->prefetchValueInstance('company', 'user');
 if ($blockInstance->getValueInstance()->ifUserIsFounder()) {
        // User is the founder of the company
        $blockInstance->assignMessageField('company_status', "user_is_company_founder");
-       $blockInstance->assignLinkFieldWithAction('company_link' , "company_overview");
-       $blockInstance->assignMessageField('company_link_text', "link_text_company_overview");
-       $blockInstance->assignMessageField('company_link_title', "link_title_company_overview");
+       $blockInstance->assignLinkFieldWithAction('company' , "company_overview");
+       $blockInstance->assignMessageField('company', "link_text_company_overview");
+       $blockInstance->assignMessageField('company_title', "link_title_company_overview");
 } elseif ($blockInstance->getValueInstance()->ifUserIsOwner()) {
        // User owns the company
        $blockInstance->assignMessageField('company_status', "user_is_company_owner");
-       $blockInstance->assignLinkFieldWithAction('company_link' , "company_overview");
-       $blockInstance->assignMessageField('company_link_text', "link_text_company_overview");
-       $blockInstance->assignMessageField('company_link_title', "link_title_company_overview");
+       $blockInstance->assignLinkFieldWithAction('company' , "company_overview");
+       $blockInstance->assignMessageField('company', "link_text_company_overview");
+       $blockInstance->assignMessageField('company_title', "link_title_company_overview");
 } elseif ($blockInstance->getValueInstance()->ifUserIsEmployee()) {
        // User is employed in company
        $blockInstance->assignMessageField('company_status', "user_is_employed_in_company");
-       $blockInstance->assignLinkFieldWithAction('company_link' , "employee_overview");
-       $blockInstance->assignMessageField('company_link_text', "link_text_employee_overview");
-       $blockInstance->assignMessageField('company_link_title', "link_title_employee_overview");
+       $blockInstance->assignLinkFieldWithAction('company' , "employee_overview");
+       $blockInstance->assignMessageField('company', "link_text_employee_overview");
+       $blockInstance->assignMessageField('company_title', "link_title_employee_overview");
 } else {
        // No company participation!
        $blockInstance->assignMessageField('company_status', "user_not_assigned_company");
-       $blockInstance->assignLinkFieldWithAction('company_link' , "company");
-       $blockInstance->assignMessageField('company_link_text', "link_text_company");
-       $blockInstance->assignMessageField('company_link_title', "link_title_company");
+       $blockInstance->assignLinkFieldWithAction('company' , "company");
+       $blockInstance->assignMessageField('company', "link_text_company");
+       $blockInstance->assignMessageField('company_title', "link_title_company");
 }
 
 // Flush the content out to a template variable
 $blockInstance->flushContent();
 
 // Get helper instance
-$linkInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'logout_action_link', 'index.php?app={?app_short_name?}&amp;page=login_area'));
+$linkInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'logout_action', 'index.php?app={?app_short_name?}&amp;page=login_area'));
 
 // Add action
-$linkInstance->addLinkGroup('logout', "");
-$linkInstance->addActionLink('logout', "Ausloggen");
+$linkInstance->addActionLinkById('logout', 'logout');
 
 // Flush the content
 $linkInstance->flushContent();
@@ -91,8 +90,8 @@ $linkInstance->flushContent();
                {?persona_data?}
        </div>
 
-       <div id="logout_link">
-               {?logout_action_link?}
+       <div id="logout">
+               {?logout_action?}
        </div>
 </div>
 
index 3869184..16fa377 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Get helper instance
-$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'relogin_link', 'index.php?app={?app_short_name?}&amp;page=login'));
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'relogin', 'index.php?app={?app_short_name?}&amp;page=login'));
 
 // Set link text
-$helperInstance->addLinkWithTextById('relogin_link_text');
+$helperInstance->addLinkWithTextById('relogin');
 
 // Flush the content
 $helperInstance->flushContent();
@@ -15,5 +15,5 @@ $helperInstance->flushContent();
 </div>
 
 <div id="content_body">
-       Du kannst dich nun {?relogin_link?} oder weiter auf unseren Seiten bleiben. ;-)
+       Du kannst dich nun {?relogin?} oder weiter auf unseren Seiten bleiben. ;-)
 </div>