From 2eb0a30ed2e314c9300997c4caad62a5ff18b2c8 Mon Sep 17 00:00:00 2001 From: ghost Date: Wed, 27 Sep 2023 15:40:49 +0300 Subject: [PATCH] update profile module --- src/app/controller/module/profile.php | 15 +- .../view/theme/default/module/profile.phtml | 365 ++++++++++-------- .../assets/theme/default/css/framework.css | 5 + 3 files changed, 212 insertions(+), 173 deletions(-) diff --git a/src/app/controller/module/profile.php b/src/app/controller/module/profile.php index f6852aa..0d82acc 100644 --- a/src/app/controller/module/profile.php +++ b/src/app/controller/module/profile.php @@ -35,11 +35,20 @@ class AppControllerModuleProfile $comments = $this->_database->findUserPageCommentsDistinctTotal($user->userId); $editions = 0; // @TODO $this->_database->findUserPageEditionsDistinctTotal($user->userId); - $identicon = false; // @TODO $this->_database->getIdenticon(24); - - $public = $user->public; $address = $user->address; + $icon = new Jdenticon\Identicon(); + + $icon->setValue($user->address); + $icon->setSize(16); + $icon->setStyle( + [ + 'backgroundColor' => 'rgba(255, 255, 255, 0)', + ] + ); + + $identicon = $icon->getImageDataUri('webp'); + include __DIR__ . '../../../view/theme/default/module/profile.phtml'; } } \ No newline at end of file diff --git a/src/app/view/theme/default/module/profile.phtml b/src/app/view/theme/default/module/profile.phtml index 6b774fc..5d54747 100644 --- a/src/app/view/theme/default/module/profile.phtml +++ b/src/app/view/theme/default/module/profile.phtml @@ -1,174 +1,199 @@ -
- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
- --> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/public/assets/theme/default/css/framework.css b/src/public/assets/theme/default/css/framework.css index 2d54030..ea13706 100644 --- a/src/public/assets/theme/default/css/framework.css +++ b/src/public/assets/theme/default/css/framework.css @@ -272,6 +272,11 @@ a:visited.background-color-hover-night-light:hover { padding-bottom: 8px; } +.padding-y-12 { + padding-top: 12px; + padding-bottom: 12px; +} + .padding-b-16 { padding-bottom: 16px; }