En color correction

This commit is contained in:
Gilles Van Assche 2025-02-27 10:28:15 +01:00
parent 915642bade
commit bb097b1027
3 changed files with 48 additions and 0 deletions

View File

@ -22,6 +22,22 @@ $wpseo_primary_term = new WPSEO_Primary_Term( 'category', get_the_id() );
{
$classColor = 'formationSurMesure';
}
if($term->slug == 'web-design-en')
{
$classColor = 'agenceWeb';
}elseif($term->slug == 'graphisme-en')
{
$classColor = 'studioGraphique';
}elseif($term->slug == 'video-en')
{
$classColor = 'productionAudiovisuelle';
}elseif($term->slug == 'e-marketing-en')
{
$classColor = 'inboundMarketing';
}elseif($term->slug == 'formation-en')
{
$classColor = 'formationSurMesure';
}
//}
?>
<div class="container <?php echo $classColor; ?>">

View File

@ -47,6 +47,22 @@ get_header();
{
$classColor = 'formationSurMesure';
}
if($term->slug == 'web-design-en')
{
$classColor = 'agenceWeb';
}elseif($term->slug == 'graphisme-en')
{
$classColor = 'studioGraphique';
}elseif($term->slug == 'video-en')
{
$classColor = 'productionAudiovisuelle';
}elseif($term->slug == 'e-marketing-en')
{
$classColor = 'inboundMarketing';
}elseif($term->slug == 'formation-en')
{
$classColor = 'formationSurMesure';
}
//}
//print_r($cat);

View File

@ -158,6 +158,22 @@ get_header();
{
$classColor = 'formationSurMesure';
}
if($term->slug == 'web-design-en')
{
$classColor = 'agenceWeb';
}elseif($term->slug == 'graphisme-en')
{
$classColor = 'studioGraphique';
}elseif($term->slug == 'video-en')
{
$classColor = 'productionAudiovisuelle';
}elseif($term->slug == 'e-marketing-en')
{
$classColor = 'inboundMarketing';
}elseif($term->slug == 'formation-en')
{
$classColor = 'formationSurMesure';
}
//}
?>
<div class="col-lg-4 <?php if($i<4){ }else{ echo('espacement'); }?> <?php echo $classColor; ?>">