Rewritten for updated core
[shipsimu.git] / application / ship-simu / templates / de / code / block_company_data.ctp
index 25809e8f7184f8fa6e0f9f2648bfd7aa3f20bee8..2c36aa4bac86ca548fb75657e7c90d55b02a9598 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>