'); echo ('
'); echo ('
'); echo (''); echo ('
'); echo ('
'); echo ('
'); echo ($userDisplayName); echo ($userBadgeSVG); echo ('
'); echo ('
@' . $userName . '
'); echo ('
'); echo ('
'); echo (''); } function listArticles($result, $rootPageURL) { foreach($result as $article) { $pubDateTime = strtotime($article['creation_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'])) { $authorLink = ' | ' . $article['display_name'] . $article['badge_svg'] . ''; } else { $authorLink = ''; } echo('
'); echo(''); echo('
'); echo(''); echo('
'); echo('
'); echo('
'); echo('
n° ' . $articleID . ' | ' . $pubDate . $authorLink . '
'); echo(''); echo('
' . $articleTitle . '
'); echo('
'); echo('
' . $articleResume . '
'); echo('
'); echo('
'); } } ?>