{extends file="views/layout.tpl"} {block name="title" append} - {$objProject->getTitle()}{/block} {block name="h2"}Projet de {$objProject->getCreatorName()}{/block} {block name="p"}Portfolio créatif partagé sur FOLLIOW{/block} {block name="content"} {if isset($smarty.get.mail) && $smarty.get.mail === 'ok'}
Email envoyé avec succès.
{elseif isset($smarty.get.mail) && $smarty.get.mail === 'fail'}
Erreur lors de l'envoi de l'email.
{/if}

{$objProject->getTitle()}

{$arrProject.category_name ?? 'Général'}

Description

{$objProject->getDescription()}

{$objProject->getContent()}

Galerie du projet

{foreach $arrImages as $image} {* On affiche l'image si elle est approuvée OU si l'utlilisateur possède le projet OU si l'utlilisateur est Modérateur ET que l'image est disponible sur le serveur*} {if (($image.image_status == 'approuvé') || (isset($smarty.session.user) && $smarty.session.user.user_status == 2) || (isset($smarty.session.user) && $smarty.session.user.user_id == $objProject->getUser_id())) && (($smarty.env.IMG_PROJECT_PATH|cat:$objProject->getThumbnail())|file_exists)}
{$image.image_alt} {* Visible uniquement par le modérateur *} {if isset($smarty.session.user.user_status) && $smarty.session.user.user_status == 2} {/if}
{/if} {foreachelse}

Aucune image disponible pour ce projet.

{/foreach}
getCreatorName()|stripos:'minou' !== false}style=" background-color: #ff8c00 !important; /* Orange tigre */ background-image: repeating-linear-gradient( 45deg, transparent, transparent 30px, rgba(0, 0, 0, 0.15) 30px, rgba(0, 0, 0, 0.15) 60px ) !important; border: 2px solid #000 !important; color: #000 !important; position: relative; z-index: 1;"{/if}>
getCreatorName()|stripos:'minou' !== false}style="font-weight: 800 !important; text-transform: uppercase; color: #000 !important;"{/if}> {$objProject->getCreatorName()}

Publié le {$objProject->getCreation_date()}

getCreatorName()|stripos:'minou' !== false}style=" background-color: #000 !important; color: #ff8c00 !important; border: none !important; font-weight: bold !important; transition: transform 0.2s;"{/if}> Contacter le talent {if $objProject->getCreatorName()|stripos:"minou" !== false}
MINOU NE MEURT JAMAIS ! 🐯
{/if}
{*Controle de l'utilisateur ainsi que du status du projet + Suppression disponible pour l'utilisateur possédant le projet*} {if isset($smarty.session.user)} {if ($smarty.session.user.user_status == 2 || $smarty.session.user.user_id == $objProject->getUser_id())}
Supprimer {/if} {if $smarty.session.user.user_id == $objProject->getUser_id()} Modifier le projet {/if} {*Conditions permettant au Modérateur de modifier le status d'un projet*} {if $smarty.session.user.user_status == 2 && $objProject->getStatus() == "en_attente"} Accepter Refuser
{elseif $projectStatus == "refusé"}

Portfolio refusé

{/if} {/if}
{/block}