Links in all templates reworked, Primera API (see www.primusportal.de for details...
[shipsimu.git] / application / ship-simu / templates / de / code / login_main.ctp
index 81d3c0abbc945b511cc28ba1b709ca7c4079bf5c..bf47313dad9cfb1685389b14e503f46b12ac84fd 100644 (file)
@@ -62,6 +62,15 @@ if ($blockInstance->getValueInstance()->ifUserIsFounder()) {
 // Flush the content out to a template variable
 $blockInstance->flushContent();
 
+// Get helper instance
+$helper = WebLinkHelper::createWebLinkHelper($this, 'logout_action_link', 'index.php?app=ship-simu&page=login_area');
+
+// Add action
+$helper->addActionLink('logout', "Ausloggen");
+
+// Flush the content
+$helper->flushContent();
+
 // End of all PHP commands
 ?>
 <div id="content_header">
@@ -82,8 +91,7 @@ $blockInstance->flushContent();
        </div>
 
        <div id="logout_link">
-               [<a href="$config[base_url]/index.php?app=ship-simu&amp;page=login_area&amp;action=logout"
-                title="Aus dem Spiel ausloggen">Ausloggen</a>]
+               {?logout_action_link?}
        </div>
 </div>