En color correction
This commit is contained in:
parent
915642bade
commit
bb097b1027
16
single.php
16
single.php
|
|
@ -22,6 +22,22 @@ $wpseo_primary_term = new WPSEO_Primary_Term( 'category', get_the_id() );
|
||||||
{
|
{
|
||||||
$classColor = 'formationSurMesure';
|
$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; ?>">
|
<div class="container <?php echo $classColor; ?>">
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,22 @@ get_header();
|
||||||
{
|
{
|
||||||
$classColor = 'formationSurMesure';
|
$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);
|
//print_r($cat);
|
||||||
|
|
|
||||||
|
|
@ -158,6 +158,22 @@ get_header();
|
||||||
{
|
{
|
||||||
$classColor = 'formationSurMesure';
|
$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; ?>">
|
<div class="col-lg-4 <?php if($i<4){ }else{ echo('espacement'); }?> <?php echo $classColor; ?>">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user