99 lines
3.3 KiB
PHP
99 lines
3.3 KiB
PHP
<?php
|
|
/* Smarty version 5.7.0, created on 2026-02-10 13:47:21
|
|
from 'file:views/user.tpl' */
|
|
|
|
/* @var \Smarty\Template $_smarty_tpl */
|
|
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
|
|
'version' => '5.7.0',
|
|
'unifunc' => 'content_698b36e931d9d8_07796633',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'32d027bc6f198a0e3016434b0dddc13d6ee22b4c' =>
|
|
array (
|
|
0 => 'views/user.tpl',
|
|
1 => 1770729421,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
'file:views/_partial/preview.tpl' => 1,
|
|
),
|
|
))) {
|
|
function content_698b36e931d9d8_07796633 (\Smarty\Template $_smarty_tpl) {
|
|
$_smarty_current_dir = 'C:\\wamp64\\www\\DWWM_2025\\projet2\\views';
|
|
$_smarty_tpl->getInheritance()->init($_smarty_tpl, true);
|
|
?>
|
|
|
|
|
|
<?php
|
|
$_smarty_tpl->getInheritance()->instanceBlock($_smarty_tpl, 'Block_2035018945698b36e930efe0_69529586', "content");
|
|
$_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir);
|
|
}
|
|
/* {block "content"} */
|
|
class Block_2035018945698b36e930efe0_69529586 extends \Smarty\Runtime\Block
|
|
{
|
|
public function callBlock(\Smarty\Template $_smarty_tpl) {
|
|
$_smarty_current_dir = 'C:\\wamp64\\www\\DWWM_2025\\projet2\\views';
|
|
?>
|
|
|
|
|
|
<section class="user-profile mb-5">
|
|
<div class="row">
|
|
<div class="col-md-4 text-center">
|
|
<img src="" alt="Avatar de <?php echo $_smarty_tpl->getValue('user')->getPseudo();?>
|
|
" class="img-fluid rounded-circle mb-3" style="max-width: 200px">
|
|
</div>
|
|
<div class="col-md-8">
|
|
<h1><?php echo $_smarty_tpl->getValue('user')->getPseudo();?>
|
|
</h1>
|
|
<p class="text-muted"><?php echo $_smarty_tpl->getValue('user')->getMail();?>
|
|
</p>
|
|
|
|
<?php if ($_smarty_tpl->getValue('user')->getWork()) {?>
|
|
<p><?php echo $_smarty_tpl->getValue('user')->getWork();?>
|
|
</p>
|
|
<?php }?>
|
|
|
|
<?php if ($_smarty_tpl->getValue('user')->getLocation()) {?>
|
|
<p><?php echo $_smarty_tpl->getValue('user')->getLocation();?>
|
|
</p>
|
|
<?php }?>
|
|
|
|
<p class="mt-3"><?php echo $_smarty_tpl->getValue('user')->getDescription();?>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section>
|
|
<h2 class="mb-4 border-bottom pb-2">Les projets de <?php echo $_smarty_tpl->getValue('user')->getPseudo();?>
|
|
</h2>
|
|
|
|
<div class="row">
|
|
<?php if ($_smarty_tpl->getSmarty()->getModifierCallback('count')($_smarty_tpl->getValue('arrProjectToDisplay')) > 0) {?>
|
|
<?php
|
|
$_from = $_smarty_tpl->getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('arrProjectToDisplay'), 'objProject');
|
|
$foreach0DoElse = true;
|
|
foreach ($_from ?? [] as $_smarty_tpl->getVariable('objProject')->value) {
|
|
$foreach0DoElse = false;
|
|
?>
|
|
<div class="col-md-4 mb-4">
|
|
<?php $_smarty_tpl->renderSubTemplate("file:views/_partial/preview.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir);
|
|
?>
|
|
</div>
|
|
<?php
|
|
}
|
|
$_smarty_tpl->getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?>
|
|
<?php } else { ?>
|
|
<p class="alert alert-info">Cet utilisateur n'a pas encore publié de projets.</p>
|
|
<?php }?>
|
|
</div>
|
|
</section>
|
|
|
|
<?php
|
|
}
|
|
}
|
|
/* {/block "content"} */
|
|
}
|