03736cda0ae90746eb7cab1a2daaf7e98308fe67
[shipsimu.git] / application / blog / templates / de / code / login_main.ctp
1 <?php
2 ///////////////////////////////
3 // Assign personal user data //
4 ///////////////////////////////
5
6 // Get a new instance for personal data
7 $blockInstance = ObjectFactory::createObjectByConfiguredName('web_block_helper', array($this, 'persona_data'));
8
9 // Set the data source instance which must exist in registry
10 $blockInstance->prefetchValueInstance('user');
11
12 // Assign fields with template variables
13 $blockInstance->assignField('username');
14 $blockInstance->assignFieldWithFilter('user_status', "user_status_translator");
15
16 // Shall we include registration date?
17 if ($blockInstance->ifIncludeRegistrationStamp()) {
18         // Then assign it as well!
19         $blockInstance->assignFieldWithFilter('registered', 'formatTimestamp');
20 } // END - if
21
22 // Flush the content out to a template variable
23 $blockInstance->flushContent();
24
25 // Get a new instance for blog data
26 $blockInstance = ObjectFactory::createObjectByConfiguredName('web_block_helper', array($this, 'blog_data'));
27
28 // Set the data source instance which must exist in registry
29 $blockInstance->prefetchValueInstance('blog');
30
31 // Flush the content out to a template variable
32 $blockInstance->flushContent();
33
34 // Get helper instance
35 $helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'logout_action_link', 'index.php?app={?app_short_name?}&amp;page=login_area'));
36
37 // Add action
38 $helper->addActionLink('logout', "Ausloggen");
39
40 // Flush the content
41 $helper->flushContent();
42
43 // [EOC]
44 ?>
45 <div id="content_header">
46         Willkommen im Loginbereich  von <span class=\"app_name\">{?app_full_name?}</span>!
47 </div>
48
49 <div id="content_body">
50         {?login_content?}
51 </div>
52
53 <div id="persona_data" title="Informationen zu Deinem Loginaccount">
54         <div id="persona_header">
55                 Account-Infos:
56         </div>
57
58         <div id="persona_body">
59                 {?persona_data?}
60         </div>
61
62         <div id="persona_body">
63                 {?blog_data?}
64         </div>
65
66         <div id="logout_link">
67                 {?logout_action_link?}
68         </div>
69 </div>