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 @@ -