diff --git a/views/user.tpl b/views/user.tpl index c5793f9..89a165c 100644 --- a/views/user.tpl +++ b/views/user.tpl @@ -2,92 +2,87 @@ {block name="content"} -
getPseudo()|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}> -
-
- Avatar de {$user->getPseudo()} -
-
-
-

getPseudo()|stripos:'minou' !== false}style="font-weight: 800 !important; - text-transform: uppercase; - color: #000 !important;"{/if}>{$user->getPseudo()}

-

{$user->getMail()}

+{assign var="isMinou" value=($user->getPseudo()|stripos:'minou' !== false)} + +
+ + +
+ +
+ + +
+ Avatar de {$user->getPseudo()} +
+ + +
+

+ {$user->getPseudo()} +

+

{$user->getMail()}

{if $user->getWork()} -
- -

{$user->getWork()}

+
+ + {$user->getWork()}
{/if} {if $user->getLocation()} - -
- -

{$user->getLocation()}

+
+ + {$user->getLocation()}
{/if} - {if $user->getLocation()} - - - +
-
-
+
-
-

Les projets de {$user->getPseudo()}

- -
- {if count($arrProjectToDisplay) > 0} - {foreach $arrProjectToDisplay as $objProject} - {assign var="isAuthor" value=(isset($smarty.session.user) && $smarty.session.user.user_id == $objProject->getUser_id())} - {assign var="isModerator" value=(isset($smarty.session.user) && $smarty.session.user.user_status == 2)} - {assign var="isDeleted" value=($objProject->getDeleted_at() !== null)} - {assign var="isRefused" value=($objProject->getStatus() == "refusé")} + +
+

Les projets de {$user->getPseudo()}

- {if $isModerator - || ($isAuthor && !$isDeleted) - || (!$isRefused && !$isDeleted)} +
+ {if count($arrProjectToDisplay) > 0} + {foreach $arrProjectToDisplay as $objProject} + {assign var="isAuthor" value=(isset($smarty.session.user) && $smarty.session.user.user_id == $objProject->getUser_id())} + {assign var="isModerator" value=(isset($smarty.session.user) && $smarty.session.user.user_status == 2)} + {assign var="isDeleted" value=($objProject->getDeleted_at() !== null)} + {assign var="isRefused" value=($objProject->getStatus() == "refusé")} - {include file="views/_partial/preview.tpl"} + {if $isModerator || ($isAuthor && !$isDeleted) || (!$isRefused && !$isDeleted)} + {include file="views/_partial/preview.tpl"} {/if} - {/foreach} - {else} -
-

Cet utilisateur n'a pas encore publié de projets.

-
- {/if} -
-
+ {/foreach} + {else} +
+

Cet utilisateur n'a pas encore publié de projets.

+
+ {/if} +
+
-{/block} \ No newline at end of file + + +{/block}