From 61c2d3dc77300c3d406ed118cbf0fb70c44be07c Mon Sep 17 00:00:00 2001 From: Jesper Beisner Date: Mon, 29 Aug 2022 09:21:10 +0200 Subject: [PATCH] profile view changes --- views/profile/_name-changes.phtml | 48 +++++++ views/profile/_playtimes.phtml | 55 ++++++++ views/profile/_profession-changes.phtml | 48 +++++++ views/profile/_race-changes.phtml | 49 ++++++++ views/profile/profile.phtml | 160 +----------------------- 5 files changed, 204 insertions(+), 156 deletions(-) create mode 100644 views/profile/_name-changes.phtml create mode 100644 views/profile/_playtimes.phtml create mode 100644 views/profile/_profession-changes.phtml create mode 100644 views/profile/_race-changes.phtml diff --git a/views/profile/_name-changes.phtml b/views/profile/_name-changes.phtml new file mode 100644 index 0000000..fc413fb --- /dev/null +++ b/views/profile/_name-changes.phtml @@ -0,0 +1,48 @@ + +
+
+

+ Namensänderungen +

+
+
+
+ 0): ?> +
+ + + + + + + + + + + + + + + + + +
Alter NameNeuer NameDatum
oldName ?>newName ?>created->format('d.m.Y') ?>
+
+ +

+ Keine Namensänderungen vorhanden. +

+ +
+
+
diff --git a/views/profile/_playtimes.phtml b/views/profile/_playtimes.phtml new file mode 100644 index 0000000..bafd2f7 --- /dev/null +++ b/views/profile/_playtimes.phtml @@ -0,0 +1,55 @@ + $weeklyPlaytimes */ +/** @var Playtime $totalPlaytime */ +/** @var Playtime $averagePlaytime */ + +?> +
+
+

+ Spielzeit der letzten 7 Tage +

+
+
+
+
+ + + + + + + + + + + + + + + + + + + + +
StundenMinutenSekundenDatum
getHours() ?>getMinutes() ?>getSeconds() ?>modify('-1 day')->format('d.m.Y') ?>
+
+
+
+
+ + +
+
diff --git a/views/profile/_profession-changes.phtml b/views/profile/_profession-changes.phtml new file mode 100644 index 0000000..aef81a7 --- /dev/null +++ b/views/profile/_profession-changes.phtml @@ -0,0 +1,48 @@ + +
+
+

+ Berufsänderungen +

+
+
+
+ 0): ?> +
+ + + + + + + + + + + + + + + + + +
Alter BerufNeuer BerufDatum
oldProfession ?? '-' ?>newProfession ?? '-' ?>created->format('d.m.Y') ?>
+
+ +

+ Keine Berufsänderungen vorhanden. +

+ +
+
+
diff --git a/views/profile/_race-changes.phtml b/views/profile/_race-changes.phtml new file mode 100644 index 0000000..c649011 --- /dev/null +++ b/views/profile/_race-changes.phtml @@ -0,0 +1,49 @@ + + +
+
+

+ Rassenänderungen +

+
+
+
+ 0): ?> +
+ + + + + + + + + + + + + + + + + +
Alte RasseNeue RasseDatum
oldRace ?>newRace ?>created->format('d.m.Y') ?>
+
+ +

+ Keine Rassenänderungen vorhanden. +

+ +
+
+
diff --git a/views/profile/profile.phtml b/views/profile/profile.phtml index fd3a99c..11d7489 100644 --- a/views/profile/profile.phtml +++ b/views/profile/profile.phtml @@ -43,160 +43,8 @@ $this->setTitle($player->name . ' - ' . $player->world->worldString()); -
-
-

- Spielzeit der letzten 7 Tage -

-
-
-
-
- - - - - - - - - - - - - - - - - - - - -
StundenMinutenSekundenDatum
getHours() ?>getMinutes() ?>getSeconds() ?>modify('-1 day')->format('d.m.Y') ?>
-
-
-
-
- - -
-
- -
-
-

- Namensänderungen -

-
-
-
- 0): ?> -
- - - - - - - - - - - - - - - - - -
Alter NameNeuer NameDatum
oldName ?>newName ?>created->format('d.m.Y') ?>
-
- -

- Keine Namensänderungen vorhanden. -

- -
-
-
- -
-
-

- Rassenänderungen -

-
-
-
- 0): ?> -
- - - - - - - - - - - - - - - - - -
Alte RasseNeue RasseDatum
oldRace ?>newRace ?>created->format('d.m.Y') ?>
-
- -

- Keine Rassenänderungen vorhanden. -

- -
-
-
- -
-
-

- Berufsänderungen -

-
-
-
- 0): ?> -
- - - - - - - - - - - - - - - - - -
Alter BerufNeuer BerufDatum
oldProfession ?? '-' ?>newProfession ?? '-' ?>created->format('d.m.Y') ?>
-
- -

- Keine Berufsänderungen vorhanden. -

- -
-
-
+ + + +