diff --git a/templates/template-portfolio-old.php b/templates/template-portfolio-old.php new file mode 100644 index 0000000..035e962 --- /dev/null +++ b/templates/template-portfolio-old.php @@ -0,0 +1,217 @@ + +
+
+
+

+
+
+
+
+
+
+ + + + + +
+
+
+
+
+
+ + + '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'); + ?> +
+
+ +
+
+
+
"> + alt + alt +
+ +
+
+

+

+
+
+ + Lire le Case +
+ + +
+
+ '#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 $imageMobile['alt'] ?> +
+ +
+
+

+

+
+
+ +
+
+

+

+
+
+ + +
+
+ +
+
+ + + +
+
+ +
+
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/templates/template-portfolio-prod.php b/templates/template-portfolio-prod.php new file mode 100644 index 0000000..6c4b879 --- /dev/null +++ b/templates/template-portfolio-prod.php @@ -0,0 +1,139 @@ + +
+
+
+

+
+ +
+
+
+
+ '#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 $imageMobile['alt']?> +
+ +
+
+

+

+
+
+ +
+
+

+

+
+
+ + +
+
+ +
+
+ + + +
+
+ +
+
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/templates/template-portfolio.php b/templates/template-portfolio.php index 19e2642..859aa8a 100644 --- a/templates/template-portfolio.php +++ b/templates/template-portfolio.php @@ -1,15 +1,21 @@ -
-

+

+
+
+
-
@@ -21,119 +27,192 @@ get_header();
-
-
+ +
+ '#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 $imageMobile['alt']?> -
- -
-
-

-

-
-
- -
-
-

-

-
-
- - -
-
+ $args = array( + 'post_type' => 'portfolio', + 'posts_per_page' => -1, + ); + $portfolio_post = new WP_Query($args); + ?> + have_posts()) : while ($portfolio_post->have_posts()) : $portfolio_post->the_post(); ?> -
-
- - - -
+ $projectThumbnailUrl = get_the_post_thumbnail_url($portfolio_post->ID, 'full'); + $projectPermLink = get_the_permalink($portfolio_post->ID); + + ?> + + + +
+ +
+ '#1CC7C7', + 'print' => '#C14FE3', + 'motiondesign' => '#21D5F5', + 'video' => '#21D5F5', + ); + ?> + + ID; + $projectUrl = get_permalink($project_id); + $thumbnailUrl = get_the_post_thumbnail_url($project_id, 'full'); + $mobileThumbnailUrl = get_the_post_thumbnail_url($project_id, 'full'); + $projectDescription = get_field('project_description', $project_id); + + $pousseBoule = 'offset-lg-8'; + $projectType = 'web'; + $projectTitle = get_the_title($project_id); + $clientName = get_field('client_name', $project_id); + + $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; + ?> + + + +
+
+ +
+
+
+
"> + <?php echo $image['alt'] ?> + <?php echo $imageMobile['alt'] ?>
+
+
+

+

+
+
+ +
+
+

+

+
+
+ - $i++; - $compteurBoule++; - endwhile; - else : - // no rows found +
+
+ +
+
+ + + +
+
+ + + +
-
-
+
+
+
-
- \ No newline at end of file + + + + + + + + + + + + + \ No newline at end of file