added profile and settings
This commit is contained in:
parent
85380e0c73
commit
18f39fe3fb
@ -95,6 +95,7 @@ if (isset($_SESSION['user_id'])) {
|
|||||||
$gravatarUrl = "https://www.gravatar.com/avatar/$hash?s=100";
|
$gravatarUrl = "https://www.gravatar.com/avatar/$hash?s=100";
|
||||||
$gravatarTag = "<img src='$gravatarUrl' alt='Gravatar Profile Picture'>";
|
$gravatarTag = "<img src='$gravatarUrl' alt='Gravatar Profile Picture'>";
|
||||||
$page_data = str_replace('<template name="gravatar image">', $gravatarTag, $page_data);
|
$page_data = str_replace('<template name="gravatar image">', $gravatarTag, $page_data);
|
||||||
|
$page_data = str_replace('<template name="gravatar link">', $gravatarUrl, $page_data);
|
||||||
|
|
||||||
$page_data = str_replace('<template name="username">', $_SESSION['user_username'], $page_data);
|
$page_data = str_replace('<template name="username">', $_SESSION['user_username'], $page_data);
|
||||||
}
|
}
|
||||||
|
3
pages/user/profile.html
Normal file
3
pages/user/profile.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<header class="container">
|
||||||
|
<a href='<template name="gravatar link">' class="pfp"><template name="gravatar image"></a>
|
||||||
|
</header>
|
0
pages/user/settings.html
Normal file
0
pages/user/settings.html
Normal file
Loading…
Reference in New Issue
Block a user