File tree Expand file tree Collapse file tree 5 files changed +47
-5
lines changed
screens/Overview/components/VacationInfoBox Expand file tree Collapse file tree 5 files changed +47
-5
lines changed Original file line number Diff line number Diff line change 33
33
include ($ includePath . './screens/Overview/components/PlanetsListElement/PlanetsListElement.component.php ' );
34
34
include ($ includePath . './screens/Overview/components/ResourcesTransport/ResourcesTransport.component.php ' );
35
35
include ($ includePath . './screens/Overview/components/StatsList/StatsList.component.php ' );
36
+ include ($ includePath . './screens/Overview/components/VacationInfoBox/VacationInfoBox.component.php ' );
36
37
37
38
include ($ includePath . './screens/PlanetNameChange/PlanetNameChange.screen.php ' );
38
39
include ($ includePath . './screens/PlanetNameChange/PlanetNameChange.utils.php ' );
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace UniEngine \Engine \Modules \Overview \Screens \Overview \Components \VacationInfoBox ;
4
+
5
+ /**
6
+ * @param array $props
7
+ * @param arrayRef $props['user']
8
+ */
9
+ function render ($ props ) {
10
+ global $ _Lang ;
11
+
12
+ if (!isOnVacation ($ 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
+ { VacationModeBox_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 59
59
InsertJavaScriptChronoApplet (false , false , false );
60
60
$ InsertJSChronoApplet_GlobalIncluded = true ;
61
61
62
- // --- Vacation Mode Box
63
- if (isOnVacation ())
64
- {
65
- $ parse ['VacationModeBox ' ] = '<tr><th class="c pad5 orange" colspan="3"> ' .$ _Lang ['VacationModeBox_Text ' ].'</th></tr><tr><th style="visibility: hidden;"> </th></tr> ' ;
66
- }
62
+ $ parse ['VacationModeBox ' ] = Overview \Screens \Overview \Components \VacationInfoBox \render ([
63
+ 'user ' => &$ _User ,
64
+ ])['componentHTML ' ];
67
65
68
66
// --- Activation Box
69
67
if (!isUserAccountActivated ($ _User )) {
You can’t perform that action at this time.
0 commit comments