/** Returns the HTML of the articles of the user, including the header */ public function get_articles_html(Website $website) { $oArticles = new ArticleRepository($website); $articles = $oArticles->getArticlesDataUser($this->user->getId()); $loggedInStaff = $website->isLoggedInAsStaff(); $oArticleTemplate = new ArticleListTemplate($website->getText(), $articles, 0, true, false, $loggedInStaff); if (count($articles) > 0) { $returnValue = '<h3 class="notable">' . $website->t("main.articles") . "</h3>\n"; $returnValue .= $oArticleTemplate->getText(); return $returnValue; } else { return ""; } }