Les fonctions administratives regroupent la comptabilité, le contrôle de gestion, l’administration des ventes et le service après vente. La comptabilité traite l’ensemble des factures et règlements et éditer les résultats financiers de l’entreprise. Le contrôle de gestion veille aux résultats et à la bonne performance économique.
@@ -144,14 +144,14 @@ $picture_bloc2 = get_field('picture_bloc2');
-
+
= esc_html($title_bloc2); ?>
-
+ = esc_html($text_bloc2); ?>
-

' alt="">
+

' alt="= esc_attr($picture_bloc2['alt']); ?>">
diff --git a/content/themes/regalette/template-produits.php b/content/themes/regalette/template-produits.php
index eb876bb..74e1f9b 100644
--- a/content/themes/regalette/template-produits.php
+++ b/content/themes/regalette/template-produits.php
@@ -17,8 +17,8 @@ $tabGammes = [];
$tabProducts = [];
$terms = get_terms('gamme');
-foreach ($terms as $key => $term) {
- $tabGammes[$key]['data'] = $term;
+foreach ($terms as $key => $myTerm) {
+ $tabGammes[$key]['data'] = $myTerm;
$args = array(
'post_type' => 'produit',
'meta_key' => 'prod-order',
@@ -28,26 +28,26 @@ foreach ($terms as $key => $term) {
array(
'taxonomy' => 'gamme',
'field' => 'term_id',
- 'terms' => $term->term_id,
+ 'terms' => $myTerm->term_id,
)
)
);
$query = new WP_Query($args);
- $posts = $query->posts;
- $tabGammes[$key]['posts'] = $posts;
- $tabGammes[$key]['order'] = get_field('order', 'gamme_' . $term->term_id);
+ $myPosts = $query->posts;
+ $tabGammes[$key]['posts'] = $myPosts;
+ $tabGammes[$key]['order'] = get_field('order', 'gamme_' . $myTerm->term_id);
- foreach ($posts as $index => $post) {
+ foreach ($myPosts as $index => $myPost) {
$tabProduct = [];
- $tabProduct['id'] = $post->ID;
- $tabProduct['taxonomy'] = $term->term_id;
- $tabProduct['name'] = $post->post_title;
- $tabProduct['title'] = get_field('prod-title', $post->ID);
- $tabProduct['image'] = get_field('prod-img', $post->ID);
- $tabProduct['description'] = get_field('prod-description', $post->ID);
- $tabProduct['advices'] = get_field('prod-advices', $post->ID);
- $tabProduct['ing'] = get_field('prod-ing', $post->ID);
- $tabProduct['order'] = $tabGammes[$key]['order'] . get_field('prod-order', $post->ID);
+ $tabProduct['id'] = $myPost->ID;
+ $tabProduct['taxonomy'] = $myTerm->term_id;
+ $tabProduct['name'] = $myPost->post_title;
+ $tabProduct['title'] = get_field('prod-title', $myPost->ID);
+ $tabProduct['image'] = get_field('prod-img', $myPost->ID);
+ $tabProduct['description'] = get_field('prod-description', $myPost->ID);
+ $tabProduct['advices'] = get_field('prod-advices', $myPost->ID);
+ $tabProduct['ing'] = get_field('prod-ing', $myPost->ID);
+ $tabProduct['order'] = $tabGammes[$key]['order'] . get_field('prod-order', $myPost->ID);
$prodAdvices = get_field('pictogrammes');
$tabProduct['pictos'] = [];
if (!empty($prodAdvices)) {
@@ -65,8 +65,8 @@ array_multisort(array_column($tabGammes, "order"), SORT_ASC, $tabGammes);
-

-
+
; ?>)
+
$value) : ?>
-