129 lines
4.2 KiB
PHP
129 lines
4.2 KiB
PHP
<?php
|
|
/* Smarty version 5.7.0, created on 2026-02-11 16:45:24
|
|
from 'file:views/project_display.tpl' */
|
|
|
|
/* @var \Smarty\Template $_smarty_tpl */
|
|
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
|
|
'version' => '5.7.0',
|
|
'unifunc' => 'content_698cb22434fee2_91445718',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'4c2b74d2d77abca5363ffd92e8bc3a455c22b1bd' =>
|
|
array (
|
|
0 => 'views/project_display.tpl',
|
|
1 => 1770828198,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
),
|
|
))) {
|
|
function content_698cb22434fee2_91445718 (\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_1025150471698cb224342408_37694456', "content");
|
|
$_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir);
|
|
}
|
|
/* {block "content"} */
|
|
class Block_1025150471698cb224342408_37694456 extends \Smarty\Runtime\Block
|
|
{
|
|
public function callBlock(\Smarty\Template $_smarty_tpl) {
|
|
$_smarty_current_dir = 'D:\\projetphp\\views';
|
|
?>
|
|
|
|
<main class="container mt-5 py-5">
|
|
|
|
<!-- Message après l'envoi d'email -->
|
|
<?php if ((true && (true && null !== ($_GET['mail'] ?? null))) && $_GET['mail'] === 'ok') {?>
|
|
<div class="alert alert-success">Email envoyé avec succès.</div>
|
|
<?php } elseif ((true && (true && null !== ($_GET['mail'] ?? null))) && $_GET['mail'] === 'fail') {?>
|
|
<div class="alert alert-danger">Erreur lors de l'envoi de l'email.</div>
|
|
<?php }?>
|
|
|
|
<div class="row g-4">
|
|
|
|
<!-- Contenu principal du projet -->
|
|
<div class="col-lg-8">
|
|
|
|
<h1 class="fw-bold"><?php echo $_smarty_tpl->getValue('objProject')->getTitle();?>
|
|
</h1>
|
|
|
|
<p class="text-muted">
|
|
<?php echo $_smarty_tpl->getValue('arrProject')['category_name'] ?? 'Général';?>
|
|
|
|
</p>
|
|
|
|
<div class="mb-4 shadow-sm">
|
|
<img src=".<?php echo $_smarty_tpl->getValue('objProject')->getThumbnail();?>
|
|
"
|
|
class="img-fluid rounded w-100">
|
|
</div>
|
|
|
|
<div class="bg-light p-4 rounded mb-4">
|
|
<h4 class="border-bottom pb-2">Description</h4>
|
|
<p class="lead"><?php echo $_smarty_tpl->getValue('objProject')->getDescription();?>
|
|
</p>
|
|
|
|
<div class="mt-4">
|
|
<?php echo $_smarty_tpl->getValue('objProject')->getContent();?>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Formulaire qui envoie la demande au contrôleur (sendEmail) -->
|
|
<div class="card shadow-sm p-4 mb-5">
|
|
<form method="post" action="index.php?ctrl=project&action=sendEmail">
|
|
|
|
<input type="hidden" name="project_id"
|
|
value="<?php echo $_smarty_tpl->getValue('objProject')->getId();?>
|
|
">
|
|
|
|
<input type="email" name="to_email"
|
|
class="form-control mb-3"
|
|
placeholder="Adresse email" required>
|
|
|
|
<button type="submit" class="btn btn-primary w-100">
|
|
Envoyer par email
|
|
</button>
|
|
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- Sidebar : informations du créateur -->
|
|
<div class="col-lg-4">
|
|
<div class="card text-center shadow-sm p-4">
|
|
<a href="index.php?ctrl=user&action=user&id=<?php echo $_smarty_tpl->getValue('objProject')->getUser();?>
|
|
" class="text-decoration-none text-dark">
|
|
<img src="<?php echo $_smarty_tpl->getValue('objProject')->getUser_image();?>
|
|
"
|
|
class="rounded-circle mb-3 mx-auto"
|
|
style="width:100px;height:100px;object-fit:cover;">
|
|
</a>
|
|
<h5><?php echo $_smarty_tpl->getValue('objProject')->getCreatorName();?>
|
|
</h5>
|
|
|
|
<p class="text-muted small">
|
|
Publié le <?php echo $_smarty_tpl->getValue('objProject')->getCreation_date();?>
|
|
|
|
</p>
|
|
|
|
<button class="btn btn-primary">Contacter le talent</button>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</main>
|
|
<?php
|
|
}
|
|
}
|
|
/* {/block "content"} */
|
|
}
|