--- a/web/wp-content/themes/IRI-Theme/functions.php Mon Feb 01 09:53:45 2010 +0000
+++ b/web/wp-content/themes/IRI-Theme/functions.php Mon Feb 01 15:57:02 2010 +0000
@@ -81,8 +81,9 @@
echo ('<a href="'.get_category_link($category->cat_ID).'">'.$category->name.' </a>');
echo '<ul>';
+
$category_posts = get_posts('numberposts=15&category='.$category->cat_ID);
- $count2=0;
+ $count2 = 0;
//echo("<!-- ".sizeof($category_posts)." -->");
foreach($category_posts as $post) {
@@ -90,6 +91,8 @@
//echo '<li class="menu-h-li2" title="'.$count2.'"><a href="'.$post->guid.'">'.$post->post_title.'</a></li>';
$count2++; //if ($count2>6) break;
};
+
+
echo "</ul></li>";
}
@@ -118,7 +121,7 @@
exit;
}
- $MyLdtSql = "SELECT * FROM ".$MyLdtTable."";// WHERE `NomFichier` NOT LIKE ''";
+ $MyLdtSql = "SELECT * FROM ".$MyLdtTable." ORDER BY `Lignes`.`Auteur` ASC";// WHERE `NomFichier` NOT LIKE ''";
$result = mysql_query($MyLdtSql);
@@ -137,9 +140,9 @@
<td>".$row['Auteur']."</td> <td>".$row['Titre']."</td> <td>".$row['Contributeur']."</td> ";
if ($row['NomFichier']!="") {
- $MyLdtLineTemplate .= "<td> <a href='?URL=".$row['NomFichier']."' nicetitle='Cliquez ici pour télécharger le projet".$row['NomFichier']."'> <img src='".get_bloginfo('stylesheet_directory')."/images/get.png'/> </a> </td> </tr>";
+ $MyLdtLineTemplate .= "<td> <a href='?URL=".$row['NomFichier']."' title='Cliquez ici pour télécharger le projet".$row['NomFichier']."'> <img src='".get_bloginfo('stylesheet_directory')."/images/get.png'/> </a> </td> </tr>";
}else {
- $MyLdtLineTemplate .= "<td> <a href='#' nicetitle='Fichier non disponible'> <img src='".get_bloginfo('stylesheet_directory')."/images/help.png'/> </a> </td> </tr>";
+ $MyLdtLineTemplate .= "<td> <a href='#' title='Fichier non disponible'> <img src='".get_bloginfo('stylesheet_directory')."/images/help.png'/> </a> </td> </tr>";
}
$MyLdtTable .= $MyLdtLineTemplate."\n";