fixing pictogrammes path
This commit is contained in:
parent
2efd6d9b09
commit
26318ce487
|
|
@ -66,7 +66,7 @@ $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
|
||||||
|
|
||||||
<div class="search-radio-card">
|
<div class="search-radio-card">
|
||||||
<label for="building_elements"><?php echo __("Éléments du bâtiment", "metiers-patrimoine-theme") ?></label>
|
<label for="building_elements"><?php echo __("Éléments du bâtiment", "metiers-patrimoine-theme") ?></label>
|
||||||
<input type="radio" id="elements_batiments_checkbox" name="search_by" value="elementsbatiments" checked />
|
<input type="radio" id="elements_batiments_checkbox" name="search_by" value="elementsbatiments" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="search-radio-card">
|
<div class="search-radio-card">
|
||||||
|
|
@ -77,7 +77,7 @@ $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
|
||||||
<fieldset class="metier-patrimoine-searchbar__elements-batiments-filters">
|
<fieldset class="metier-patrimoine-searchbar__elements-batiments-filters">
|
||||||
|
|
||||||
<div class="fieldset-titling">
|
<div class="fieldset-titling">
|
||||||
<img class="fieldset-icon" src="<?php echo get_stylesheet_directory_uri() . '/resources/img/Homegrade_repertoire-metiers.svg' ?>" alt=''>
|
<img class="fieldset-icon" src="<?php echo get_stylesheet_directory_uri() . '/resources/img/pictogrammes/Homegrade_repertoire-metiers.svg' ?>" alt=''>
|
||||||
<h4 class="filter-title">Éléments du bâtiment</h4>
|
<h4 class="filter-title">Éléments du bâtiment</h4>
|
||||||
</div>
|
</div>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
@ -107,9 +107,6 @@ $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Vérifier que l'organisation est correcte
|
|
||||||
// write_log($terms_by_parent); // Permet de déboguer l'organisation des termes
|
|
||||||
|
|
||||||
// Afficher les termes parents et leurs enfants
|
// Afficher les termes parents et leurs enfants
|
||||||
foreach ($terms_by_parent as $parent_term_data) :
|
foreach ($terms_by_parent as $parent_term_data) :
|
||||||
$parent_term = $parent_term_data['term'];
|
$parent_term = $parent_term_data['term'];
|
||||||
|
|
@ -121,11 +118,11 @@ $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<?php if (!empty($parent_term_data['children'])) : ?>
|
<?php if (!empty($parent_term_data['children'])) : ?>
|
||||||
<ul>
|
<ul class="checkbox-choice__subtaxonomy-list">
|
||||||
<?php foreach ($parent_term_data['children'] as $child_term) : ?>
|
<?php foreach ($parent_term_data['children'] as $child_term) : ?>
|
||||||
<li class="checkbox-choice">
|
<li class="checkbox-choice">
|
||||||
|
<input type="checkbox" name="elementsbatiments[]" value="<?php echo esc_attr($child_term->term_id); ?>" data-term="<?php echo esc_attr($child_term->slug); ?>">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" name="elementsbatiments[]" value="<?php echo esc_attr($child_term->term_id); ?>" data-term="<?php echo esc_attr($child_term->slug); ?>">
|
|
||||||
<?php echo esc_html($child_term->name); ?>
|
<?php echo esc_html($child_term->name); ?>
|
||||||
</label>
|
</label>
|
||||||
</li>
|
</li>
|
||||||
|
|
@ -142,7 +139,7 @@ $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
|
||||||
<fieldset class="metier-patrimoine-searchbar__metiers-filters">
|
<fieldset class="metier-patrimoine-searchbar__metiers-filters">
|
||||||
|
|
||||||
<div class="fieldset-titling">
|
<div class="fieldset-titling">
|
||||||
<img class="fieldset-icon" src="<?php echo get_stylesheet_directory_uri() . '/resources/img/Homegrade_repertoire-elements.svg' ?>" alt=''>
|
<img class="fieldset-icon" src="<?php echo get_stylesheet_directory_uri() . '/resources/img/pictogrammes/Homegrade_repertoire-elements.svg' ?>" alt=''>
|
||||||
<h4 class="filter-title">Métiers</h4>
|
<h4 class="filter-title">Métiers</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -194,7 +191,7 @@ $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
|
||||||
|
|
||||||
<!-- Afficher les enfants sous forme de checkboxes -->
|
<!-- Afficher les enfants sous forme de checkboxes -->
|
||||||
<?php if (!empty($parent_term_data['children'])) : ?>
|
<?php if (!empty($parent_term_data['children'])) : ?>
|
||||||
<ul>
|
<ul class="checkbox-choice__subtaxonomy-list">
|
||||||
<?php foreach ($parent_term_data['children'] as $child_term) : ?>
|
<?php foreach ($parent_term_data['children'] as $child_term) : ?>
|
||||||
<li class="checkbox-choice">
|
<li class="checkbox-choice">
|
||||||
|
|
||||||
|
|
@ -213,6 +210,33 @@ $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
|
||||||
|
<fieldset class="metier-patrimoine-searchbar__geographic-filters">
|
||||||
|
|
||||||
|
<div class="fieldset-titling">
|
||||||
|
<img class="fieldset-icon" src="<?php echo get_stylesheet_directory_uri() . '/resources/img/pictogrammes/Homegrade_repertoire-elements.svg' ?>" alt=''>
|
||||||
|
<h4 class="filter-title"><?php echo __("Localisation", "metiers-patrimoine-theme") ?></h4>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li class="checkbox-choice">
|
||||||
|
<input type="checkbox" name="localisation[]" value="all">
|
||||||
|
<label> <?php echo __("Toute la Belgique", "metiers-patrimoine-theme") ?></label>
|
||||||
|
</li>
|
||||||
|
<li class="checkbox-choice">
|
||||||
|
<input type="checkbox" name="localisation[]" value="wallonie">
|
||||||
|
<label> <?php echo __("Wallonie", "metiers-patrimoine-theme") ?></label>
|
||||||
|
</li>
|
||||||
|
<li class="checkbox-choice">
|
||||||
|
<input type="checkbox" name="localisation[]" value="bruxelles">
|
||||||
|
<label> <?php echo __("Bruxelles", "metiers-patrimoine-theme") ?></label>
|
||||||
|
</li>
|
||||||
|
<li class="checkbox-choice">
|
||||||
|
<input type="checkbox" name="localisation[]" value="flandre">
|
||||||
|
<label> <?php echo __("Flandre", "metiers-patrimoine-theme") ?></label>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
|
||||||
<!-- <button type="submit">submit</button> -->
|
<!-- <button type="submit">submit</button> -->
|
||||||
|
|
@ -250,8 +274,6 @@ $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user