protected function renderBlogTeaser($a_user_id, $a_blog_id, array $a_posting_ids = null) { global $lng; $postings = ""; if ($a_posting_ids) { $postings = array("<ul>"); include_once "Modules/Blog/classes/class.ilBlogPosting.php"; foreach ($a_posting_ids as $post) { $post = new ilBlogPosting($post); $postings[] = "<li>" . $post->getTitle() . " - " . ilDatePresentation::formatDate($post->getCreated()) . "</li>"; } $postings[] = "</ul>"; $postings = implode("\n", $postings); } return "<div style=\"margin:5px\">" . $lng->txt("obj_blog") . ": \"" . ilObject::_lookupTitle($a_blog_id) . "\"" . $postings . "</div>"; }
protected function renderBlogTeaser($a_user_id, $a_blog_id, array $a_posting_ids = null) { // not used // $user_id = $this->getPageContentUserId($a_user_id); $postings = ""; if ($a_posting_ids) { $postings = array("<ul>"); include_once "Modules/Blog/classes/class.ilBlogPosting.php"; foreach ($a_posting_ids as $post) { $post = new ilBlogPosting($post); $postings[] = "<li>" . $post->getTitle() . " - " . ilDatePresentation::formatDate($post->getCreated()) . "</li>"; } $postings[] = "</ul>"; $postings = implode("\n", $postings); } return $this->renderTeaser("blog", $this->lng->txt("obj_blog") . ' "' . ilObject::_lookupTitle($a_blog_id) . '"', $postings); }