+
+
+ 'portfolio',
+ 'posts_per_page' => -1,
+ );
+ $portfolio_post = new WP_Query($args);
+
+ ?>
+
+ have_posts()) : while ($portfolio_post->have_posts()) : the_post(); ?>
+
+
+
+
+
+
+
+ '#1CC7C7',
+ 'print' => '#C14FE3',
+ 'motiondesign' => '#21D5F5',
+ 'video' => '#21D5F5',
+ );
+ $portfolio_post = get_post(18150);
+ $projectUrl = get_permalink($portfolio_post);
+ $thumbnailUrl = get_the_post_thumbnail_url($portfolio_post, 'full');
+ $mobileThumbnailUrl = get_the_post_thumbnail_url($portfolio_post, 'full');
+ $projectDescription = get_field('project_description', $portfolio_post);
+
+ $pousseBoule = 'offset-lg-8';
+ $projectType = 'web';
+ $projectTitle = get_the_title($portfolio_post);
+ $clientName = get_field('client_name', $portfolio_post);
+
+ $currentProjectColor = $cat_colors[$projectType];
+
+ $mouse = $categorie === 'video' ? 'Mouseactive' : null;
+ $i = 3;
+ $ballOffset = $i === 1 ? 'offset-lg-4' : ($i === 2 ? 'offset-lg-4' : 'offset-lg-8');
+ ?>
+
+
+
+
+
">
+

+

+
+
+
+
+
+
+
+
+ '#1CC7C7',
+ 'print' => '#C14FE3',
+ 'motiondesign' => '#21D5F5',
+ 'video' => '#21D5F5',
+ );
+ $i = 1;
+ $compteurBoule = 1;
+ $compteurVideo = 1;
+
+ if (have_rows('portfolio_beta')):
+ // loop through the rows of data
+
+ while (have_rows('portfolio_beta')) : the_row();
+ $image = get_sub_field('image_du_projet');
+ $imageMobile = get_sub_field('image_du_projet_mobile');
+ $categorie = get_sub_field('categorie_du_projet');
+ $mouse = 'Mousenonactif';
+ //print_r($categorie);
+ $valeur = $categorie['value'];
+
+ // COMPTEUR BOULE
+ if ($compteurBoule == 1):
+ elseif ($compteurBoule == 2):
+ $pousseBoule = 'offset-lg-4';
+ elseif ($compteurBoule == 3):
+ $pousseBoule = 'offset-lg-8';
+ $compteurBoule = 1;
+ endif;
+ // FIN COMPTEUR BOULE
+
+ // COMPTEUR VIDEO ET MOUSE VIDEO
+ if ($categorie['value'] === 'video'):
+ $mouse = 'Mouseactive';
+ endif;
+ // FIN COMPTEUR VIDEO ET FIN MOUSE VIDEO
+ // LIEN VIDEO VIDE
+ $lienvideo = get_sub_field('url_de_la_video');
+ // FIN LIEN VIDEO VIDE
+ ?>
+
+
+
+
+
">
+
![<?php echo $image['alt'] ?>](<?php echo $image['url']; ?>)
+
![<?php echo $imageMobile['alt'] ?>](<?php echo $imageMobile['url']; ?>)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+