Commit 329b0cea authored by Matthieu FAURE's avatar Matthieu FAURE

Merge branch '42-resoudre-fil-d-ariane-incorrect-liste-des-adherents' into 'master'

Resolve "résoudre fil d'ariane incorrect liste des adhérents"

Closes #42

See merge request !24
parents 224c2580 b74a3845
<?php
$themes_path = get_theme_root();
$theme_name = "/theme-wordpress-adullact-org";
$file_path = $themes_path . $theme_name . "/category-adherent.php";
$file_path = $themes_path . $theme_name . "/category-membres.php";
include $file_path;
<?php
$themes_path = get_theme_root();
$theme_name = "/theme-wordpress-adullact-org";
$file_path = $themes_path . $theme_name . "/category-adherent.php";
$file_path = $themes_path . $theme_name . "/category-membres.php";
include $file_path;
<?php
$themes_path = get_theme_root();
$theme_name = "/theme-wordpress-adullact-org";
$file_path = $themes_path . $theme_name . "/category-adherent.php";
$file_path = $themes_path . $theme_name . "/category-membres.php";
include $file_path;
<?php
$themes_path = get_theme_root();
$theme_name = "/theme-wordpress-adullact-org";
$file_path = $themes_path . $theme_name . "/category-adherent.php";
$file_path = $themes_path . $theme_name . "/category-membres.php";
include $file_path;
<?php
$themes_path = get_theme_root();
$theme_name = "/theme-wordpress-adullact-org";
$file_path = $themes_path . $theme_name . "/category-adherent.php";
$file_path = $themes_path . $theme_name . "/category-membres.php";
include $file_path;
<?php
//nombre max d'adhérents par page
//nombre max de membres par page
$maxMembersPerPage = 20;
$page = 1;
......@@ -89,7 +89,7 @@ $max_member_numero = ($page * $maxMembersPerPage);
</div>
<?php
} else {
//on a dépassé le nombre max d'adhérents à afficher, on peut donc stopper la boucle car elle n'affichera plus rien.
//on a dépassé le nombre max de membres à afficher, on peut donc stopper la boucle car elle n'affichera plus rien.
break;
}
}
......
<?php
$themes_path = get_theme_root();
$theme_name = "/theme-wordpress-adullact-org";
$file_path = $themes_path . $theme_name . "/category-adherent.php";
$file_path = $themes_path . $theme_name . "/category-membres.php";
include $file_path;
<?php
$themes_path = get_theme_root();
$theme_name = "/theme-wordpress-adullact-org";
$file_path = $themes_path . $theme_name . "/category-adherent.php";
$file_path = $themes_path . $theme_name . "/category-membres.php";
include $file_path;
......@@ -44,7 +44,7 @@ function dump_debug($list)
function childrens_of_member_category($category_to_select)
{
//cette fonction affiche la liste des catégories enfants de la catégorie mère Adhérent
$member_category_object = get_category_by_slug("adherent");
$member_category_object = get_category_by_slug("membres");
$id = $member_category_object->cat_ID;
$server_link = $_SERVER["SERVER_NAME"];
......@@ -58,10 +58,10 @@ function childrens_of_member_category($category_to_select)
$childrens = get_term_children($id, "category"); //contiendra les id de tous les enfants de adhérent
if ($current_category == "adherent" || $current_category == "") {
echo " <li class='adullact-sort-button adullact-selected'><a href='" . $link_Category . "adherent/'>Tout</a></li>";
if ($current_category == "membres" || $current_category == "") {
echo " <li class='adullact-sort-button adullact-selected'><a href='" . $link_Category . "membres/'>Tout</a></li>";
} else {
echo " <li class='adullact-sort-button'><a href='" . $link_Category . "adherent/'>Tout</a></li>";
echo " <li class='adullact-sort-button'><a href='" . $link_Category . "membres/'>Tout</a></li>";
}
foreach ($childrens as $c) {
......
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