98 lines
3.3 KiB
PHP
98 lines
3.3 KiB
PHP
<?php
|
|
/* Smarty version 5.7.0, created on 2026-02-11 16:45:31
|
|
from 'file:views/user.tpl' */
|
|
|
|
/* @var \Smarty\Template $_smarty_tpl */
|
|
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
|
|
'version' => '5.7.0',
|
|
'unifunc' => 'content_698cb22bf10520_97303160',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'ac38676c030d472426b3bc83bc530b255f98de05' =>
|
|
array (
|
|
0 => 'views/user.tpl',
|
|
1 => 1770828319,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
'file:views/_partial/preview.tpl' => 1,
|
|
),
|
|
))) {
|
|
function content_698cb22bf10520_97303160 (\Smarty\Template $_smarty_tpl) {
|
|
$_smarty_current_dir = 'D:\\projetphp\\views';
|
|
$_smarty_tpl->getInheritance()->init($_smarty_tpl, true);
|
|
?>
|
|
|
|
|
|
<?php
|
|
$_smarty_tpl->getInheritance()->instanceBlock($_smarty_tpl, 'Block_1767111791698cb22bf02113_69556474', "content");
|
|
$_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir);
|
|
}
|
|
/* {block "content"} */
|
|
class Block_1767111791698cb22bf02113_69556474 extends \Smarty\Runtime\Block
|
|
{
|
|
public function callBlock(\Smarty\Template $_smarty_tpl) {
|
|
$_smarty_current_dir = 'D:\\projetphp\\views';
|
|
?>
|
|
|
|
|
|
<section class="user-profile mb-5">
|
|
<div class="row">
|
|
<div class="col-md-4 text-center">
|
|
<img src="<?php echo $_smarty_tpl->getValue('user')->getImage();?>
|
|
" 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;
|
|
?>
|
|
<?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);
|
|
?>
|
|
<?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"} */
|
|
}
|