File tree Expand file tree Collapse file tree 5 files changed +47
-5
lines changed
screens/Overview/components/AccountActivationInfoBox Expand file tree Collapse file tree 5 files changed +47
-5
lines changed Original file line number Diff line number Diff line change 24
24
include ($ includePath . './screens/FirstLogin/utils/effects/updateUserOnFirstLogin.effect.php ' );
25
25
include ($ includePath . './screens/FirstLogin/utils/helpers/getReferrerTasksData.helper.php ' );
26
26
27
+ include ($ includePath . './screens/Overview/components/AccountActivationInfoBox/AccountActivationInfoBox.component.php ' );
27
28
include ($ includePath . './screens/Overview/components/AdminAlerts/AdminAlerts.component.php ' );
28
29
include ($ includePath . './screens/Overview/components/EmailChangeInfo/EmailChangeInfo.component.php ' );
29
30
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 62
62
$ parse ['VacationModeBox ' ] = Overview \Screens \Overview \Components \VacationInfoBox \render ([
63
63
'user ' => &$ _User ,
64
64
])['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 ' ];
70
68
71
69
// --- New User Protection Box
72
70
if ($ _User ['NoobProtection_EndTime ' ] > $ Now )
You can’t perform that action at this time.
0 commit comments