'); echo ('
'); echo ('
'); echo (''); echo ('
'); echo ('
'); echo ('
'); echo ($userDisplayName); if ($userCertification > 0) { echo (''); echo ('' . $badges[$userCertification] . ''); echo (''); } echo ('
'); echo ('
@' . $userName . '
'); echo ('
'); echo ('
'); echo (''); } function listArticles($result, $rootPageURL) { foreach($result as $article) { $pubDateTime = strtotime($article['date']); $pubDate = date('d/m/Y', $pubDateTime); $articleID = $article['ID']; $articleTitle = $article['title']; $articleResume = $article['resume']; $miniatureURL = empty($article['miniature']) ? $rootPageURL . "src/img/empty.jpg" : $article['miniature']; if(isset($article['username']) && isset($article['display_name'])) { $authorLink = ' | ' . $article['display_name'] . ''; } else { $authorLink = ''; } echo('
'); echo(''); echo('
'); echo(''); echo('
'); echo('
'); echo('
'); echo('
n° ' . $articleID . ' | ' . $pubDate . '
'); echo(''); echo('
' . $articleTitle . '
'); echo('
'); echo('
' . $articleResume . '
'); echo('
'); echo('
'); } } ?>