Commit 9793e0a0 authored by Nathan Peraldi's avatar Nathan Peraldi

edit: remove useless php tag

parent 77e8fd3d
......@@ -7,22 +7,17 @@ function my_theme_enqueue_styles()
}
function childrens_of_member_category($category)
{
//cette fonction affiche la liste des catégories enfants de la catégorie mère Adhérent
$childrens = get_term_children(21, "category"); //contiendra les id de tous les enfants de adhérent
if ($category == "Adhérent" || $category=="") {
if ($category == "Adhérent" || $category == "") {
echo " <a href='?cat=21' class='adullact-sort-button adullact-selected'>Tout</a>";
} else {
echo " <a href='?cat=21' class='adullact-sort-button'>Tout</a>";
}
?>
<?php
foreach ($childrens as $c) {
$temp_category = get_category($c); //objet contenant les infos de la catégorie enfant
......@@ -35,17 +30,9 @@ function childrens_of_member_category($category)
<?php echo $temp_category->name; ?>
</a>
<?php
}
sort_page();
?>
<?php
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment