Commit a2ac98e5 authored by Nathan Peraldi's avatar Nathan Peraldi

edit: visibility improvement for displaying members category

parent 2b050611
...@@ -21,16 +21,22 @@ function childrens_of_member_category($category) ...@@ -21,16 +21,22 @@ function childrens_of_member_category($category)
foreach ($childrens as $c) { foreach ($childrens as $c) {
$temp_category = get_category($c); //objet contenant les infos de la catégorie enfant $temp_category = get_category($c); //objet contenant les infos de la catégorie enfant
?> $my_link = "<a href=\"?cat=";
$my_link .= $c ;
$my_link .= "\" class=\"adullact-sort-button";
<a if ($temp_category->name == $category) {
href='?cat=<?php echo $c; ?>' class="adullact-sort-button <?php if ($temp_category->name == $category) { //si on est en train d'afficher la catégorie sélectionnée
echo "adullact-selected"; $my_link .= " adullact-selected";
} ?>"> }
<?php echo $temp_category->name; ?>
</a> $my_link .="\">";
$my_link .= $temp_category->name;
$my_link.="</a>";
echo $my_link;
<?php
} }
sort_page(); sort_page();
} }
...@@ -62,4 +68,5 @@ function sort_page() ...@@ -62,4 +68,5 @@ function sort_page()
<?php <?php
} }
} }
?> ?>
\ No newline at end of file
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