diff -r cd4c37c65a2c -r d8780eeb2607 web/wp-content/themes/IRI-Theme/functions.php
--- 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 '
';
- $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 (" ID = ".$post->ID." : ".get_cur_language($post->ID)."
");
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 (" MyC:".count($MyCategoryPost)."
");
$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 '- '.text_cutter($post->post_title,200).'
';
+ echo '- '.text_cutter($post->post_title,200).'
';
$count2++; //if ($count2>6) break;
}