2017-12-20 20:49:11 +00:00
<!DOCTYPE html>
< html lang = "fr" >
<? include('blocks/d.head.html'); ?>
< body >
<? include('blocks/d.nav.html'); ?>
< section id = "profile" >
2018-10-18 21:04:13 +00:00
<? if ($userProfile->id != 0) { ?>
2017-12-20 20:49:11 +00:00
< h1 > <?=$userProfile->name?> < / h1 >
2018-10-18 21:04:13 +00:00
<? if($user->rankIsHigher("moderator") || $user->id == $userProfile->id) { ?>
< a class = "subtitle" id = "editprofile" href = "<?=$config['rel_root_folder']?>user/p/<?=$userProfile->id?>/edit" > < i class = "fas fa-pencil-alt" > < / i > Éditer les paramètres du compte< / a >
2017-12-20 20:49:11 +00:00
<? } ?>
< article >
< div id = "profilepart" >
<? if(isset($mailsent) AND $mailsent==1) { ?>
< p style = "color: #006600;" > Le message a bien été envoyé.< / p >
<? } ?>
2018-10-18 21:04:13 +00:00
< aside class = "<?=$userProfile->is_avatar_present=='t'?'':'no'?>avatar" >
< img alt = "Avatar" id = "profileavatar" src = "<?=$config['rel_root_folder']?>medias/avatars/<?=$userProfile->id?>_p.jpg" alt = "Profile picture" >
2018-10-17 19:55:06 +00:00
< i id = "profilenoavatar" class = "fas fa-user-secret" > < / i >
2017-12-20 20:49:11 +00:00
< / aside >
< div id = "description" >
2018-10-17 19:55:06 +00:00
< p > Langue : <?=$userProfile->get_locale()?> < / p >
2018-10-18 21:04:13 +00:00
< p > Inscrit le <? echo strftime('%e %B %G, %kh%Mm%Ss',strtotime($userProfile->register_date)) ?> < small > < abbr title = "Temps Universel Coordonné" > UTC< / abbr > < / small > < / p >
< p > Dernière connexion le <? echo strftime('%e %B %G, %kh%Mm%Ss',strtotime($userProfile->visit_date)) ?> < small > < abbr title = "Temps Universel Coordonné" > UTC< / abbr > < / small > < / p >
2018-10-17 19:55:06 +00:00
< p > <?=$userProfile->get_rank()?> < / p >
2017-12-20 20:49:11 +00:00
< p >
<? if ($userProfile->website != "") { ?>
2018-10-17 19:55:06 +00:00
< a target = "_blank" href = "<?=$userProfile->website?>" > Site internet < span class = "external-link" > < i class = "fas fa-external-link-alt" > < / i > < / span > < / a >
2017-12-20 20:49:11 +00:00
< ? }
2018-10-18 21:04:13 +00:00
if ($userProfile->website != "" AND $userProfile->id != $user->id) { ?>
2017-12-20 20:49:11 +00:00
—
< ? }
2018-10-18 21:04:13 +00:00
if ($userProfile->id != $user->id) { ?>
2017-12-20 20:49:11 +00:00
< a href = "#" onclick = "$('#profilepart').hide(0, function(){$('#contact').show('fast');});" > Contacter par mail< / a >
< ? }
2018-10-18 21:04:13 +00:00
if ($user->rankIsHigher("premium") AND ($userProfile->website != "" OR $userProfile->id != $user->id)) { ?>
2017-12-20 20:49:11 +00:00
—
< ? }
2018-10-18 18:33:15 +00:00
if ($user->rankIsHigher("premium")) { ?>
2018-10-17 19:55:06 +00:00
< a href = "mailto:<?=$userProfile->email?>" > <?=$userProfile->email?> < / a >
2017-12-20 20:49:11 +00:00
<? } ?>
< / p >
< / div >
< div style = "clear:both;" > < / div >
< / div >
2018-10-18 21:04:13 +00:00
<? if ($userProfile->id != $user->id) { ?>
< form style = "display:none;" class = "form" id = "contact" action = "<?=$config['rel_root_folder']?>user/p/<?=$userProfile->id?>" method = "post" >
2017-12-20 20:49:11 +00:00
< textarea rows = "12" name = "message" id = "message" placeholder = "Votre message" > < / textarea >
< p > < i > Votre adresse email sera transmise à votre destinataire.< / i > < / p >
< input type = "submit" name = "submit" value = "Envoyer" >
< / form >
<? } ?>
< / article >
<? } else { ?>
< p style = "color:red;" > Le profil demandé n'existe pas.< / p >
<? } ?>
< / section >
<? include('blocks/d.footer.html'); ?>
< / body >
< / html >