REFACTOR Cleaning comments and write logs
This commit is contained in:
parent
a869d6fbb2
commit
32bab92ec9
|
|
@ -149,7 +149,6 @@ $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
|
|||
)
|
||||
);
|
||||
$chantiers = new WP_Query($args);
|
||||
// write_log($chantiers->posts);
|
||||
?>
|
||||
<?php if ($chantiers->posts): ?>
|
||||
<section class="artisans-post__section artisans-post__section--chantiers">
|
||||
|
|
@ -172,48 +171,6 @@ $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
|
|||
$pictures = get_field('pictures', $current_chantier_ID);
|
||||
$chantier_name = get_field('chantier_name', $current_chantier_ID);
|
||||
|
||||
|
||||
if ($current_chantier_ID === 8917 || $current_chantier_ID === 2732) {
|
||||
// write_log($current_chantier_ID);
|
||||
// write_log($chantier_name);
|
||||
// write_log($pictures);
|
||||
}
|
||||
|
||||
|
||||
// Si déjà en français, inutile de switcher
|
||||
// if ($current_lang !== 'fr') {
|
||||
// // LANGUAGE IS NL
|
||||
// $chantier_name = get_field('chantier_name', $chantier_fr_id);
|
||||
// // $pictures = get_field('pictures', $chantier_fr_id);
|
||||
// if ($chantier_fr_id == 2732) {
|
||||
|
||||
// write_log($current_lang);
|
||||
// write_log("on est en NL ON SWITCHE");
|
||||
// do_action('wpml_switch_language', 'fr');
|
||||
// write_log($chantier_fr_id);
|
||||
// }
|
||||
// do_action('wpml_switch_language', $current_lang); // Revenir à la langue d’origine
|
||||
|
||||
// } else {
|
||||
// // LANGUAGE IS FR
|
||||
|
||||
// $pictures = get_field('pictures', $current_chantier_ID);
|
||||
// $test = get_field_object('pictures', $chantier_fr_id);
|
||||
// if ($chantier_fr_id == 2732) {
|
||||
// write_log($test);
|
||||
// write_log($chantier_name);
|
||||
// // write_log($pictures);
|
||||
// // write_log($pictures);
|
||||
// write_log($chantier_fr_id);
|
||||
// write_log(get_the_ID());
|
||||
// // write_log($pictures);
|
||||
// }
|
||||
|
||||
|
||||
// // On est déjà en FR, on ne switch pas
|
||||
// }
|
||||
|
||||
|
||||
?>
|
||||
<div class="chantier">
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user