--- a/web/wp-content/themes/IRI-Theme/functions.php Wed Apr 07 13:11:04 2010 +0000
+++ b/web/wp-content/themes/IRI-Theme/functions.php Mon May 17 10:08:38 2010 +0000
@@ -377,7 +377,7 @@
}
echo '<ul>';
- $category_posts = get_posts('numberposts=15&order=ASC&orderby=parent&category='.$category->cat_ID);
+ $category_posts = get_posts('numberposts=30&order=DSC&orderby=date&category='.$category->cat_ID);//
$count2 = 0;
/*$categoryN2 = get_category_link($category->cat_ID);
@@ -395,25 +395,27 @@
// Affiche les posts de la langue courante + les indéfinis
//if (get_cur_language($post->ID)==$current_lang['lang'] or get_cur_language($post->ID)==""){
// Affiche seulement les posts de la langue courante + les indéfinis
+ //echo ("<div> ID = ".$post->ID." : ".get_cur_language($post->ID)."</div>");
if (get_cur_language($post->ID)==$current_lang['lang']){
// gestion des niv 2 ajout de class si nécessaire
$MyCategoryPost = get_the_category($post->ID);
//var_dump($MyCategoryPost);
-
+
+ //echo ("<div> MyC:".count($MyCategoryPost)."</div>");
$MoreStyle="";
$title ="";
if (count($MyCategoryPost)>1){
foreach($MyCategoryPost as $MyCategory) {
- $MoreStyle.= " ".$MyCategory->category_nicename;
- $title.= " ".$MyCategory->category_nicename;
+ $MoreStyle.= $MyCategory->category_nicename." ";
+ $title.= $MyCategory->category_nicename." ";
//category_parent!=0
}
} else {
- $MoreStyle ="menu-h-li2";
+ $MoreStyle ="menu-h-li2";
}
- echo '<li class="'.$MoreStyle.'" title="'.cache_cutter($post->post_title)." : ".$MoreStyle.'"><a href="'.get_permalink($post->ID).'">'.text_cutter($post->post_title,200).'</a></li>';
+ echo '<li class="'.$MoreStyle.'" title="'.cache_cutter($post->post_title)." : ".$MoreStyle.'"><a href="'.get_permalink($post->ID).'" class="'.$MoreStyle.'" >'.text_cutter($post->post_title,200).'</a></li>';
$count2++; //if ($count2>6) break;
}