modification pour afficher user par pseudo et non par id

This commit is contained in:
Yasder5 2026-02-19 21:10:24 +01:00
parent 190554d966
commit b11f67793a
9 changed files with 47 additions and 25 deletions

View file

@ -1,18 +1,18 @@
<?php
/* Smarty version 5.7.0, created on 2026-02-19 19:37:43
/* Smarty version 5.7.0, created on 2026-02-19 20:09:26
from 'file:views/_partial/preview.tpl' */
/* @var \Smarty\Template $_smarty_tpl */
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
'version' => '5.7.0',
'unifunc' => 'content_69976687c2cde7_58748034',
'unifunc' => 'content_69976df6e78664_25243843',
'has_nocache_code' => false,
'file_dependency' =>
array (
'67e1ae3a210fc2d1bf8782993687bad91a1cf0f6' =>
array (
0 => 'views/_partial/preview.tpl',
1 => 1771519241,
1 => 1771531758,
2 => 'file',
),
),
@ -20,7 +20,7 @@ if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
array (
),
))) {
function content_69976687c2cde7_58748034 (\Smarty\Template $_smarty_tpl) {
function content_69976df6e78664_25243843 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = 'D:\\projetphp\\views\\_partial';
?><article class="col-md-3 mb-5 <?php if ((true && (true && null !== ($_SESSION['user'] ?? null))) && $_SESSION['user']['user_status'] == 2) {?> pb-5 <?php }?>" style="border-radius: 100px ;">
<div class="card h-100 shadow article-card rounded-4" style="border-width: 2px; overflow: hidden;">
@ -46,7 +46,7 @@ $_smarty_current_dir = 'D:\\projetphp\\views\\_partial';
</h3>
<p class="small text-muted mb-1">
<i class="bi bi-person"></i>
<a href="index.php?ctrl=user&action=user&id=<?php echo $_smarty_tpl->getValue('objProject')->getUser_id();?>
<a href="index.php?ctrl=user&action=user&pseudo=<?php echo $_smarty_tpl->getValue('objProject')->getCreatorname();?>
"
class="text-decoration-none text-muted"
style="position: relative; z-index: 2;">