MINOOOOOOOOUUUUUUU
This commit is contained in:
parent
5d03bf936d
commit
4bddf0b409
5 changed files with 117 additions and 20 deletions
|
|
@ -128,3 +128,51 @@ body {
|
||||||
.txt_title {
|
.txt_title {
|
||||||
color: rgb(51, 152, 217);
|
color: rgb(51, 152, 217);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* On cible la card sans casser ses propriétés Bootstrap */
|
||||||
|
.tiger-theme {
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Style du texte pour qu'il ressorte sur l'orange */
|
||||||
|
.tiger-text {
|
||||||
|
font-weight: 800 !important;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: #000 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tiger-date {
|
||||||
|
font-size: 0.8rem;
|
||||||
|
font-weight: bold;
|
||||||
|
color: rgba(0, 0, 0, 0.7);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Bordure de l'image (n'affecte pas la taille de la card) */
|
||||||
|
.tiger-border {
|
||||||
|
box-shadow: 0 0 0 4px #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Bouton style tigre */
|
||||||
|
.btn-tiger {
|
||||||
|
background-color: #000 !important;
|
||||||
|
color: #ff8c00 !important;
|
||||||
|
border: none !important;
|
||||||
|
font-weight: bold !important;
|
||||||
|
transition: transform 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-tiger:hover {
|
||||||
|
transform: scale(1.05);
|
||||||
|
background-color: #222 !important;
|
||||||
|
}
|
||||||
|
|
@ -23,6 +23,7 @@
|
||||||
$objSmarty = new Smarty();
|
$objSmarty = new Smarty();
|
||||||
$objSmarty->registerPlugin('modifier', 'vardump', 'var_dump');
|
$objSmarty->registerPlugin('modifier', 'vardump', 'var_dump');
|
||||||
$objSmarty->registerPlugin('modifier', 'file_exists', 'file_exists');
|
$objSmarty->registerPlugin('modifier', 'file_exists', 'file_exists');
|
||||||
|
$objSmarty->registerPlugin('modifier', 'stripos', 'stripos');
|
||||||
$objSmarty->caching = false;
|
$objSmarty->caching = false;
|
||||||
|
|
||||||
$objSmarty->force_compile = true;
|
$objSmarty->force_compile = true;
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@
|
||||||
try{
|
try{
|
||||||
$this->_db = new PDO(
|
$this->_db = new PDO(
|
||||||
"mysql:host=localhost;dbname=projet_folliow",
|
"mysql:host=localhost;dbname=projet_folliow",
|
||||||
"projet_user",
|
"root",
|
||||||
"F0lliowRules!",
|
"",
|
||||||
array(PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC)
|
array(PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC)
|
||||||
);
|
);
|
||||||
$this->_db->exec("SET CHARACTER SET utf8");
|
$this->_db->exec("SET CHARACTER SET utf8");
|
||||||
|
|
|
||||||
|
|
@ -97,21 +97,50 @@
|
||||||
|
|
||||||
<!-- Sidebar : informations du créateur -->
|
<!-- Sidebar : informations du créateur -->
|
||||||
<div class="col-lg-4">
|
<div class="col-lg-4">
|
||||||
<div class="card text-center shadow-sm p-4">
|
<div class="card text-center shadow-sm p-4" {if $objProject->getCreatorName()|stripos:'minou' !== false}style=" background-color: #ff8c00 !important; /* Orange tigre */
|
||||||
<a href="index.php?ctrl=user&action=user&id={$objProject->getUser_id()}" class="text-decoration-none text-dark">
|
background-image: repeating-linear-gradient(
|
||||||
<img src="{$smarty.env.IMG_USER_PATH}{if ($smarty.env.IMG_USER_PATH|cat:($objProject->getUser_image()))|file_exists}{$objProject->getUser_image()}{else}images.jpg{/if}"
|
45deg,
|
||||||
class="rounded-circle mb-3 mx-auto"
|
transparent,
|
||||||
style="width:100px;height:100px;object-fit:cover;">
|
transparent 30px,
|
||||||
</a>
|
rgba(0, 0, 0, 0.15) 30px,
|
||||||
<h5>{$objProject->getCreatorName()}</h5>
|
rgba(0, 0, 0, 0.15) 60px
|
||||||
|
) !important;
|
||||||
|
border: 2px solid #000 !important;
|
||||||
|
color: #000 !important;
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;"{/if}>
|
||||||
|
|
||||||
|
<a href="index.php?ctrl=user&action=user&pseudo={$objProject->getCreatorName()}" class="text-decoration-none text-dark">
|
||||||
|
<img src="{$smarty.env.IMG_USER_PATH}{if ($smarty.env.IMG_USER_PATH|cat:($objProject->getUser_image()))|file_exists}{$objProject->getUser_image()}{else}images.jpg{/if}"
|
||||||
|
class="rounded-circle mb-3 mx-auto "
|
||||||
|
style="width:100px;height:100px;object-fit:cover;{if $objProject->getCreatorName()|stripos:'minou' !== false}
|
||||||
|
box-shadow: 0 0 0 4px #000; {/if}">
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<h5 {if $objProject->getCreatorName()|stripos:'minou' !== false}style="font-weight: 800 !important;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: #000 !important;"{/if}">
|
||||||
|
{$objProject->getCreatorName()}
|
||||||
|
</h5>
|
||||||
|
|
||||||
<p class="text-muted small">
|
<p class="text-muted small">
|
||||||
Publié le {$objProject->getCreation_date()}
|
Publié le {$objProject->getCreation_date()}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<button class="btn btn-primary">Contacter le talent</button>
|
<button class="btn btn-primary" {if $objProject->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
|
||||||
|
</button>
|
||||||
|
|
||||||
</div>
|
{if $objProject->getCreatorName()|stripos:"minou" !== false}
|
||||||
|
<div class="small mt-2">MINOU NE MEURT JAMAIS ! 🐯</div>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{*Controle de l'utilisateur ainsi que du status du projet + Suppression disponible pour l'utilisateur possédant le projet*}
|
{*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 isset($smarty.session.user)}
|
||||||
{if ($smarty.session.user.user_status == 2 || $smarty.session.user.user_id == $objProject->getUser_id())}
|
{if ($smarty.session.user.user_status == 2 || $smarty.session.user.user_id == $objProject->getUser_id())}
|
||||||
|
|
|
||||||
|
|
@ -2,16 +2,30 @@
|
||||||
|
|
||||||
{block name="content"}
|
{block name="content"}
|
||||||
|
|
||||||
<section class="user-profile mb-5 mt-5/*vh /*">
|
<section class="user-profile mb-5 /*vh /* p-5" {if $user->getPseudo()|stripos:'minou' !== false}style=" background-color: #ff8c00 !important; /* Orange tigre */
|
||||||
<div class="row">
|
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}>
|
||||||
|
<div class="row" >
|
||||||
<div class="col-md-4 text-center">
|
<div class="col-md-4 text-center">
|
||||||
<img src="{$smarty.env.IMG_USER_PATH}{if ($smarty.env.IMG_USER_PATH|cat:($user->getImage()))|file_exists}{$user->getImage()}{else}images.jpg{/if}" alt="Avatar de {$user->getPseudo()}" class="rounded-circle flex-shrink-0 border border-2 border-white"
|
<img src="{$smarty.env.IMG_USER_PATH}{if ($smarty.env.IMG_USER_PATH|cat:($user->getImage()))|file_exists}{$user->getImage()}{else}images.jpg{/if}" alt="Avatar de {$user->getPseudo()}" class="rounded-circle flex-shrink-0 border border-2 border-white"
|
||||||
style="width: 256px; height: 256px; object-fit: cover; margin-top: 8px;"
|
style="width: 256px; height: 256px; object-fit: cover; margin-top: 8px;{if $user->getPseudo()|stripos:'minou' !== false}
|
||||||
|
box-shadow: 0 0 0 4px #000; {/if}"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-8 align-items-center p-0">
|
<div class="col-md-8 align-items-center p-0">
|
||||||
<div>
|
<div>
|
||||||
<h1>{$user->getPseudo()}</h1>
|
<h1 {if $user->getPseudo()|stripos:'minou' !== false}style="font-weight: 800 !important;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: #000 !important;"{/if}>{$user->getPseudo()}</h1>
|
||||||
<p class="text-muted">{$user->getMail()}</p>
|
<p class="text-muted">{$user->getMail()}</p>
|
||||||
|
|
||||||
{if $user->getWork()}
|
{if $user->getWork()}
|
||||||
|
|
@ -35,8 +49,13 @@
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{if $smarty.session.user.user_id == $user->getId()}
|
{if isset($smarty.session.user) && $smarty.session.user.user_id == $user->getId()}
|
||||||
<a class="btn btn-sm btn-primary flex-fill"
|
<a class="btn btn-sm btn-primary flex-fill" {if $user->getPseudo()|stripos:'minou' !== false}style="
|
||||||
|
background-color: #000 !important;
|
||||||
|
color: #ff8c00 !important;
|
||||||
|
border: none !important;
|
||||||
|
font-weight: bold !important;
|
||||||
|
transition: transform 0.2s;"{/if}
|
||||||
href="?ctrl=user&action=edit">Edit account</a>
|
href="?ctrl=user&action=edit">Edit account</a>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue