Commit ce99c5c7 authored by Wildan Dicky Alnatara's avatar Wildan Dicky Alnatara
Browse files

fixing profile picture show in profile page and fixing nav menu bar link

parent 007468ec
......@@ -8,7 +8,7 @@ class fileProcessing {
}
public static function isExistProfileImage (string $name): bool {
return file_exists('../uploads/'.$name.'.jpg');
return file_exists($name);
}
public static function getImageBookPathFromRoot (string $name): string {
......
......@@ -79,7 +79,11 @@ class Header {
</a>
</div>
<div class="left-right-border orange-background flex-1 ">
<span class="text-size-40">H</span>ISTORY
<a href="'.self::URL_HISTORY.'">
<div>
<span class="text-size-40">H</span>ISTORY
</div>
</a>
</div>
<div class="flex-1 ">
<a href="'.self::URL_PROFILE.'">
......@@ -95,7 +99,11 @@ class Header {
return '
<div class="flex-container-menu">
<div class="orange-background flex-1 ">
<span class="text-size-40">B</span>ROWSE
<a href="'.self::URL_BROWSE.'">
<div>
<span class="text-size-40">B</span>ROWSE
</div>
</a>
</div>
<div class="left-right-border flex-1 ">
<a href="'.self::URL_HISTORY.'">
......@@ -132,7 +140,11 @@ class Header {
</a>
</div>
<div class="orange-background flex-1 ">
<span class="text-size-40">P</span>ROFILE
<a href="'.self::URL_PROFILE.'">
<div>
<span class="text-size-40">P</span>ROFILE
</div>
</a>
</div>
</div>';
}
......
......@@ -8,7 +8,7 @@ function viewProfile (array $params) {
<div class="flex-profile-header">
<div class="flex-1"></div>
<div class="flex-2">
<img class="profile-photo margin-20" src="uploads/'.$params['profile_picture'].'">
<img class="profile-photo margin-20" src="'.$params['profile_picture'].'">
<div id="username" class="text-size-50">'.$params['name'].'</div>
</div>
<a class="flex-container add-flex-end-justify flex-1 " href="edit_profile">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment