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 @@ -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+
+ + identicon + - - - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+
+ + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + +
\ 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; }