File tree Expand file tree Collapse file tree
screens/Overview/components/AccountActivationInfoBox Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 include ($ includePath . './screens/FirstLogin/utils/effects/updateUserOnFirstLogin.effect.php ' );
2525 include ($ includePath . './screens/FirstLogin/utils/helpers/getReferrerTasksData.helper.php ' );
2626
27+ include ($ includePath . './screens/Overview/components/AccountActivationInfoBox/AccountActivationInfoBox.component.php ' );
2728 include ($ includePath . './screens/Overview/components/AdminAlerts/AdminAlerts.component.php ' );
2829 include ($ includePath . './screens/Overview/components/EmailChangeInfo/EmailChangeInfo.component.php ' );
2930 include ($ includePath . './screens/Overview/components/Morale/Morale.component.php ' );
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace UniEngine \Engine \Modules \Overview \Screens \Overview \Components \AccountActivationInfoBox ;
4+
5+ /**
6+ * @param array $props
7+ * @param arrayRef $props['user']
8+ */
9+ function render ($ props ) {
10+ global $ _Lang ;
11+
12+ if (isUserAccountActivated ($ props ['user ' ])) {
13+ return [
14+ 'componentHTML ' => '' ,
15+ ];
16+ }
17+
18+ $ localTemplateLoader = createLocalTemplateLoader (__DIR__ );
19+
20+ $ componentHTML = parsetemplate (
21+ $ localTemplateLoader ('body ' ),
22+ $ _Lang
23+ );
24+
25+ return [
26+ 'componentHTML ' => $ componentHTML ,
27+ ];
28+ }
29+
30+ ?>
Original file line number Diff line number Diff line change 1+ <tr >
2+ <th class =" c pad5 orange" colspan =" 3" >
3+ { ActivationInfo_Text}
4+ </th >
5+ </tr >
6+ <tr >
7+ <th style =" visibility : hidden ;" >  ; </th >
8+ </tr >
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ header ("Location: ../index.php " );
4+
5+ ?>
Original file line number Diff line number Diff line change 6262 $ parse ['VacationModeBox ' ] = Overview \Screens \Overview \Components \VacationInfoBox \render ([
6363 'user ' => &$ _User ,
6464 ])['componentHTML ' ];
65-
66- // --- Activation Box
67- if (!isUserAccountActivated ($ _User )) {
68- $ parse ['ActivationInfoBox ' ] = '<tr><th class="c pad5 orange" colspan="3"> ' .$ _Lang ['ActivationInfo_Text ' ].'</th></tr><tr><th style="visibility: hidden;"> </th></tr> ' ;
69- }
65+ $ parse ['ActivationInfoBox ' ] = Overview \Screens \Overview \Components \AccountActivationInfoBox \render ([
66+ 'user ' => &$ _User ,
67+ ])['componentHTML ' ];
7068
7169 // --- New User Protection Box
7270 if ($ _User ['NoobProtection_EndTime ' ] > $ Now )
You can’t perform that action at this time.
0 commit comments