<?php
// Get a link helper instance
-$linkInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'company_links', 'index.php?app={?app_short_name?}&page=login_area'));
+$linkInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'companys', 'index.php?app={?app_short_name?}&page=login_area'));
// Prefetch the user data
$linkInstance->prefetchValueInstance('user');
</div>
<div class="table_footer">
- {?company_links?}
+ {?companys?}
</div>
</div>
$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ätigung dein derzeitiges Passwort ein.");
$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?}&page=login_area'));
+$linkInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'shipsimu_profile', 'index.php?app={?app_short_name?}&page=login_area'));
// Add action
-$linkInstance->addActionLinkById('profile', 'link_text_profile');
+$linkInstance->addActionLinkById('profile', 'profile');
// Flush the finished form
$linkInstance->flushContent();
$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?}&page=login_area'));
+$linkInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'shipsimu_profile', 'index.php?app={?app_short_name?}&page=login_area'));
// Add action
-$linkInstance->addActionLinkById('profile', 'link_text_profile');
+$linkInstance->addActionLinkById('profile', 'profile');
// Flush the finished form
$linkInstance->flushContent();
<?php
// Get helper instance
-$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'logout_now_link', 'index.php?app={?app_short_name?}&page=logout'));
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'logout_now', 'index.php?app={?app_short_name?}&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?}&page=login_area'));
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'return_login', 'index.php?app={?app_short_name?}&page=login_area'));
// Set link text
-$helperInstance->addLinkWithTextById('return_login_link_text');
+$helperInstance->addLinkWithTextById('return_login');
// Flush the content
$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>
} // END - if
if ($helperInstance->ifEmailChangeRequireConfirmation()) {
- $helperInstance->addFormNote('confirm_link', "Es wird ein Bestätigungslink an deine neue Email-Adresse gesendet. Bitte klicke diesen dann möglichst schnell an.");
+ $helperInstance->addFormNote('confirm', "Es wird ein Bestätigungslink an deine neue Email-Adresse gesendet. Bitte klicke diesen dann möglichst schnell an.");
} // END - if
} // END - if
// 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');
kannst dir nun den Bestätigungslink erneut aussenden lassen, oder den
Bestätigungscode unten eingeben.
- <div id="resend_link_box">
- {?resend_link?}
+ <div id="resend_box">
+ {?resend?}
</div>
<div id="confirm_code_box">
+<?php
+// Get helper instance
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'company', 'index.php?app={?app_short_name?}&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?}&page=login_area&action={?company_link_action?}"
- title="{?company_link_title?}">{?company_link_text?}</a>
+ {?company?}
</div>
<?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?}&page=login_area'));
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'profile', 'index.php?app={?app_short_name?}&page=login_area'));
// Prefetch user instance
$helperInstance->prefetchValueInstance('user');
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>
<?php
// Get helper instance
-$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'direct_login_link', 'index.php?app={?app_short_name?}&page=login'));
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'direct_login', 'index.php?app={?app_short_name?}&page=login'));
// Set link text
-$helperInstance->addLinkWithTextById('direct_login_link_text');
+$helperInstance->addLinkWithTextById('direct_login');
// Flush the content
$helperInstance->flushContent();
</div>
<div id="content_footer">
- {?direct_login_link?}
+ {?direct_login?}
</div>
<?php
// Get helper instance
-$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'login_retry_link', 'index.php?app={?app_short_name?}&page=login'));
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'login_retry', 'index.php?app={?app_short_name?}&page=login'));
// Set link text
-$helperInstance->addLinkWithTextById('login_retry_text');
+$helperInstance->addLinkWithTextById('login_retry');
// Flush the content
$helperInstance->flushContent();
<div id="content_footer">
<div id="login_retry">
- {?login_retry_link?}
+ {?login_retry?}
</div>
Vielen Dank für deine Mitarbeit! :-)
}
// Get helper instance
-$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'register_login_form_link', 'index.php?app={?app_short_name?}&page=register'));
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'register_login_form', 'index.php?app={?app_short_name?}&page=register'));
// Set link text
-$helperInstance->addLinkWithTextById('register_login_form_link_text');
+$helperInstance->addLinkWithTextById('register_login');
// Flush the content
$helperInstance->flushContent();
</div>
<div id="content_footer">
- Noch kein Spieleaccount? {?register_login_form_link?}
+ Noch kein Spieleaccount? {?register_login_form?}
</div>
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?}&page=login_area'));
+$linkInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'logout_action', 'index.php?app={?app_short_name?}&page=login_area'));
// Add action
-$linkInstance->addLinkGroup('logout', "");
-$linkInstance->addActionLink('logout', "Ausloggen");
+$linkInstance->addActionLinkById('logout', 'logout');
// Flush the content
$linkInstance->flushContent();
{?persona_data?}
</div>
- <div id="logout_link">
- {?logout_action_link?}
+ <div id="logout">
+ {?logout_action?}
</div>
</div>
<?php
// Get helper instance
-$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'relogin_link', 'index.php?app={?app_short_name?}&page=login'));
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'relogin', 'index.php?app={?app_short_name?}&page=login'));
// Set link text
-$helperInstance->addLinkWithTextById('relogin_link_text');
+$helperInstance->addLinkWithTextById('relogin');
// Flush the content
$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>